File tree Expand file tree Collapse file tree
extensions/typescript-language-features/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,10 +93,12 @@ export class TypeScriptServerSpawner {
9393 return CompositeServerType . Single ;
9494
9595 case SeparateSyntaxServerConfiguration . Enabled :
96- return version . apiVersion ?. gte ( API . v340 ) ? CompositeServerType . SeparateSyntax : CompositeServerType . Single ;
97-
98- case SeparateSyntaxServerConfiguration . Dynamic :
99- return version . apiVersion ?. gte ( API . v400 ) ? CompositeServerType . DynamicSeparateSyntax : CompositeServerType . Single ;
96+ if ( version . apiVersion ?. gte ( API . v340 ) ) {
97+ return version . apiVersion ?. gte ( API . v400 )
98+ ? CompositeServerType . DynamicSeparateSyntax
99+ : CompositeServerType . SeparateSyntax ;
100+ }
101+ return CompositeServerType . Single ;
100102 }
101103 }
102104
Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ export namespace TsServerLogLevel {
4949export const enum SeparateSyntaxServerConfiguration {
5050 Disabled ,
5151 Enabled ,
52- Dynamic ,
5352}
5453
5554export class TypeScriptServiceConfiguration {
@@ -168,9 +167,6 @@ export class TypeScriptServiceConfiguration {
168167 if ( value === true ) {
169168 return SeparateSyntaxServerConfiguration . Enabled ;
170169 }
171- if ( value === 'dynamic' ) {
172- return SeparateSyntaxServerConfiguration . Dynamic ;
173- }
174170 return SeparateSyntaxServerConfiguration . Disabled ;
175171 }
176172
You can’t perform that action at this time.
0 commit comments