Comments (3)
Deno even fails to ignore the lints when it shouldn't so I can't solve above with this either. 😿
from deno.
Ideally what I want is not to have the deno.enable: true
inside my .code-workspace
I open.
But I want VSCode Deno extension to use this:
This should be enough to not have Deno extension breaking down.
from deno.
I, as well, am having some issues with vscode workspaces. I have a regular deno project so no bun is involved. But I do have the setup where I have a subdirectory with deno code that I want to be linted, formatted, and enabled for deno scripts, and for the rest of the project, I do not want to use deno.
The issues that I am having are related to manually formatting my deno scripts which are typescript code.
When I use the VSCode key combination 'Shift + Alt + F' to format my deno scripts, I get the following message box:
I only get this when I have my project opened as a vscode workspace. If I open the project in a standard way at the root of the project/repo, formatting works fine, I get no message box, and I also do not get any strange enable vs disable behavior.
Note
I am running deno version v1.43.1
and the extension version is v3.37.0
At this point, it seems obvious to me that the issue is related to deno support with VSCode workspaces.
I have a docusaurus website where I am using deno for dev stuff and cicd related things. This is why I have the workspaces.
The project is open source named VelaptorDocs and you can see what I have set up there.
Here is my vscode workspace
{
"folders": [
{
"name": "VelaptorDocs",
"path": ".",
},
{
"name": "SampleProjects",
"path": "./SampleProjects",
},
{
"name": "CICD",
"path": ".github/cicd",
}
],
"settings": {
"testing.followRunningTest": true,
"testing.gutterEnabled": false,
"testing.openTesting": "neverOpen",
"typescript.referencesCodeLens.enabled": true,
"powershell.cwd": "VelaptorDocs",
}
}
I have 2 `setting.json` files. One is in the standard location at the root `.vscode` directory shown below
{
"deno.enable": false,
"cSpell.words": [
"cicd",
"clsx",
"defaultdocumentation",
"Infima",
"Kinson",
"KXVA",
"Multiauthor",
"Playmegames",
"preinstall",
"Reguler",
"Structs",
"tailwindcss",
"Texinfo",
"typecheck",
"Velaptor"
],
"files.exclude": {
".docusaurus/": true,
"node_modules": true,
"VelaptorDocs.code-workspace": true,
"build/": true,
".github/cicd/": true,
".config": false,
"RepoSrc/": true,
"*.lock": true,
"SampleProjects": true,
},
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/*.code-search": true,
"build/": true
},
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features",
"editor.insertSpaces": false,
"editor.tabSize": 3,
},
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features",
"editor.insertSpaces": false,
"editor.tabSize": 4,
},
"[yaml]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
},
"[jsonc]": {
"editor.insertSpaces": false,
"editor.tabSize": 4,
},
"[mdx]": {
"editor.insertSpaces": true,
"editor.tabSize": 4,
},
"editor.detectIndentation": false,
"[github-actions-workflow]": {
"editor.tabSize": 2,
"editor.insertSpaces": true
}
}
The other 'settings.json' file is in the .github/cicd/.vscode/
directory. File is shown below:
{
"deno.enable": true,
"deno.config": "../deno.json",
"cSpell.words": [
"cicd",
"defaultdocumentation",
"docu",
"Kinson",
"Velaptor"
],
}
I have tried simple projects with minimum files just to try and get it working. I have also tried disabling all extensions except for the deno extension to see if that would help.
from deno.
Related Issues (20)
- Bug: Node `vm` doesn't have Node's `global` global HOT 6
- Bug: `worker_threads` missing `MessagePort` conversion in deeply nested object
- Analyze CJS re-exports in parallel
- Cache module emits in parallel
- fix: npm package "urllib": invalid type: map, expected a string HOT 6
- Bug: `jest` errors with Class constructor Process cannot be invoked without 'new'
- Panic with npm:@aws-sdk/client-s3 HOT 2
- LSP: auto import to `.js` file even though the actual file is a `.d.ts` file HOT 2
- LSP: auto import doesn't work correctly with project-root-for-absolute-imports mapping HOT 1
- 🐛(WinOS) `Deno.consoleSize()` incorrectly returns console buffer size
- BUG: `deno doc --lint` crash with non-ASCII ts code HOT 4
- @deno-types breaks at 1.43.4 HOT 19
- `/// <reference types="..." />` stopped working in TypeScript files in the LSP in 1.43.0 HOT 1
- API to decode URI path segments
- "Uncaught SyntaxError: Unexpected token '<'" when using primitive as parameter in arrow function declaration HOT 1
- Supporting `vitest` tracking issue HOT 1
- Bug: Panic when running astro's `test:node` task HOT 1
- Deno v1.43.4 on Windows: WinGet installation or upgrade fails HOT 11
- reduce readFileSync syscall count HOT 2
- Diagnostic-languageserver stopped working in Deno >= 1.43 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deno.