Skip to content

Commit 1b7efea

Browse files
authored
Fix a warning with copilotHover. (#13467)
1 parent 3f9ca15 commit 1b7efea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Extension/src/LanguageServer/Providers/CopilotHoverProvider.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ export class CopilotHoverProvider implements vscode.HoverProvider {
3333
await this.client.ready;
3434

3535
const settings: CppSettings = new CppSettings(vscode.workspace.getWorkspaceFolder(document.uri)?.uri);
36+
const workspaceSettings: CppSettings = new CppSettings();
3637
if (settings.hover === "disabled" ||
37-
settings.copilotHover === "disabled" ||
38-
(settings.copilotHover === "default" && await telemetry.isFlightEnabled("CppCopilotHoverDisabled"))) {
38+
workspaceSettings.copilotHover === "disabled" ||
39+
(workspaceSettings.copilotHover === "default" && await telemetry.isFlightEnabled("CppCopilotHoverDisabled"))) {
3940
// Either disabled by the user or by the flight.
4041
return undefined;
4142
}

0 commit comments

Comments
 (0)