@@ -14,7 +14,7 @@ import {TextDocument} from 'vscode-languageserver-textdocument';
14
14
import * as lsp from 'vscode-languageserver/node' ;
15
15
16
16
import { ServerOptions } from '../../common/initialize' ;
17
- import { OpenOutputChannel , ProjectLanguageService , ProjectLoadingFinish , ProjectLoadingStart , SuggestStrictMode } from '../../common/notifications' ;
17
+ import { ProjectLanguageService , ProjectLoadingFinish , ProjectLoadingStart , SuggestStrictMode } from '../../common/notifications' ;
18
18
import { GetComponentsWithTemplateFile , GetTcbParams , GetTcbRequest , GetTcbResponse , GetTemplateLocationForComponent , GetTemplateLocationForComponentParams , IsInAngularProject , IsInAngularProjectParams } from '../../common/requests' ;
19
19
20
20
import { readNgCompletionData , tsCompletionEntryToLspCompletionItem } from './completion' ;
@@ -34,6 +34,7 @@ export interface SessionOptions {
34
34
includeCompletionsWithSnippetText : boolean ;
35
35
forceStrictTemplates : boolean ;
36
36
disableBlockSyntax : boolean ;
37
+ disableLetSyntax : boolean ;
37
38
angularCoreVersion : string | null ;
38
39
}
39
40
@@ -161,9 +162,11 @@ export class Session {
161
162
if ( options . disableBlockSyntax ) {
162
163
pluginConfig . enableBlockSyntax = false ;
163
164
}
165
+ if ( options . disableLetSyntax ) {
166
+ pluginConfig . enableLetSyntax = false ;
167
+ }
164
168
if ( options . angularCoreVersion !== null ) {
165
- // TODO(crisbeto): temporarily cast to `any` until 17.2 is released.
166
- ( pluginConfig as any ) . angularCoreVersion = options . angularCoreVersion ;
169
+ pluginConfig . angularCoreVersion = options . angularCoreVersion ;
167
170
}
168
171
projSvc . configurePlugin ( {
169
172
pluginName : options . ngPlugin ,
0 commit comments