-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Improve project detection #47
Comments
I think the issue is that the current active project is inferred depending on what file is currently active, so if you open the settings for example the whole thing falls apart. |
Yup, that sounds right. The error seems to occur if and only if the current editor is a file outside the workspace folder. Thanks! |
This is causing me problems as well. I can't reliably use relative paths in the I expected to be able to use It probably too late to fix |
@fabiospampinato any improvements on this thread? Commands which uses relative path fails on multiroot workspaces. I was trying to find a workaround for this issue by consuming [workSpaceFolder] and accumlating the relative directory as said by @ben-page like this
Since [workSpaceFolder] is not static, it changes relative to the current editor bench focused files/directory, the above workaround fails UPDATE: Here is the forked implementation, where the above mentioned issue has been resolved - Terminals Manager Pro , BTW sorry for re-implementation, it seems like there is no activity in this project recently, so I forked and published my own version of terminals manager instead raising PR for this fix. |
Problem
Often when I run "Terminals:Run" I get the error "No terminals defined, edit the
configuration". Unfortunately, I can't consistently reproduce this. The workaround below can persist after restart.
Workaround
Open the configuration file (
code .vscode/terminals.json
in Linux) then run "Terminals: Run" whilethe file is open in the editor. Then it works. And, sometimes at least, it continues to work after I restart VS Code.
Environment
VS Code: 1.47.2 running on Windows 10
Remote OS: Ubuntu Server 20.04
Terminals Manager: 1.12.9
The text was updated successfully, but these errors were encountered: