Skip to content

API Access to "Open Editors" #15178

Closed
Closed
@ChuckJonas

Description

@ChuckJonas

I have a use case where I would like to be able to get a list of all the open editors (basically exactly what is shown here).

loginstructions_ts_-_vs-apex-debug

I understand that Editors are disposed but I just need a list of filenames.

Something like: workspace.openDocuments:Array<TextDocument> or even just workspace.openFiles:Array<string>.

Long term, it might be nice to have API access to operate on this list (EG: sort open editors pane by last opened, name, etc).

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insiderson-testplanworkbench-editorsManaging of editor widgets in workbench window

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions