D
Deno

help

LSP/VSCode stops working

Ffro.profesional12/19/2023
I'm having issues in my fresh project time to time it stops working and I have to restart it or vscode, no sure why I did not happend before I'm using deno 1.39 and "deno.maxTsServerMemory": 10000 any suggestions?
DAHDeno AI Helper12/19/2023
It sounds like you're experiencing intermittent issues with the Deno Language Server Protocol (LSP) in Visual Studio Code. The documentation suggests a few things you can check when you encounter errors or issues with the Deno extension in VSCode: 1. Ensure Deno is enabled: Make sure that Deno is enabled for your workspace. You can check this by using the Deno: Language Server Status from the command palette, which will display the current active configuration as understood by the Deno language server. 2. Check VSCode Configuration: Verify that the enableProjectDiagnostics setting in VSCode is disabled. This setting is located in TypeScript › Tsserver › Experimental: Enable Project Diagnostics. If it's enabled, it might cause TypeScript language server to execute in the background and show errors even when Deno settings are correctly set. 3. Restart VSCode: Sometimes, simply restarting VSCode can resolve issues where the extension isn't functioning as expected. 4. Memory Configuration: You mentioned setting "deno.maxTsServerMemory": 10000. While the documentation does mention that you can configure the memory limit for the TypeScript server, it's worth noting that the default is 3GB. Setting it to a very high value like 10GB might not be necessary and could potentially lead to other issues if your system doesn't have sufficient resources. You might want to try reducing this value to something more conservative, like 3072 (which is 3GB), to see if that stabilizes the LSP. 5. Check for Bugs: If after trying the above steps the issue persists, it could be a bug that hasn't been encountered before. In such cases, searching the issues on the vscode_deno GitHub repository and reporting a new bug with
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.
DAHDeno AI Helper12/19/2023
details of your problem would be the next step. Remember to provide as much detail as possible when reporting an issue, including the Deno version, the VSCode Deno extension version, your operating system, and any logs or error messages you're seeing. 🦕
Ffro.profesional12/20/2023
I think is due to gh copilot 🤔
Mmarvinh.12/20/2023
Can you file an issue for that on the deno tracker?
Ffro.profesional12/20/2023
On it

Looking for more? Join the community!

Recommended Posts
Can the listeners for messages from Deno Deploy Queues timeout?Can the listeners for messages from Deno Deploy Queues timeout like Vercel serverless functions? AreHow to get the path to the compiled binary?`import.meta.url` and `Deno.mainModule` are used to get the current script, but after a binary is crHow to get `require.main.filename` like Node as DenoI am making a module to be published on deno.land/x. I want the user to put a file describing the coChange Web Worker Permissions after the Worker StartedHello, I was wondering if it is possible to change/update the permissions of a web worker after it Missing transpiled source codeI'm trying to generate coverage for my project and I'm getting the following: ``` deno task coverageTrouble validating a requestHi there! I'm trying to validate a Discord HTTP request, but I don't know how to do it (https://discHow to deploy to Deno Deploy from a Github repository's subdirectory?I read somewhere that you can deploy from a subdirectory, but I can't find any documentation on how Convert to exeI have made my Javascript program into an exe with deno: https://docs.deno.com/runtime/manual/tools/Manual deployment promotion + long lived preview deploymentsHello! I am working on a deployment pipeline and have a few questions: 1. Is there a way to promoteIs there a way to get deno coverage information in a vscode lens?If I run my tests with coverage enabled, can I get some visual feedback in vscode?Performance QuestionI have a Deno application, which creates API endpoint, and uses mongodb. Now I want to host this on Is there a way to get a server's SSL certificate's public information with Deno?This is available in Node with `getPeerCertificate()` but not in Deno's Node compatibility layer - i