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

vscode.window.tabGroups.all does not work with custom editor #562

Open
alienself opened this issue Jan 26, 2025 · 1 comment
Open

vscode.window.tabGroups.all does not work with custom editor #562

alienself opened this issue Jan 26, 2025 · 1 comment

Comments

@alienself
Copy link

Hello there!

When calling const editorGroups = vscode.window.tabGroups.all; to get the current editor layout, files open with custom editors are missing the input property containing their resource URI while regular text editor do have it.

In other words, it is not possible to know the uri of files that are open with custom editors.

How can this be fixed?

with custom editors
Image

with regular text editors:
Image

@CGNonofr
Copy link
Contributor

Hello!

Instead of extending SimpleEditorInput as the input, you can implement AbstractTextResourceEditorInput

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

No branches or pull requests

2 participants