#How do I type check inside of my IDE?
2 messages · Page 1 of 1 (latest)
To enable type checking within your IDE using the Deno extension for VSCode, you should ensure that the Deno language server is properly configured and enabled for your workspace. Here are the steps you can follow based on the documentation:
-
Enable Deno in the Workspace: Use the
Deno: Initialize Workspace Configurationcommand from the VSCode command palette. This will set up the necessary configuration for your project to work with Deno. -
Check Workspace Configuration: You can also check the current active configuration by using the
Deno: Language Server Statuscommand from the command palette. This will display a document with a section named "Workspace Configuration," showing what VSCode is reporting to the language server. -
Disable TypeScript Project Diagnostics: Make sure that the VSCode configuration called
enableProjectDiagnostics, located in TypeScript › Tsserver › Experimental: Enable Project Diagnostics is disabled. This setting, if enabled, allows the TypeScript language server to execute in the background and check the entire project, which can interfere with Deno's language server. -
Restart VSCode: If you've made changes to the settings and the error message still persists, try restarting VSCode. Sometimes the extension that "mutes" the built-in TypeScript diagnostics for files may not work as designed until after a restart.
-
Report a Bug if Necessary: If the issue persists after a restart, you may have encountered a bug. In such a case, you should search the issues and consider reporting a bug at the vscode_deno repository.
Remember that by default, TypeScript modules are not type-checked before they are executed in Deno. However, within the IDE, the Deno