Skip to content

Commit 97df850

Browse files
authored
Merge branch 'main' into bobbrow/typeChecking
2 parents f7d3c95 + db1cfda commit 97df850

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Extension/src/LanguageServer/Providers/CopilotHoverProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class CopilotHoverProvider implements vscode.HoverProvider {
4646
}
4747
}
4848

49-
if (settings.copilotHover === "default") {
49+
if (new CppSettings().copilotHover === "default") {
5050
// Check flight to make sure the feature is enabled.
5151
if (!await telemetry.isFlightEnabled("CppCopilotHover")) {
5252
return undefined;

Extension/src/LanguageServer/settingsTracker.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ export class SettingsTracker {
104104
}
105105
const curEnum: any[] = curSetting["enum"];
106106
if (curEnum && curEnum.indexOf(val) === -1
107-
&& (key !== "loggingLevel" || util.getNumericLoggingLevel(val) === -1)) {
107+
&& (key !== "loggingLevel" || util.getNumericLoggingLevel(val) === -1)
108+
&& (key !== "copilotHover" || val !== "enabled")) {
108109
return "<invalid>";
109110
}
110111
return val;

0 commit comments

Comments
 (0)