You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary of issue:
When running an extension, the promise returned by vscode.commands.executeCommand('workbench.action.openEditorAtIndex1') does not resolve if there is an editor which corresponds to the given index. I noticed this behavior because I tried to await this command from some automated tests in the VSCodeVim repo.
The relevant code and comments are in src/extension.ts.
Steps to Reproduce:
Open the above project in VSCode
Launch the extension with Debug > Start Debugging or F5
In the window that just launched, execute the editor command Hello World (for macOS users, cmd+shif+P then type Hello World and press enter)
View the debug console to see that openEditorAtIndex1 was never logged
Expected behavior:
I expect the promise from the command to resolve or fail every time it is called. It appears that when there is an editor that corresponds to an index, that promise neither resolves nor rejects.
Does this issue occur when all extensions are disabled?: Yes
Let me know if you want any additional information.
Thanks! =)
The text was updated successfully, but these errors were encountered:
Previously there was a bug in VSCode which prevented me from doing:
```
await
vscode.commands.executeCommand('workbench.action.openEditorAtIndex1')
```
The most recent release of VSCode (1.21.0) fixes the bug. See
microsoft/vscode#44636
Previously there was a bug in VSCode which prevented me from doing:
```
await
vscode.commands.executeCommand('workbench.action.openEditorAtIndex1')
```
The most recent release of VSCode (1.21.0) fixes the bug. See
microsoft/vscode#44636
Version info:
Summary of issue:
When running an extension, the promise returned by
vscode.commands.executeCommand('workbench.action.openEditorAtIndex1')
does not resolve if there is an editor which corresponds to the given index. I noticed this behavior because I tried toawait
this command from some automated tests in the VSCodeVim repo.I made a small extension to demonstrate the unexpected behavior: https://github.com/arussellk/vscode-workbench-action-openeditoratindex1-bug-repro
The relevant code and comments are in
src/extension.ts
.Steps to Reproduce:
Debug > Start Debugging
orF5
Hello World
(for macOS users,cmd+shif+P
then typeHello World
and press enter)openEditorAtIndex1
was never loggedExpected behavior:
I expect the promise from the command to resolve or fail every time it is called. It appears that when there is an editor that corresponds to an index, that promise neither resolves nor rejects.
Does this issue occur when all extensions are disabled?: Yes
Let me know if you want any additional information.
Thanks! =)
The text was updated successfully, but these errors were encountered: