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
Uh oh!
There was an error while loading. Please reload this page.
-
For our LS, as well as the core source files, we have a project-level
.tomlfile, analogous toCargo.tomlin Rust orpom.xmlin a Maven java project, controlling project-wide language and codegen settings and so on.We'd like to add code completion support for these
.tomlfiles to our LS, but we don't want arbitrary.tomlfiles binding to our LS, particularlyCargo.tomlones!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