-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vscode] No error message if vscode.open command is invoked with resource that doesn't exist #5667
Comments
I've just installed the extension [1] for testing purpose in VS Code. [1] https://github.com/tolusha/vscode-test-extensions/blob/master/open-some-file-0.0.1.vsix |
@tetchel Could you tell what the exact usecase is? |
It's still an issue. In one of my extension's WebViews I have a button which opens a particular file. If that file is missing in VS Code, the user gets an error. If it's missing in Theia, the button appears to not work even though it is executing the command. The steps to reproduce are just
In VS Code you will see an error message, in theia you will not. |
@tetchel [1] https://github.com/tolusha/vscode-test-extensions/blob/master/open-some-file-0.0.1.vsix |
#6290 might be the reason an error is ignored. |
…urce that doesn't exist eclipse-theia#5667 Signed-off-by: Victor Rubezhny <[email protected]>
@tolusha's test extension doesn't work anymore as the following check is added for the command parameters at https://github.com/eclipse-theia/theia/blob/master/packages/plugin-ext-vscode/src/browser/plugin-vscode-commands-contribution.ts#L79:
As result of the change the other kind of error is being reported instead of
@tolusha Could you please confirm that PS: I found that the |
@vrubezhny It used to work |
…urce that doesn't exist eclipse-theia#5667 Signed-off-by: Victor Rubezhny <[email protected]>
…urce that doesn't exist eclipse-theia#5667 Signed-off-by: Victor Rubezhny <[email protected]>
…urce that doesn't exist eclipse-theia#5667 Signed-off-by: Victor Rubezhny <[email protected]>
…urce that doesn't exist eclipse-theia#5667 Signed-off-by: Victor Rubezhny <[email protected]>
…urce that doesn't exist eclipse-theia#5667 Fixes eclipse-theia#5667 Signed-off-by: Victor Rubezhny <[email protected]>
…urce that doesn't exist eclipse-theia#5667 Fixes eclipse-theia#5667 Signed-off-by: Victor Rubezhny <[email protected]>
…urce that doesn't exist eclipse-theia#5667 Fixes eclipse-theia#5667 Signed-off-by: Victor Rubezhny <[email protected]>
This commit finishes imlementations of eclipse-theia#6568 This commit closes eclipse-theia#5667 Signed-Off-By: FernandoAscencio <[email protected]>
In VS Code, if you do
vscode.commands.executeCommand("vscode.open"
with a file that doesn't exist, you get an error message like the following:It would be nice if theia had the same behaviour.
The text was updated successfully, but these errors were encountered: