@@ -174,7 +174,7 @@ let deleteProjectDiagnostics = (projectRootPath: string) => {
174174 } ) ;
175175
176176 projectsFiles . delete ( projectRootPath ) ;
177- if ( config . extensionConfiguration . incrementalTypechecking ?. enabled ) {
177+ if ( config . extensionConfiguration . incrementalTypechecking ?. enable ) {
178178 ic . removeIncrementalFileFolder ( projectRootPath ) ;
179179 }
180180 }
@@ -218,9 +218,7 @@ let compilerLogsWatcher = chokidar
218218 } )
219219 . on ( "all" , ( _e , changedPath ) => {
220220 if ( changedPath . includes ( "build.ninja" ) ) {
221- if (
222- config . extensionConfiguration . cache ?. projectConfig ?. enabled === true
223- ) {
221+ if ( config . extensionConfiguration . cache ?. projectConfig ?. enable === true ) {
224222 let projectRoot = utils . findProjectRootOfFile ( changedPath ) ;
225223 if ( projectRoot != null ) {
226224 syncProjectConfigCache ( projectRoot ) ;
@@ -259,7 +257,7 @@ let openedFile = (fileUri: string, fileContent: string) => {
259257 if ( projectRootPath != null ) {
260258 let projectRootState = projectsFiles . get ( projectRootPath ) ;
261259 if ( projectRootState == null ) {
262- if ( config . extensionConfiguration . incrementalTypechecking ?. enabled ) {
260+ if ( config . extensionConfiguration . incrementalTypechecking ?. enable ) {
263261 ic . recreateIncrementalFileFolder ( projectRootPath ) ;
264262 }
265263 const namespaceName =
@@ -284,9 +282,7 @@ let openedFile = (fileUri: string, fileContent: string) => {
284282 compilerLogsWatcher . add (
285283 path . join ( projectRootPath , c . compilerLogPartialPath )
286284 ) ;
287- if (
288- config . extensionConfiguration . cache ?. projectConfig ?. enabled === true
289- ) {
285+ if ( config . extensionConfiguration . cache ?. projectConfig ?. enable === true ) {
290286 compilerLogsWatcher . add (
291287 path . join ( projectRootPath , c . buildNinjaPartialPath )
292288 ) ;
@@ -354,7 +350,7 @@ let openedFile = (fileUri: string, fileContent: string) => {
354350let closedFile = ( fileUri : string ) => {
355351 let filePath = fileURLToPath ( fileUri ) ;
356352
357- if ( config . extensionConfiguration . incrementalTypechecking ?. enabled ) {
353+ if ( config . extensionConfiguration . incrementalTypechecking ?. enable ) {
358354 ic . handleClosedFile ( filePath ) ;
359355 }
360356
@@ -388,7 +384,7 @@ let updateOpenedFile = (fileUri: string, fileContent: string) => {
388384 let filePath = fileURLToPath ( fileUri ) ;
389385 assert ( stupidFileContentCache . has ( filePath ) ) ;
390386 stupidFileContentCache . set ( filePath , fileContent ) ;
391- if ( config . extensionConfiguration . incrementalTypechecking ?. enabled ) {
387+ if ( config . extensionConfiguration . incrementalTypechecking ?. enable ) {
392388 ic . handleUpdateOpenedFile ( filePath , fileContent , send , ( ) => {
393389 if ( config . extensionConfiguration . codeLens ) {
394390 sendCodeLensRefresh ( ) ;
@@ -862,7 +858,7 @@ function format(msg: p.RequestMessage): Array<p.Message> {
862858}
863859
864860let updateDiagnosticSyntax = ( fileUri : string , fileContent : string ) => {
865- if ( config . extensionConfiguration . incrementalTypechecking ?. enabled ) {
861+ if ( config . extensionConfiguration . incrementalTypechecking ?. enable ) {
866862 // The incremental typechecking already sends syntax diagnostics.
867863 return ;
868864 }
0 commit comments