Skip to content

editor.document.uri return stale URI after file rename #141190

@jeffb-sfdc

Description

@jeffb-sfdc

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.63.2
  • OS Version: OSX 11.6.2

Steps to Reproduce:

  1. create a file

  2. Using either the Finder, or within VS Code itself, rename the file and change the case, but don't add or remove any extra characters. For example, rename "testfile.js" to "testFile.js"
    -> In the Explorer view, the file appears correctly

  3. Restart VS Code and open the same project (just to make sure the change is picked up)

  4. With the file open and in the active editor, run an extension and call editor.document.uri

Result: The original filename is returned (eg "testfile.js")
Expected: "testFile.js"

We publish an extension and we have some code which is failing because of this.

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions