Skip to content
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

Document workbench.editor.labelFormat setting #8228

Open
ethanfox opened this issue Dec 19, 2022 · 5 comments
Open

Document workbench.editor.labelFormat setting #8228

ethanfox opened this issue Dec 19, 2022 · 5 comments
Labels
documentation Improvements or additions to documentation

Comments

@ethanfox
Copy link

ethanfox commented Dec 19, 2022

Describe the problem

Whenever I'm working on my svelteKit project all of that tabs have "+page.svelte" at the top with their parent folder in smaller letters.
e.g.

+page.svelte

/login

Describe the proposed solution

It would be great if there were a way for the parent folder to show up larger and "+page.svelte" to be smaller as it's not that important.
e.g.

/login

+page.svelte

The plugin would have to be able to understand how a sveltekit project could be structured.

Importance

nice to have

Additional Information

No response

@Conduitry Conduitry transferred this issue from sveltejs/kit Dec 20, 2022
@benmccann
Copy link
Member

benmccann commented Dec 20, 2022

you could try setting the short setting for labelFormat: https://stackoverflow.com/questions/54354775/visual-studio-code-how-do-i-display-the-file-directory-in-the-tab-for-all-files#54354948

VS Code does not expose an API to allow to to handle this in the Svelte VS Code plugin: microsoft/vscode#41909

@ethanfox
Copy link
Author

you could try setting the short or medium setting for labelFormat: https://stackoverflow.com/questions/54354775/visual-studio-code-how-do-i-display-the-file-directory-in-the-tab-for-all-files#54354948

VS Code does not expose an API to allow to to handle this in the Svelte VS Code plugin

Tragic. Just thought it would be cool to have. Not a big deal.

@Conduitry Conduitry transferred this issue from sveltejs/language-tools Dec 20, 2022
@Conduitry Conduitry added the documentation Improvements or additions to documentation label Dec 20, 2022
@Conduitry
Copy link
Member

Labeling this as 'documentation' so that we can mention the workbench.editor.labelFormat setting somewhere, possibly in https://kit.svelte.dev/docs/creating-a-project#editor-setup

@benmccann benmccann changed the title VS Code Extension to make it easier to know which file your are in. Document workbench.editor.labelFormat setting Dec 20, 2022
@benmccann
Copy link
Member

There's a new workbench.editor.customLabels.patterns setting that can be used. We should perhaps wait until it hits stable to document it, but I'd love to get feedback on it: https://twitter.com/BenjaminMcCann/status/1770847155739144487

@eltigerchino
Copy link
Member

eltigerchino commented Apr 5, 2024

Do we still need to document this if we can include it by default when the Svelte VS Code extension is installed? sveltejs/language-tools#2330

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants