When using the new extension with the language server, the output tab keeps stealing focus when any action is performed. Disabling the output tab and hiding the bottom panel does nothing, as soon as the language server prints and output it brings the tab back and in focus
you can disable it for now (but still keep the code fomatting with the colors and such) by doing this: https://github.com/hashicorp/vscode-terraform/issues/366#issuecomment-642517541 until this is fixed
I was able to fix this by setting trace.server to anything but "verbose" which I believe may be the default.
Also I had a few other junk settings in here from the various incarnations of the TF VSCode extension / other language servers.
This is all I have now.
"terraform.languageServer": {
"trace.server": "off",
"external": true,
"args": ["serve"]
},
Edit: I may have lied. It was working just fine for me, now the behavior is back :/
Update, this may still work - kind of. I find it still can get into a state where it steals focus, but switching the trace.server off and then restarting vscode completely got it to settle down 🤷
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 context necessary to investigate further.
Most helpful comment
I was able to fix this by setting
trace.serverto anything but "verbose" which I believe may be the default.Also I had a few other junk settings in here from the various incarnations of the TF VSCode extension / other language servers.
This is all I have now.
Edit: I may have lied. It was working just fine for me, now the behavior is back :/
Update, this may still work - kind of. I find it still can get into a state where it steals focus, but switching the trace.server off and then restarting vscode completely got it to settle down 🤷