From 43117c63b065ddb9627d8c1c98c20cb6f01de289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A8=8A=E5=86=AC?= Date: Fri, 18 Sep 2020 16:00:54 +0800 Subject: [PATCH] fix: fix up the locale (#205) --- src/server/typescriptServiceClient.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/server/typescriptServiceClient.ts b/src/server/typescriptServiceClient.ts index cefa995..e893ffe 100644 --- a/src/server/typescriptServiceClient.ts +++ b/src/server/typescriptServiceClient.ts @@ -835,6 +835,10 @@ export default class TypeScriptServiceClient implements ITypeScriptServiceClient } } + if (this._configuration.locale) { + args.push('--locale', this._configuration.locale) + } + if (this._configuration.typingsCacheLocation) { args.push('--globalTypingsCacheLocation', `"${this._configuration.typingsCacheLocation}"`) }