From 8113366d5e78f5fb90fd5b9bf34d5b35fc9c7558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hyeon=20Kim=20=28=EA=B9=80=EC=A7=80=ED=98=84=29?= Date: Tue, 14 Jul 2020 13:53:22 +0900 Subject: [PATCH] Support the new path of Yarn v2 pnpify SDK (#181) Pnpify SDKs are not located in `.vscode/pnpify` anymore. It's in `.yarn/sdks` instead. Adding it to MODULE_FOLDERS. Reference: https://github.com/yarnpkg/berry/pull/1446 https://github.com/yarnpkg/berry/pull/1481 https://github.com/neoclide/coc-tsserver/commit/52f625c453d36896252f2ab1818ff8c950222c7a --- src/server/utils/versionProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/utils/versionProvider.ts b/src/server/utils/versionProvider.ts index eac8a85..074d66f 100644 --- a/src/server/utils/versionProvider.ts +++ b/src/server/utils/versionProvider.ts @@ -84,7 +84,7 @@ export class TypeScriptVersion { } } -const MODULE_FOLDERS = ['node_modules/typescript/lib', '.vscode/pnpify/typescript/lib'] +const MODULE_FOLDERS = ['node_modules/typescript/lib', '.vscode/pnpify/typescript/lib', '.yarn/sdks/typescript/lib'] export class TypeScriptVersionProvider {