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
I have a multi-root workspace (in Dev Spaces it is a default state), I'd like to automatically enable Ansible Lightspeed, for this I've added "ansible.lightspeed.enabled": true into .vscode/settings.json file. It means that this setting was applied on Workspace Folder level but it's not enough to enable Ansible Lightspeed:
Would it be possible to check if ansible.lightspeed.enabled was set in Workspace Folder settings level to apply it?
Steps to reproduce on VS Code:
1/ Open any project and create .vscode/settings.json file with the content:
{
"ansible.lightspeed.enabled": true
}
2/ Add another project to the workspace File -> Add Folder to Workspace
3/ Check that Ansible Lightspeed is not enabled
i.e. we are using the "non-scoped" getConfiguration and it should be the reason that the Workspace Folder-level settings are not picked up (reference).
In order to supporting Workspace Folder-level settings, just updating the "non-scoped" getConfiguration to the "scoped" one in this logic would not be enough. There are other settings retrieved in the same way and at least Lightspeed-related ones likely need to be updated. Also we need to implement corresponding UI changes, for example the Ansible Lightspeed view on the sidebar needs to change contents displayed depending on the current workspace folder that the current file opened in the editor.
I think we'd better handle this as a new feature rather than a bug. @ssbarnea what do you think?
Summary
I have a multi-root workspace (in Dev Spaces it is a default state), I'd like to automatically enable Ansible Lightspeed, for this I've added
"ansible.lightspeed.enabled": true
into .vscode/settings.json file. It means that this setting was applied on Workspace Folder level but it's not enough to enable Ansible Lightspeed:Would it be possible to check if ansible.lightspeed.enabled was set in Workspace Folder settings level to apply it?
Steps to reproduce on VS Code:
1/ Open any project and create .vscode/settings.json file with the content:
2/ Add another project to the workspace File -> Add Folder to Workspace
3/ Check that Ansible Lightspeed is not enabled
Extension version
v24.8.3
VS Code version
1.91.0
Ansible Version
OS / Environment
NAME="Red Hat Enterprise Linux"
VERSION="8.9 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.9"
ansible-lint 24.2.3
Relevant log output
No response
The text was updated successfully, but these errors were encountered: