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