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
  52f625c453
This commit is contained in:
Hyeon Kim (김지현) 2020-07-14 13:53:22 +09:00 committed by GitHub
parent 50d6c6241a
commit 8113366d5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 { export class TypeScriptVersionProvider {