-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Describe the bug
This is an inconsistency between different functions in util::IDEServices:
- with
editand a project URI the file name is normalized and the right file is opened. - with
applyFileSystemEditsthis is not done and a different editor is opened for the project URI. Also the changes are not applied to the code in the original editor that was being analyzed and rewritten.
To Reproduce
This is the vsix of build number 2793, after the overloading fix in IDEServices interfaces.
- Use a project URI to open a file: say
l = |project://code-as-data-demo/examples/BadProgrammer.java|; import util::IDEServices;edit(l); // worksapplyFileSystemEdits([changed(l, [replace(l(0,0), "bla")])])opens a new (unsaved) editor tab with the contents of the right file and the applied changes- change
lto an absolute file URL:l = |file:///Users/jurgenv/git/code-as-data-demo/examples/BadProgrammer.java|; - try step 4 again. Now it works correctly. The changes are applied in the open editor, and the file becomes "unsaved"
Metadata
Metadata
Assignees
Labels
No labels