Closed JLLMNCHR closed 1 year ago
Sorry, with this kind of "advanced inspection" I have realized that the root directory in my Windows is interpreted as 'c', not 'C'.
So the proper line is:
"when": "resourceDirname == c:\\CODIGO\\VSCODE_PROJECTS\\TIREA\\SFES\\SFEAAPP\\sfeaapp"
To find all possible context keys:
This multi-command extension does not resolve when
context.
when clause context
in keybindings.json is core function in vscode.
Please refer the document of vscode and open an issue in vscode github if you have a question about the function. https://code.visualstudio.com/api/references/when-clause-contexts
This example is the base of something more complex that I need to implement.
But for that, I need to understand exactly how "when" based on "resourceDirname" works.
I am probably wrong, but it seems to me that "when" based on "resourceDirname" is not working as it should with this extension.
The thing is, I want the execution to fire and print " ** IT WORKS! **" in the terminal when I save the 'Test.txt' file (located at 'C:/VSCODE_PROJECTS/SFES/sfeaapp').
When I use "resourceFilename" it works correctly, but with "resourceDirname" I can't get it to work.
Anny help will be appreciated.