Skip to content

vscode.workspace.textDocument is missing documents in "Open Editors" that haven't been activated yet #38665

@sean-mcmanus

Description

@sean-mcmanus
  • VSCode Version: 1.18.1.
  • OS Version: Windows

Steps to Reproduce:

  1. Start debugging an extension that references vscode.workspace.textDocuments with a workspace that has multiple files open.

Bug: vscode.workspace.textDocuments doesn't include the files listed under "Open Editors" until the file is activated the 1st time. Our extension wants to check if there are any C++ files open, even if they haven't been given focus yet.

According to #10304 it sounds like the docs in Open Editors should belong to textDocuments.

Reproduces without extensions: Yes (uh...well, you need at least one extension, because the bug is with the extension APIs).

Metadata

Metadata

Assignees

Labels

*duplicateIssue identified as a duplicate of another issue(s)api

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions