You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LemMinX is designed to provide completions for XML files using XML schemas, very much like LSP-json does.
It does however not have any idea of XSL syntax itself or possible interpolations added by templating syntaxes.
Hence it handles { | } in above snippet as plain text content. It doesn't know about it being a XPath interpolation which requires different treatment.
As a result, if auto-completions are triggerd in between those braces, LemMinX suggests xsl:foo tags supressing static XPath completions from XSL package.
The idea
Such language server limitiation could be worked around by suppressing LSP completions within certain scopes.
On discord it was suggested to specify e.g. "auto_complete_selector": "text.xml - text.xml meta.embedded - text.xml meta.interpolation", in "LSP-lemminx.sublime-settings".
It does not work. Still see completions from LemMinX.
Description of "auto_complete_selector" also notes to not intend to override global auto_complete_selector. Further more this selector does not suppress auto completion queries completely, but only automatic queries while typing.
Hence current meaning/implementation of that setting is insufficient to suppress completion queries for certain selectors.
Alternative
Feature request for LemMinX to ignore interpolations.
I don't know how feasable that is, as development of LemMinX has slowed down significantly, recently.
The text was updated successfully, but these errors were encountered:
Environment
The problem
LemMinX is designed to provide completions for XML files using XML schemas, very much like LSP-json does.
It does however not have any idea of XSL syntax itself or possible interpolations added by templating syntaxes.
Hence it handles
{ | }
in above snippet as plain text content. It doesn't know about it being a XPath interpolation which requires different treatment.As a result, if auto-completions are triggerd in between those braces, LemMinX suggests
xsl:foo
tags supressing static XPath completions from XSL package.The idea
Such language server limitiation could be worked around by suppressing LSP completions within certain scopes.
On discord it was suggested to specify e.g.
"auto_complete_selector": "text.xml - text.xml meta.embedded - text.xml meta.interpolation",
in "LSP-lemminx.sublime-settings".It does not work. Still see completions from LemMinX.
Description of
"auto_complete_selector"
also notes to not intend to override globalauto_complete_selector
. Further more this selector does not suppress auto completion queries completely, but only automatic queries while typing.Hence current meaning/implementation of that setting is insufficient to suppress completion queries for certain selectors.
Alternative
Feature request for LemMinX to ignore interpolations.
I don't know how feasable that is, as development of LemMinX has slowed down significantly, recently.
The text was updated successfully, but these errors were encountered: