-
Notifications
You must be signed in to change notification settings - Fork 82
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 support for variable and different file path notations in xml.FileAssociations #307
Comments
@fbricon what do you think about this idea? |
@marsfan do you see other variable substitution than |
I wonder if this variable substitution must be done on vscode-xml side or LemMinx (LS server) side. If we could manage workspaceFolder on LemMinx side it should be nice because all LSP client could benefit with that. Need to investigate if we can retrieve workspaceFolder on LemMinx server side. It will depends too if we need to manage another variable substitution which could be specific to vscode. I'm waiting for answer of @marsfan |
Here is the list of all the supported variables.
|
These appear to be the most helpful variables to me:
Another thing that I want to implement in this PR is using
|
Adds three variables that can be used in `xml.fileAssociations`: * ${workspaceFolder} * ${fileDirname} * ${fileBasenameNoExtension} These variables can be used for both the `pattern` and the `systemId`. Closes redhat-developer#307 Signed-off-by: David Thompson <[email protected]>
Adds three variables that can be used in `xml.fileAssociations`: * ${workspaceFolder} * ${fileDirname} * ${fileBasenameNoExtension} These variables can be used for both the `pattern` and the `systemId`. Closes redhat-developer#307 Signed-off-by: David Thompson <[email protected]>
Adds three variables that can be used in `xml.fileAssociations`: * ${workspaceFolder} * ${fileDirname} * ${fileBasenameNoExtension} These variables can be used for both the `pattern` and the `systemId`. Closes redhat-developer#307 Signed-off-by: David Thompson <[email protected]>
Adds three variables that can be used in `xml.fileAssociations`: * ${workspaceFolder} * ${fileDirname} * ${fileBasenameNoExtension} These variables can be used for both the `pattern` and the `systemId`. Closes redhat-developer#307 Signed-off-by: David Thompson <[email protected]>
Adds three variables that can be used in `xml.fileAssociations`: * ${workspaceFolder} * ${fileDirname} * ${fileBasenameNoExtension} These variables can be used for both the `pattern` and the `systemId`. Closes redhat-developer#307 Signed-off-by: David Thompson <[email protected]>
Adds three variables that can be used in `xml.fileAssociations`: * ${workspaceFolder} * ${fileDirname} * ${fileBasenameNoExtension} These variables can be used for both the `pattern` and the `systemId`. Closes redhat-developer#307 Signed-off-by: David Thompson <[email protected]>
Adds three variables that can be used in `xml.fileAssociations`: * ${workspaceFolder} * ${fileDirname} * ${fileBasenameNoExtension} These variables can be used for both the `pattern` and the `systemId`. Closes redhat-developer#307 Signed-off-by: David Thompson <[email protected]>
Adds three variables that can be used in `xml.fileAssociations`: * ${workspaceFolder} * ${fileDirname} * ${fileBasenameNoExtension} These variables can be used for both the `pattern` and the `systemId`. Closes redhat-developer#307 Signed-off-by: David Thompson <[email protected]>
Adds three variables that can be used in `xml.fileAssociations`: * ${workspaceFolder} * ${fileDirname} * ${fileBasenameNoExtension} These variables can be used for both the `pattern` and the `systemId`. Closes redhat-developer#307 Signed-off-by: David Thompson <[email protected]>
Adds three variables that can be used in `xml.fileAssociations`: * ${workspaceFolder} * ${fileDirname} * ${fileBasenameNoExtension} These variables can be used for both the `pattern` and the `systemId`. Closes redhat-developer#307 Signed-off-by: David Thompson <[email protected]>
Adds three variables that can be used in `xml.fileAssociations`: * ${workspaceFolder} * ${fileDirname} * ${fileBasenameNoExtension} These variables can be used for both the `pattern` and the `systemId`. Closes redhat-developer#307 Signed-off-by: David Thompson <[email protected]>
Adds three variables that can be used in `xml.fileAssociations`: * ${workspaceFolder} * ${fileDirname} * ${fileBasenameNoExtension} These variables can be used for both the `pattern` and the `systemId`. Closes #307 Signed-off-by: David Thompson <[email protected]>
It appears that environment variables are not supported in this, is that correct? My team has a bunch of different repos and each team have different environments (win, mac, linux) in which they work. So we all environment variables defined to point to the same repo, which is set individually. I was hoping to use the same variable we all use to reference in this so that every person doesn't have to manually change the
I can open a new ticket for this request, if this is feasible. |
A number of things that are normally supported by configuration options in VS code JSON files do not seem to work when configuring xml.FileAssociations.
Namely:
As an example, I have a test repository that has a schema in one folder, and an XML file in another folder.
Project Structure Photograph
This works as expected, XML files in the testFile folder are checked against the schema document.
But if I instead refer to the files using the
${workspaceFolder}
variable built into VS code like this:The files are not being checked against the schema, and I do not get any warnings.
Furthermore, if I use windows style file path notation
I once again find that my XML files are not being checked against the schema file.
Both of these should be supported when configuring settings for the extension. Variable substitution is important for configuring paths in global settings that will change for each workspace, and Windows file path support is necessary to maintain consistency with other options that might be set in the same file.
The text was updated successfully, but these errors were encountered: