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
OS X Catalina 10.15.7
Darwin (redacted) 19.6.0 Darwin Kernel Version 19.6.0: Tue Jun 22 19:49:55 PDT 2021; root:xnu-6153.141.35~1/RELEASE_X86_64 x86_64
Terraform Version
Terraform v0.15.3
on darwin_amd64
Steps To Reproduce
The text was updated successfully, but these errors were encountered:
Just found the root cause. It appears that VS Code consideres Output panes as active text editor areas too microsoft/vscode#58869
Which means that if you click/focus on the Output pane and then either the background command runs, or you execute any command yourself (formatting, init, ...) with that pane in focus then we receive URI for that pane, instead of the actual editor tab.
We just need to find a better (more reliable and accurate) way of obtaining the relevant/open file or directory URI...
I think the best way forward would be looping over window.visibleTextEditors and looking for an editor which has viewColumn == Activehttps://code.visualstudio.com/api/references/vscode-api#ViewColumn and relatedly use vscode.window.onDidChangeVisibleTextEditors callback instead of onDidChangeActiveTextEditor.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Versions
This bug is reproducible in:
Extension
Language Server
terraform-ls-debug.out.tar.gz
VS Code
Operating System
Terraform Version
Steps To Reproduce
The text was updated successfully, but these errors were encountered: