denoland / vscode_deno

Visual Studio Code plugin for Deno
https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno
MIT License
1.49k stars 146 forks source link

Everything in Intellisense is duplicated #1105

Open nleanba opened 7 months ago

nleanba commented 7 months ago

Describe the bug

In any project where Deno is enabled, all Intellisense features are duplicated: suggestions, type info on hover, go to definition, etc.

Notably, the two suggestions/types are not always identical. The second one usually starts with (loading...), and tends to be less precise (more often any). IN some projects of mine, the second one is stuck on "Loading..." indefinitely.

I am assuming this is because the vs code built-in typescript features also (try) to provide this information. However, when disabling Typescript suggestions in the settings or disabling the builtin typescript extension, both disappear — I am unable to manually selectively disable the built in typescript features.

To Reproduce

Happens on literally any of my Deno projects.

Expected behavior

I expect the Deno extension to disable the builtin Intellisense suggestions.

Screenshots image image

Versions

vscode: 1.88.0 deno: 1.40.5 extension: v3.36.0

nayeemrmn commented 7 months ago

Check that you don't have a separate extension causing that. I don't recognise the (loading...)

nleanba commented 7 months ago

As far as I can tell, the loading... is produced by the built-in typescript extension, if its typescript language server is slow for some reason.

Update: The issue still occurs if all installed vs code extensions are disabled except Deno. (Also after quitting+relaunching vs code).

If I also disable the Deno extension, only the (loading...) entry appears, supporting the assumption that that is the suggestion provided by the builtin typescrip features.

It seems to me that on my computer, the Deno extension somehow fails to supress the builtin suggestions.

nayeemrmn commented 4 months ago

@nleanba Please share your deno.enable related settings, and project structure with regards to deno.json locations.