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

Add variables for xml.fileAssociations #334

Conversation

datho7561
Copy link
Contributor

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]

@datho7561
Copy link
Contributor Author

datho7561 commented Oct 2, 2020

This change is client only: the variables only in vscode-xml, not any of the other clients that LemMinX supports.

Still need to:

  • Clean up the code
  • Add documentation in wiki we are moving the wiki contents to the docs folder
  • Add documentation to internal documents
  • Detect if there is no change in settings on tab change (i.e. there is no fileDirname or fileBasenameNoExtension references in the settings), and don't rebroadcast settings

@datho7561 datho7561 force-pushed the 307-variables-in-file-associations branch 3 times, most recently from 5cd3a2f to 7e10726 Compare October 5, 2020 15:01
@datho7561 datho7561 marked this pull request as ready for review October 5, 2020 15:09
@datho7561 datho7561 force-pushed the 307-variables-in-file-associations branch 2 times, most recently from 20eedb1 to cef9c32 Compare October 7, 2020 17:41
@datho7561 datho7561 requested a review from angelozerr October 7, 2020 17:42
@fbricon
Copy link
Collaborator

fbricon commented Oct 13, 2020

please rebase against master

@datho7561 datho7561 force-pushed the 307-variables-in-file-associations branch from cef9c32 to 517a905 Compare October 13, 2020 17:10
@datho7561
Copy link
Contributor Author

datho7561 commented Oct 13, 2020

I messed up the rebase, one second... Okay should be fixed

@datho7561 datho7561 force-pushed the 307-variables-in-file-associations branch 2 times, most recently from 517a905 to 9d63ce5 Compare October 13, 2020 17:20
src/extension.ts Outdated Show resolved Hide resolved
src/extension.ts Outdated Show resolved Hide resolved
src/extension.ts Outdated Show resolved Hide resolved
src/extension.ts Outdated Show resolved Hide resolved
@datho7561 datho7561 force-pushed the 307-variables-in-file-associations branch from 9d63ce5 to 64a4ec1 Compare October 27, 2020 20:00
src/extension.ts Outdated Show resolved Hide resolved
src/extension.ts Outdated Show resolved Hide resolved
@datho7561 datho7561 force-pushed the 307-variables-in-file-associations branch from 64a4ec1 to 1daefbf Compare October 28, 2020 17:08
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]>
@datho7561 datho7561 force-pushed the 307-variables-in-file-associations branch from 1daefbf to d9582c6 Compare October 28, 2020 18:06
Copy link
Contributor

@angelozerr angelozerr left a comment

Choose a reason for hiding this comment

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

Great job @datho7561 !

@angelozerr angelozerr merged commit 72cce61 into redhat-developer:master Oct 30, 2020
@datho7561 datho7561 deleted the 307-variables-in-file-associations branch January 18, 2021 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow support for variable and different file path notations in xml.FileAssociations
3 participants