@@ -174,7 +174,7 @@ let deleteProjectDiagnostics = (projectRootPath: string) => {
174
174
} ) ;
175
175
176
176
projectsFiles . delete ( projectRootPath ) ;
177
- if ( config . extensionConfiguration . incrementalTypechecking ?. enabled ) {
177
+ if ( config . extensionConfiguration . incrementalTypechecking ?. enable ) {
178
178
ic . removeIncrementalFileFolder ( projectRootPath ) ;
179
179
}
180
180
}
@@ -218,9 +218,7 @@ let compilerLogsWatcher = chokidar
218
218
} )
219
219
. on ( "all" , ( _e , changedPath ) => {
220
220
if ( changedPath . includes ( "build.ninja" ) ) {
221
- if (
222
- config . extensionConfiguration . cache ?. projectConfig ?. enabled === true
223
- ) {
221
+ if ( config . extensionConfiguration . cache ?. projectConfig ?. enable === true ) {
224
222
let projectRoot = utils . findProjectRootOfFile ( changedPath ) ;
225
223
if ( projectRoot != null ) {
226
224
syncProjectConfigCache ( projectRoot ) ;
@@ -259,7 +257,7 @@ let openedFile = (fileUri: string, fileContent: string) => {
259
257
if ( projectRootPath != null ) {
260
258
let projectRootState = projectsFiles . get ( projectRootPath ) ;
261
259
if ( projectRootState == null ) {
262
- if ( config . extensionConfiguration . incrementalTypechecking ?. enabled ) {
260
+ if ( config . extensionConfiguration . incrementalTypechecking ?. enable ) {
263
261
ic . recreateIncrementalFileFolder ( projectRootPath ) ;
264
262
}
265
263
const namespaceName =
@@ -284,9 +282,7 @@ let openedFile = (fileUri: string, fileContent: string) => {
284
282
compilerLogsWatcher . add (
285
283
path . join ( projectRootPath , c . compilerLogPartialPath )
286
284
) ;
287
- if (
288
- config . extensionConfiguration . cache ?. projectConfig ?. enabled === true
289
- ) {
285
+ if ( config . extensionConfiguration . cache ?. projectConfig ?. enable === true ) {
290
286
compilerLogsWatcher . add (
291
287
path . join ( projectRootPath , c . buildNinjaPartialPath )
292
288
) ;
@@ -354,7 +350,7 @@ let openedFile = (fileUri: string, fileContent: string) => {
354
350
let closedFile = ( fileUri : string ) => {
355
351
let filePath = fileURLToPath ( fileUri ) ;
356
352
357
- if ( config . extensionConfiguration . incrementalTypechecking ?. enabled ) {
353
+ if ( config . extensionConfiguration . incrementalTypechecking ?. enable ) {
358
354
ic . handleClosedFile ( filePath ) ;
359
355
}
360
356
@@ -388,7 +384,7 @@ let updateOpenedFile = (fileUri: string, fileContent: string) => {
388
384
let filePath = fileURLToPath ( fileUri ) ;
389
385
assert ( stupidFileContentCache . has ( filePath ) ) ;
390
386
stupidFileContentCache . set ( filePath , fileContent ) ;
391
- if ( config . extensionConfiguration . incrementalTypechecking ?. enabled ) {
387
+ if ( config . extensionConfiguration . incrementalTypechecking ?. enable ) {
392
388
ic . handleUpdateOpenedFile ( filePath , fileContent , send , ( ) => {
393
389
if ( config . extensionConfiguration . codeLens ) {
394
390
sendCodeLensRefresh ( ) ;
@@ -862,7 +858,7 @@ function format(msg: p.RequestMessage): Array<p.Message> {
862
858
}
863
859
864
860
let updateDiagnosticSyntax = ( fileUri : string , fileContent : string ) => {
865
- if ( config . extensionConfiguration . incrementalTypechecking ?. enabled ) {
861
+ if ( config . extensionConfiguration . incrementalTypechecking ?. enable ) {
866
862
// The incremental typechecking already sends syntax diagnostics.
867
863
return ;
868
864
}
0 commit comments