File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments