vscode_deno icon indicating copy to clipboard operation
vscode_deno copied to clipboard

VSCode should provide indication of config file being used

Open kitsonk opened this issue 3 years ago • 4 comments

Currently the status bar shows the current version of Deno, but it should also be able to identify the configuration file being used.

The built-in TypeScript status provides a good example of what could be possible:

Cursor_and_docs_ts_—_apiland

kitsonk avatar Jul 26 '22 01:07 kitsonk

I would like to work on this, please correct me if anything is wrong. The current tab that specifies Deno 1.24.0 should include a sidetab with the same icon and it should leave room to add additional icons to the top-level dropdown list?

ghost avatar Aug 02 '22 12:08 ghost

The file to be altered can be found here. client/src/status_bars.ts

image

ghost avatar Aug 04 '22 04:08 ghost

Slightly related: I have a config like so

{
    "deno.enable": true,
    "deno.unstable": true,
    "deno.enablePaths": [
        "./api",
        "./webapp"
    ]
}

and configs in ./api/deno.jsonc and ./webapp/deno.jsonc. However, VS code doesn't seem to take the config into account, especially the import_map option, despite those folders being listed as "paths". I would expect each path to be considered its own Deno app with potentially a config of its own.

See Monorepo discussion: https://github.com/denoland/deno/discussions/9126#discussioncomment-3605938

eric-burel avatar Sep 13 '22 09:09 eric-burel

I did some digging and it's not possible to provide such a nice popup as TypeScript, using available VSCode API. That said we still can show some info (and provide some actions) when clicking on "Deno " button in the bottom right corner. I will look into it, but only if that doesn't take too much time.

bartlomieju avatar Dec 30 '22 15:12 bartlomieju

This is now output in the panel.

nayeemrmn avatar Jun 19 '24 18:06 nayeemrmn

image

@nayeemrmn could you provide screenshots? there's no config file info as of v3.37.1

scarf005 avatar Jun 21 '24 09:06 scarf005