-
Notifications
You must be signed in to change notification settings - Fork 146
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
Unable to configure correctly a workspace with Deno and Typescript compiler #581
Comments
Can you please provide the output of View | Output and then the Deno Language Server drop down and then also the first section of output from Deno: Language Server Status from the command pallette. |
Output view:
Deno Language Server Status {
"enable": false,
"cache": null,
"config": null,
"importMap": null,
"codeLens": {
"implementations": false,
"references": false,
"referencesAllFunctions": false,
"test": true
},
"internalDebug": false,
"lint": false,
"suggest": {
"completeFunctionCalls": false,
"names": true,
"paths": true,
"autoImports": true,
"imports": {
"autoDiscover": true,
"hosts": {
"https://deno.land": false
}
}
},
"unstable": false
} You can also quickly clone the project, it's a simple template project with no dependency in it. |
The project is not enabled for deno, as indicated by the configuration. This is likely because your workspace root is one level up from where the configuration is stored, and VSCode is not finding it. What happens when you go to Settings and change the Workspace tab and choose to enable Deno there (or use Deno: Initialize Workspace Configuration from the command palette)? |
When enabling globally, typescript client file have issues because they seems to be checked by deno extension. note that I'm just using this doc as a reference: |
I didn't suggest enabling globally, suggested enabling it for the workspace. You haven't setup a multi-root workspace, as per the vscode documentstion: https://code.visualstudio.com/docs/editor/multi-root-workspaces. You have setup a sub folder of a workspace with some config, which is not how multi workspaces work. |
Hi @kitsonk, this is already a multi workspace see workspace.code-workspace and I open it using this file. Have you got a sample that work? |
I just tried with this project locally: https://github.com/kitsonk/multi-root and everything works as expected, the |
Not working on VSCode on Windows. This does not work for me.
The setting.json has an error ...
It seems you can only set Deno extension to work on the Workspace, not a folder in the workspace!
|
@dsherret could you check the example project on windows? |
To enable multi-root, how should the Deno extension be configured?
With the extension set to enabled Workspace, Deno is enabled for the entire multi-root workspace, even with: If you set With any of these configuration options, Deno is either enabled in both server and client, or neither server nor client. |
On Windows, the following multi-root configuration is now working for me:
Also, changes to any of the 3 config files required a restart of VSCode for the results to take effect! |
I have the same problem and @nhrones doesn't fix it for me as the typescript service for the not Deno part is not enabled. I get syntaxhihlighting but nothing more. As this semes to be a windows only bug so I think this could be a path problem as windows uses often \ and not / as path seperator... |
On mac os i put the workspace on the root folder after i install the app and then i reload vsCode
|
Same here. I can only get one of two things to happen. Either Deno is enabled globally and works for Deno roots but there is no language server available for non-Deno roots, or Deno is not enabled globally and Deno roots are checked by the normal Typescript language server. There seems to be no way of fixing one without breaking the other. Is there a definitive guide to setting up a multiroot workspace with Deno? |
I never got it working I use multiple vscode instances |
any updates or workarounds for this one? seems to still be a problem. |
Other issue I filed got closed so I'll add details here. I'm not using a multi-root workspace, I'm only using
It seems as though this bug has resurfaced: #668 With this configuration the Deno language server appears to ignore enablePaths and auto-loads the package.json from the parent directory ( Auto-resolved package.json: "file:///Users/imagio/dev/myproj/package.json") When I attempt to edit Deno code it appears as though the TS LSP and the Deno LSP are "fighting" each other -- errors are highlighted, disappear, invalid errors are highlighted, disappear, errors are highlighted again, and so on. Sometimes it settles down after a time but as soon as one character is changed in the file it happens again. Deno LSP output:
I'm guessing the |
We have |
Hi,
I have a client with typescript files transpiled with Typescript compiler. And a server that uses Deno as a runtime.
But it's not working, see the screenshot below. I've created a repository that reproduce the issue llgcode/deno-client-server-ts-template.
I've set
deno.enable: true
in server/.vscode/settings.json as defined by your documentation workspaceFolders.md.I've seen these closed issues #448 and #297 that seems to be a duplicate of mine.
Regards.
The text was updated successfully, but these errors were encountered: