Skip to content

Commit

Permalink
Fix method name
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz committed Jun 21, 2019
1 parent 362ca1d commit fd245fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class TypeScriptServerSpawner {
configuration: TypeScriptServiceConfiguration,
pluginManager: PluginManager
): ITypeScriptServer {
if (this.shouldUserSeparateSyntaxServer(version)) {
if (this.shouldUseSeparateSyntaxServer(version)) {
const syntaxServer = this.spawnProcessBasedTsServer('syntax', version, configuration, pluginManager, ['--syntaxOnly', '--disableAutomaticTypingAcquisition']);
const semanticServer = this.spawnProcessBasedTsServer('semantic', version, configuration, pluginManager, []);
return new SyntaxRoutingTsServer(syntaxServer, semanticServer);
Expand All @@ -44,7 +44,7 @@ export class TypeScriptServerSpawner {
return this.spawnProcessBasedTsServer('main', version, configuration, pluginManager, []);
}

private shouldUserSeparateSyntaxServer(version: TypeScriptVersion): boolean {
private shouldUseSeparateSyntaxServer(version: TypeScriptVersion): boolean {
if (!version.version || version.version.lt(API.v340)) {
return false;
}
Expand Down

0 comments on commit fd245fc

Please sign in to comment.