File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -254,12 +254,12 @@ namespace ts.server {
254
254
private readonly directoryWatchers : DirectoryWatchers ;
255
255
private readonly throttledOperations : ThrottledOperations ;
256
256
257
+ private readonly hostConfiguration : HostConfiguration ;
258
+
257
259
private changedFiles : ScriptInfo [ ] ;
258
260
259
261
readonly toCanonicalFileName : ( f : string ) => string ;
260
262
261
- public readonly hostConfiguration : HostConfiguration ;
262
-
263
263
public lastDeletedFile : ScriptInfo ;
264
264
265
265
constructor ( public readonly host : ServerHost ,
Original file line number Diff line number Diff line change @@ -296,6 +296,9 @@ namespace ts.server {
296
296
}
297
297
298
298
enableLanguageService ( ) {
299
+ if ( this . languageServiceEnabled ) {
300
+ return ;
301
+ }
299
302
this . languageServiceEnabled = true ;
300
303
this . projectService . onUpdateLanguageServiceStateForProject ( this , /*languageServiceEnabled*/ true ) ;
301
304
}
You can’t perform that action at this time.
0 commit comments