vscode_deno icon indicating copy to clipboard operation
vscode_deno copied to clipboard

Symbols are listed twice when Deno is enabled

Open klaussner opened this issue 1 year ago • 2 comments

Describe the bug

When Deno is enabled, symbols in source files are shown twice in the list of symbols.

To reproduce

  1. Open an empty directory in VS Code.
  2. Run the "Deno: Initialize Workspace Configuration" command.
  3. Create a JavaScript file with the content below.
  4. Open the command palette and type "@" to list the symbols.
export function foo() {
  return 42;
}

Expected behavior

The symbol foo is shown once in the list.

Video

If applicable, add screenshots to help explain your problem.

Versions

vscode: 1.95.0 deno: 2.0.3 extension: 3.42.0

klaussner avatar Oct 31 '24 16:10 klaussner

My intellisense is even more bloated:

image

I'm on Deno 2.0.5 rest are same as yours.

mr-moon avatar Nov 06 '24 11:11 mr-moon

Perhaps both the built-in TypeScript LSP and the Deno LSP provide results for the symbol list. If the built-in "TypeScript and JavaScript Language Features" extension is disabled (go to the extensions view and type "@​builtin typescript" into the search field), the symbols are not duplicated.

klaussner avatar Mar 08 '25 17:03 klaussner

I've got the same issue, and fixed it by disabling the builtin TypeScript like recommended by @klaussner.

In the outline panel view, you can see that the duplication is, indeed, due to both extensions (Deno and TS) doing the same work:

Image

nesk avatar Jul 06 '25 18:07 nesk

Is it possible to disable listing symbols (and other features) in the Deno extension?

I mean, VSCode Typescript features like listing symbols, organizing imports etc already exist in VSCode so it would be better (for me at least) to just disable these features of Deno

birgersp avatar Dec 12 '25 09:12 birgersp

Perhaps we could add a setting to disable these feature(s)? PR incoming

Before:

Image

After:

Image

birgersp avatar Dec 12 '25 09:12 birgersp