File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -371,7 +371,9 @@ connection.onInitialize(async (initParams: lsp.InitializeParams): Promise<lsp.In
371
371
const file = findFile ( uri )
372
372
index . addFile ( uri , file )
373
373
374
- await runInspections ( uri , file )
374
+ if ( event . document . languageId === "tact" || uri . endsWith ( ".tact" ) ) {
375
+ await runInspections ( uri , file )
376
+ }
375
377
} )
376
378
377
379
documents . onDidChangeContent ( async event => {
@@ -392,7 +394,9 @@ connection.onInitialize(async (initParams: lsp.InitializeParams): Promise<lsp.In
392
394
const file = findFile ( uri , event . document . getText ( ) , true )
393
395
index . addFile ( uri , file , false )
394
396
395
- await runInspections ( uri , file )
397
+ if ( event . document . languageId === "tact" || uri . endsWith ( ".tact" ) ) {
398
+ await runInspections ( uri , file )
399
+ }
396
400
} )
397
401
398
402
connection . onDidChangeWatchedFiles ( ( params : DidChangeWatchedFilesParams ) => {
You can’t perform that action at this time.
0 commit comments