@@ -533,13 +533,11 @@ interface DidChangeActiveEditorParams {
533533 selection ?: Range ;
534534}
535535
536- interface GetIncludesParams
537- {
536+ interface GetIncludesParams {
538537 maxDepth : number ;
539538}
540539
541- interface GetIncludesResult
542- {
540+ interface GetIncludesResult {
543541 includedFiles : string [ ] ;
544542}
545543
@@ -1275,7 +1273,7 @@ export class DefaultClient implements Client {
12751273 this . codeFoldingProviderDisposable = vscode . languages . registerFoldingRangeProvider ( util . documentSelector , this . codeFoldingProvider ) ;
12761274
12771275 const settings : CppSettings = new CppSettings ( ) ;
1278- if ( settings . enhancedColorization && semanticTokensLegend ) {
1276+ if ( settings . isEnhancedColorizationEnabled && semanticTokensLegend ) {
12791277 this . semanticTokensProvider = new SemanticTokensProvider ( ) ;
12801278 this . semanticTokensProviderDisposable = vscode . languages . registerDocumentSemanticTokensProvider ( util . documentSelector , this . semanticTokensProvider , semanticTokensLegend ) ;
12811279 }
@@ -1352,9 +1350,6 @@ export class DefaultClient implements Client {
13521350 clangTidyHeaderFilter : settings . clangTidyHeaderFilter !== null ? util . resolveVariables ( settings . clangTidyHeaderFilter , this . AdditionalEnvironment ) : null ,
13531351 clangTidyArgs : util . resolveVariablesArray ( settings . clangTidyArgs , this . AdditionalEnvironment ) ,
13541352 clangTidyUseBuildPath : settings . clangTidyUseBuildPath ,
1355- clangTidyFixWarnings : settings . clangTidyFixWarnings ,
1356- clangTidyFixErrors : settings . clangTidyFixErrors ,
1357- clangTidyFixNotes : settings . clangTidyFixNotes ,
13581353 clangTidyChecksEnabled : settings . clangTidyChecksEnabled ,
13591354 clangTidyChecksDisabled : settings . clangTidyChecksDisabled ,
13601355 markdownInComments : settings . markdownInComments ,
@@ -1463,7 +1458,7 @@ export class DefaultClient implements Client {
14631458 simplifyStructuredComments : workspaceSettings . simplifyStructuredComments ,
14641459 intelliSenseUpdateDelay : workspaceSettings . intelliSenseUpdateDelay ,
14651460 experimentalFeatures : workspaceSettings . experimentalFeatures ,
1466- enhancedColorization : workspaceSettings . enhancedColorization ,
1461+ enhancedColorization : workspaceSettings . isEnhancedColorizationEnabled ,
14671462 intellisenseMaxCachedProcesses : workspaceSettings . intelliSenseMaxCachedProcesses ,
14681463 intellisenseMaxMemory : workspaceSettings . intelliSenseMaxMemory ,
14691464 referencesMaxConcurrentThreads : workspaceSettings . referencesMaxConcurrentThreads ,
@@ -1520,9 +1515,9 @@ export class DefaultClient implements Client {
15201515 }
15211516
15221517 const workspaceSettings : CppSettings = new CppSettings ( ) ;
1523- if ( workspaceSettings . caseSensitiveFileSupport !== currentCaseSensitiveFileSupport . Value ) {
1518+ if ( workspaceSettings . isCaseSensitiveFileSupportEnabled !== currentCaseSensitiveFileSupport . Value ) {
15241519 resetDatabase = true ;
1525- currentCaseSensitiveFileSupport . Value = workspaceSettings . caseSensitiveFileSupport ;
1520+ currentCaseSensitiveFileSupport . Value = workspaceSettings . isCaseSensitiveFileSupportEnabled ;
15261521 }
15271522
15281523 const cacheStoragePath : string = util . getCacheStoragePath ( ) ;
@@ -1537,7 +1532,7 @@ export class DefaultClient implements Client {
15371532 cacheStoragePath : cacheStoragePath ,
15381533 vcpkgRoot : util . getVcpkgRoot ( ) ,
15391534 intelliSenseCacheDisabled : intelliSenseCacheDisabled ,
1540- caseSensitiveFileSupport : workspaceSettings . caseSensitiveFileSupport ,
1535+ caseSensitiveFileSupport : workspaceSettings . isCaseSensitiveFileSupportEnabled ,
15411536 resetDatabase : resetDatabase ,
15421537 edgeMessagesDirectory : path . join ( util . getExtensionFilePath ( "bin" ) , "messages" , getLocaleId ( ) ) ,
15431538 localizedStrings : localizedStrings ,
@@ -1635,7 +1630,7 @@ export class DefaultClient implements Client {
16351630 }
16361631 const settings : CppSettings = new CppSettings ( ) ;
16371632 if ( changedSettings . enhancedColorization ) {
1638- if ( settings . enhancedColorization && semanticTokensLegend ) {
1633+ if ( settings . isEnhancedColorizationEnabled && semanticTokensLegend ) {
16391634 this . semanticTokensProvider = new SemanticTokensProvider ( ) ;
16401635 this . semanticTokensProviderDisposable = vscode . languages . registerDocumentSemanticTokensProvider ( util . documentSelector , this . semanticTokensProvider , semanticTokensLegend ) ;
16411636 } else if ( this . semanticTokensProviderDisposable ) {
@@ -2101,7 +2096,7 @@ export class DefaultClient implements Client {
21012096 result = "timeout" ;
21022097 if ( ! requestFile ) {
21032098 const settings : CppSettings = new CppSettings ( this . RootUri ) ;
2104- if ( settings . configurationWarnings && ! this . isExternalHeader ( docUri ) && ! vscode . debug . activeDebugSession ) {
2099+ if ( settings . isConfigurationWarningsEnabled && ! this . isExternalHeader ( docUri ) && ! vscode . debug . activeDebugSession ) {
21052100 const dismiss : string = localize ( "dismiss.button" , "Dismiss" ) ;
21062101 const disable : string = localize ( "disable.warnings.button" , "Disable Warnings" ) ;
21072102 const configName : string | undefined = this . configuration . CurrentConfiguration ?. name ;
@@ -2171,7 +2166,7 @@ export class DefaultClient implements Client {
21712166
21722167 public getVcpkgEnabled ( ) : Promise < boolean > {
21732168 const cppSettings : CppSettings = new CppSettings ( this . RootUri ) ;
2174- return Promise . resolve ( ! ! cppSettings . vcpkgEnabled ) ;
2169+ return Promise . resolve ( cppSettings . vcpkgEnabled ) ;
21752170 }
21762171
21772172 public async getKnownCompilers ( ) : Promise < configs . KnownCompiler [ ] | undefined > {
@@ -2731,7 +2726,7 @@ export class DefaultClient implements Client {
27312726 showConfigStatus = ask . Value ;
27322727 }
27332728
2734- const compilerPathNotSet : boolean = settings . defaultCompilerPath === undefined && this . configuration . CurrentConfiguration ?. compilerPath === undefined && this . configuration . CurrentConfiguration ?. compilerPathInCppPropertiesJson === undefined ;
2729+ const compilerPathNotSet : boolean = settings . defaultCompilerPath === null && this . configuration . CurrentConfiguration ?. compilerPath === undefined && this . configuration . CurrentConfiguration ?. compilerPathInCppPropertiesJson === undefined ;
27352730 const configurationNotSet : boolean = configProviderNotSetAndNoCache && compileCommandsNotSet && compilerPathNotSet ;
27362731
27372732 showConfigStatus = showConfigStatus || ( configurationNotSet &&
@@ -3476,8 +3471,7 @@ export class DefaultClient implements Client {
34763471 }
34773472
34783473 let formatParams : FormatParams | undefined ;
3479- if ( cppSettings . useVcFormat ( editor . document ) )
3480- {
3474+ if ( cppSettings . useVcFormat ( editor . document ) ) {
34813475 const editorConfigSettings : any = getEditorConfigSettings ( uri . fsPath ) ;
34823476 formatParams = {
34833477 editorConfigSettings : editorConfigSettings ,
0 commit comments