VS Code: specify workspace typescript version

Currently the workspace's version is older than VS Code's default.
VS Code complains about things that aren't errors according to the
workspace. (In particular, typing of catched exceptions has become
stricter.) With this setting, you can select the workspace's Typescript
version in the VS Code UI so the two are consistent.
This commit is contained in:
Scott Lamb 2022-03-03 10:52:26 -08:00
parent e90d804f1a
commit b2fa415823

View File

@ -43,5 +43,10 @@
},
"rust-analyzer.inlayHints.enable": false,
"markdown.extension.list.indentationSize": "inherit",
"markdown.extension.toc.unorderedList.marker": "*"
"markdown.extension.toc.unorderedList.marker": "*",
// Specify the path to the workspace version of TypeScript. Note this only
// takes effect when workspace version is selected in the UI.
// https://code.visualstudio.com/docs/typescript/typescript-compiling#_using-the-workspace-version-of-typescript
"typescript.tsdk": "./ui/node_modules/typescript/lib"
}