webbower
webbower
DDeno
Created by Goldman on 2/24/2024 in #help
VS Code integration is broken
My .vscode/settings.json is:
{
"deno.enable": true,
"deno.lint": true,
"editor.defaultFormatter": "denoland.vscode-deno",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "modificationsIfAvailable",
"files.autoSaveWhenNoErrors": true
}
{
"deno.enable": true,
"deno.lint": true,
"editor.defaultFormatter": "denoland.vscode-deno",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "modificationsIfAvailable",
"files.autoSaveWhenNoErrors": true
}
14 replies
DDeno
Created by Goldman on 2/24/2024 in #help
VS Code integration is broken
Hello. I just opened up my laptop hoping to hack on a Deno project and I'm finding a similar error too. Things had been working fine last I worked on this a week ago. I have the latest VS Code, Deno extension, and upgraded from 1.46.3 -> 2.0.5 trying to debug. I have 1 VS Code window open which is a single folder workspace. When I run the "Restart Language Server" command, it shows a modal with the following message: "Command 'Deno: Restart Language Server' resulted in an error Internal error" and the Debug Console for the Deno LS outputs:
Starting Deno language server...
version: 1.29.2 (release, x86_64-apple-darwin)
executable: /Users/mattbower/.deno/bin/deno
Connected to "Visual Studio Code" 1.95.2
Cannot set workspace settings: invalid type: null, expected a boolean
[Error - 4:25:34 PM] Server initialization failed.
Message: Internal error
Code: -32603
[Error - 4:25:34 PM] Deno Language Server client: couldn't create connection to server.
Message: Internal error
Code: -32603
Starting Deno language server...
version: 1.29.2 (release, x86_64-apple-darwin)
executable: /Users/mattbower/.deno/bin/deno
Connected to "Visual Studio Code" 1.95.2
Cannot set workspace settings: invalid type: null, expected a boolean
[Error - 4:25:34 PM] Server initialization failed.
Message: Internal error
Code: -32603
[Error - 4:25:34 PM] Deno Language Server client: couldn't create connection to server.
Message: Internal error
Code: -32603
14 replies
DDeno
Created by webbower on 7/6/2023 in #help
Globally import files for Deno subcommands
Oh interesting. I figured out a conceptually similar solution in my Fresh project to import it into main.ts. For my tests, I created a test entry point file which my deno test command runs and it explicitly imports all the test files after the bootstrapping import.
3 replies