Is it possible to have more specific rules for associating files with a LS? #412
ahmedneilhussain
started this conversation in
General
Replies: 1 comment 1 reply
-
Yes, that works; instead of adding filters in LSP4E enablement, it's often more efficient to properly detect and filter content-types. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For our LS, as well as the core source files, we have a project-level
.toml
file, analogous toCargo.toml
in Rust orpom.xml
in a Maven java project, controlling project-wide language and codegen settings and so on.We'd like to add code completion support for these
.toml
files to our LS, but we don't want arbitrary.toml
files binding to our LS, particularlyCargo.toml
ones!I have found https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Freference%2Fref-content-type.htm that content types can key off file names/patterns rather than general file types, but I can't find any examples.
Anyone tried this with LSP4e - does it Just Work?
Beta Was this translation helpful? Give feedback.
All reactions