Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable extension for a subdirectory #87

Closed
ghost opened this issue Jun 14, 2020 · 3 comments
Closed

Disable extension for a subdirectory #87

ghost opened this issue Jun 14, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Jun 14, 2020

I know how to disable the extension in a project by using a .vscode/settings.json file but it does not seem to work for subdirectories of a project.

My problem is that I have a project in which there is deno code and browser javascript but because of the deno extension I have lint errors like "Could not find name 'alert'".

How can I prevent that?

@adekau
Copy link

adekau commented Jun 16, 2020

What I've been doing as a workaround is having two VSCode windows open, one with my backend code folder opened and one with my frontend code folder opened. Then using the commands for enabling and disabling Deno from the command palette puts a .vscode folder in each so you can control them separately.

@Flaque
Copy link
Contributor

Flaque commented Jun 18, 2020

We're using Deno inside a monorepo, so I'm going to try and play around with building a config option for this. No guarantees or anything, first time doing a VS Code extension, so don't let me stop anyone else from taking this.

Proposal

Deno VS Code should support a deno.paths variable that lets you specify folders or files via blob syntax as deno enabled.

For example, a config like this:

{
  "deno.paths": ["packages/deno-project/**", "*.deno.ts"]
}

Would set anything in the packages/deno-project folder as well as any file like foo.deno.ts.

@lucacasonato
Copy link
Member

Closing in favor of #314

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants