Skip to content
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

Allow use of ${workspaceFolder} in more commands #1299

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

garymm
Copy link
Contributor

@garymm garymm commented May 3, 2024

No description provided.

name === "ansible-lint"
? settings.validation.lint.path
: path.join(path.dirname(settings.ansible.path), name);
return replaceWorkspaceFolderInPath(pathFromSettings, context);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am sure the vscode api has generic support for replacing all variables in the settings, please use that instead of trying to do it DIY.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have been unable to find it.
This suggests it doesn't exist: microsoft/vscode#46471

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However if you can find it I'd be happy to use it!

@ssbarnea ssbarnea added the bug Something isn't working label Nov 7, 2024
@ssbarnea ssbarnea marked this pull request as draft November 7, 2024 15:47
@garymm garymm marked this pull request as ready for review November 7, 2024 17:19
@ssbarnea
Copy link
Member

ssbarnea commented Nov 7, 2024

@garymm Thanks for pointing to this upstream issue, see my comment from microsoft/vscode#46471 (comment) -- if nobody steps in to ensure that is maintained, we might want to add this as package under our extension and reuse the code from there. I do not fancy adding it as an npm dependency considering that the code was not touched in 4 years.

@garymm
Copy link
Contributor Author

garymm commented Nov 8, 2024

@ssbarnea If you want to do that instead feel free to close this PR and open an issue for that. I still think this PR is on net helpful but I don't maintain this code base so obviously up to you / other maintainers.

@audgirka audgirka marked this pull request as draft November 13, 2024 12:51
@audgirka
Copy link
Contributor

@garymm looks like library https://github.com/DominicVonk/vscode-variables has a new release and we can use it.

@garymm
Copy link
Contributor Author

garymm commented Nov 13, 2024

@audgirka that'd be great if you could do that. I'm personally unlikely to do that any time soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

4 participants