We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Testing #164526
I have this under contributes in my extension's package.json:
contributes
"terminal": { "quickFixes": [ { "id": "test", "commandLineMatcher": "cd", "linkToOpen": "http://google.ca/", "outputMatcher": {"lineMatcher": ".*No such file or directory.*", "anchor": "bottom", "offset":0, "length":2} }, ] }
And running cd into an invalid directory isn't giving me the quick pick suggestion while the extension is active.
cd
Let me know if I executed this wrong! An example somewhere would also be super helpful! :D
The text was updated successfully, but these errors were encountered:
I think this is probably because you don't specify any regex groups within your outputMatcher lineMatcher
outputMatcher
lineMatcher
Sorry, something went wrong.
we require a group to be used within the linkToOpen or commandToRun
group
linkToOpen
commandToRun
here's an example
{ "id": "terminal-sample fix", "commandLineMatcher": "echo [^\\s]+", "outputMatcher": { "lineMatcher": "(?<input>[^\\s]+) (?<inputtwo>[^\\s]+)", "anchor": "bottom", "length": 1, "offset": 0 }, "linkToOpen": "https://google.com/${group:input}${group:inputtwo}" },
here's your example but using a group:
{ "id": "test", "commandLineMatcher": "cd [^\\s]+", "linkToOpen": "http://google.ca/${group:fakename}", "outputMatcher": {"lineMatcher": ".*no such file or directory: (?<fakename>[^\\s]+)", "anchor": "bottom", "offset":0, "length":1} }
Works well on Linux with the capturing groups, thanks for the help!
Tyriar
meganrogge
No branches or pull requests
Testing #164526
I have this under
contributes
in my extension's package.json:And running
![image](https://user-images.githubusercontent.com/31675041/197902204-a6f54923-766f-4e1e-8036-8f87928bf3f8.png)
cd
into an invalid directory isn't giving me the quick pick suggestion while the extension is active.Let me know if I executed this wrong! An example somewhere would also be super helpful! :D
The text was updated successfully, but these errors were encountered: