sanity-io / vscode-sanity

Visual Studio Code extension for developing applications powered by Sanity.io
MIT License
51 stars 9 forks source link

Enabling extensions breaks all other extensions #27

Open EECOLOR opened 3 months ago

EECOLOR commented 3 months ago

Describe the bug

When I enable this extension vscode becomes slow and all other extensions (including the built-in ones) seem to stop working.

Output from the extension host:

2024-08-20 13:20:10.949 [error] TSError: ⨯ Unable to compile TypeScript:
../../.vscode/extensions/dbaeumer.vscode-eslint-3.0.10/client/out/extension.js(1,9558): error TS2802: Type 'IterableIterator<any>' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher.
../../.vscode/extensions/dbaeumer.vscode-eslint-3.0.10/client/out/extension.js(1,18305): error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
../../.vscode/extensions/dbaeumer.vscode-eslint-3.0.10/client/out/extension.js(1,18314): error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
../../.vscode/extensions/dbaeumer.vscode-eslint-3.0.10/client/out/extension.js(1,18327): error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
../../.vscode/extensions/dbaeumer.vscode-eslint-3.0.10/client/out/extension.js(1,18370): error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
../../.vscode/extensions/dbaeumer.vscode-eslint-3.0.10/client/out/extension.js(1,18402): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
...

To Reproduce

Download vscode and install the extension, maybe together with another extension. Simple JSON formatting does not work anymore.

Expected behavior

For it to work. Maybe, as an improvement only execute on js and ts files.

Which versions of Sanity are you using?

No Sanity in this project. I only use it for groq highlighting

What operating system are you using?

Linux

Which versions of Node.js / npm are you running?

Version: 1.92.1
Commit: eaa41d57266683296de7d118f574d0c2652e1fc4
Date: 2024-08-07T20:16:39.455Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Linux x64 6.8.0-40-generic