Can't specify parent directory for untitled resource #13159
Answered
by
msujew
meisenbarth-work
asked this question in
Q&A
-
I tried to create a new document using UntitledResourceResolver.createUntitledURI and pass a parent, but the result always is untitled:///Untitled-1. Checking node_modules@theia\core\src\common\resource.ts reveals it is overwritten in 367 and the result from the parent (365) is not used. Is this intended behavior or is a else missing? |
Beta Was this translation helpful? Give feedback.
Answered by
msujew
Dec 7, 2023
Replies: 1 comment 4 replies
-
I believe this is supposed to be intended. Note that untitled files don't really exist on the file system (yet), so there is little need to have a parent directory. What is your use case that requires one? |
Beta Was this translation helpful? Give feedback.
4 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
I see, yeah that's unrelated. So the issue itself isn't that you're unable to specify the parent directory, but rather that the default saving mechanism doesn't respect the current workspace when saving untitled resources. It's likely we need an improvement in our FilesystemSaveResourceService.