@@ -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
}
@@ -259,7 +259,7 @@ let openedFile = (fileUri: string, fileContent: string) => {
259
259
if ( projectRootPath != null ) {
260
260
let projectRootState = projectsFiles . get ( projectRootPath ) ;
261
261
if ( projectRootState == null ) {
262
- if ( config . extensionConfiguration . incrementalTypechecking ?. enabled ) {
262
+ if ( config . extensionConfiguration . incrementalTypechecking ?. enable ) {
263
263
ic . recreateIncrementalFileFolder ( projectRootPath ) ;
264
264
}
265
265
const namespaceName =
@@ -354,7 +354,7 @@ let openedFile = (fileUri: string, fileContent: string) => {
354
354
let closedFile = ( fileUri : string ) => {
355
355
let filePath = fileURLToPath ( fileUri ) ;
356
356
357
- if ( config . extensionConfiguration . incrementalTypechecking ?. enabled ) {
357
+ if ( config . extensionConfiguration . incrementalTypechecking ?. enable ) {
358
358
ic . handleClosedFile ( filePath ) ;
359
359
}
360
360
@@ -388,7 +388,7 @@ let updateOpenedFile = (fileUri: string, fileContent: string) => {
388
388
let filePath = fileURLToPath ( fileUri ) ;
389
389
assert ( stupidFileContentCache . has ( filePath ) ) ;
390
390
stupidFileContentCache . set ( filePath , fileContent ) ;
391
- if ( config . extensionConfiguration . incrementalTypechecking ?. enabled ) {
391
+ if ( config . extensionConfiguration . incrementalTypechecking ?. enable ) {
392
392
ic . handleUpdateOpenedFile ( filePath , fileContent , send , ( ) => {
393
393
if ( config . extensionConfiguration . codeLens ) {
394
394
sendCodeLensRefresh ( ) ;
@@ -862,7 +862,7 @@ function format(msg: p.RequestMessage): Array<p.Message> {
862
862
}
863
863
864
864
let updateDiagnosticSyntax = ( fileUri : string , fileContent : string ) => {
865
- if ( config . extensionConfiguration . incrementalTypechecking ?. enabled ) {
865
+ if ( config . extensionConfiguration . incrementalTypechecking ?. enable ) {
866
866
// The incremental typechecking already sends syntax diagnostics.
867
867
return ;
868
868
}
0 commit comments