trplnr
trplnr2w ago

Make vscode not treat my client folder as a deno project

I have the Deno extension installed and my project structure looks like this:
client/
- ...
server /
- ...
config.js
deno.json
...
client/
- ...
server /
- ...
config.js
deno.json
...
When I edit js files in the client folder, vscode still thinks im editing a deno js file. This makes it so document doesn't show up in my autocomplete and window is treated as deprecated. How can I override that so I get the browser APIs showing up in my autocomplete?
2 Replies
bartlomieju
bartlomieju2w ago
You can use deno.disablePaths setting in .vscode/settings.json to ignore them: https://github.com/denoland/vscode_deno?tab=readme-ov-file#configuration
GitHub
GitHub - denoland/vscode_deno: Visual Studio Code plugin for Deno
Visual Studio Code plugin for Deno. Contribute to denoland/vscode_deno development by creating an account on GitHub.
trplnr
trplnrOP2w ago
thank you very much!

Did you find this page helpful?