mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
Always enable dynamic syntax server on TS 4.0+
We are looking for feedback on this new setting. For those on TS 4.0+, it should also be a sensible default
This commit is contained in:
@@ -93,10 +93,12 @@ export class TypeScriptServerSpawner {
|
||||
return CompositeServerType.Single;
|
||||
|
||||
case SeparateSyntaxServerConfiguration.Enabled:
|
||||
return version.apiVersion?.gte(API.v340) ? CompositeServerType.SeparateSyntax : CompositeServerType.Single;
|
||||
|
||||
case SeparateSyntaxServerConfiguration.Dynamic:
|
||||
return version.apiVersion?.gte(API.v400) ? CompositeServerType.DynamicSeparateSyntax : CompositeServerType.Single;
|
||||
if (version.apiVersion?.gte(API.v340)) {
|
||||
return version.apiVersion?.gte(API.v400)
|
||||
? CompositeServerType.DynamicSeparateSyntax
|
||||
: CompositeServerType.SeparateSyntax;
|
||||
}
|
||||
return CompositeServerType.Single;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,6 @@ export namespace TsServerLogLevel {
|
||||
export const enum SeparateSyntaxServerConfiguration {
|
||||
Disabled,
|
||||
Enabled,
|
||||
Dynamic,
|
||||
}
|
||||
|
||||
export class TypeScriptServiceConfiguration {
|
||||
@@ -168,9 +167,6 @@ export class TypeScriptServiceConfiguration {
|
||||
if (value === true) {
|
||||
return SeparateSyntaxServerConfiguration.Enabled;
|
||||
}
|
||||
if (value === 'dynamic') {
|
||||
return SeparateSyntaxServerConfiguration.Dynamic;
|
||||
}
|
||||
return SeparateSyntaxServerConfiguration.Disabled;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user