diff --git a/.vscode/settings.json b/.vscode/settings.json index e6f17af95d2..3a0c21ed96b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -21,12 +21,12 @@ "coverage": true, "npm": true }, - "typescript.tsdk": "node_modules/typescript/lib", "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode", "[rust]": { "editor.defaultFormatter": "rust-lang.rust-analyzer", "editor.formatOnSave": true }, - "js/ts.tsdk.path": "node_modules/typescript/lib" + "js/ts.tsdk.path": "./node_modules/typescript/lib", + "js/ts.tsdk.promptToUseWorkspaceVersion": true } diff --git a/website/content/docs/guides/react-query.mdx b/website/content/docs/guides/react-query.mdx index d5ba6318e8a..f550ec91a87 100644 --- a/website/content/docs/guides/react-query.mdx +++ b/website/content/docs/guides/react-query.mdx @@ -87,8 +87,8 @@ Finally, we also need to prompt Visual Studio Code to use the local TypeScript v ```json title=".vscode/settings.json" { - "typescript.tsdk": "node_modules/typescript/lib", - "typescript.enablePromptUseWorkspaceTsdk": true + "js/ts.tsdk.path": "./node_modules/typescript/lib", + "js/ts.tsdk.promptToUseWorkspaceVersion": true } ``` diff --git a/website/content/docs/guides/vanilla-typescript.mdx b/website/content/docs/guides/vanilla-typescript.mdx index 142a3d85060..51c776169f7 100644 --- a/website/content/docs/guides/vanilla-typescript.mdx +++ b/website/content/docs/guides/vanilla-typescript.mdx @@ -103,8 +103,8 @@ Finally, we also need to prompt Visual Studio Code to use the local TypeScript v ```json title=".vscode/settings.json" { - "typescript.tsdk": "node_modules/typescript/lib", - "typescript.enablePromptUseWorkspaceTsdk": true + "js/ts.tsdk.path": "./node_modules/typescript/lib", + "js/ts.tsdk.promptToUseWorkspaceVersion": true } ```