Repository navigation
feat: User defined launch config lsp server - #48
Merged
Merged
Conversation
angelozerr
force-pushed
the
launchconfig
branch
27 times, most recently
from
December 22, 2023 15:22
29d2ceb to
4e874c8
Compare
angelozerr
force-pushed
the
launchconfig
branch
2 times, most recently
from
December 31, 2023 16:30
e255dd1 to
d635df3
Compare
angelozerr
force-pushed
the
launchconfig
branch
8 times, most recently
from
January 11, 2024 14:29
b8de52d to
5043576
Compare
fbricon
reviewed
Jan 11, 2024
fbricon
reviewed
Jan 11, 2024
fbricon
reviewed
Jan 11, 2024
fbricon
reviewed
Jan 11, 2024
fbricon
reviewed
Jan 11, 2024
| .collect(Collectors.toList()) | ||
| .stream().sorted() | ||
| .collect(Collectors.toList()); | ||
| //val configuredFileTypes = models.tableModel.items.map { it.fileTypeName }.toSet() |
Contributor
Author
There was a problem hiding this comment.
I deleted it, but we need to remove the file types which are already used to avoid filling multiple mappings with the same file type.
fbricon
reviewed
Jan 11, 2024
fbricon
reviewed
Jan 11, 2024
fbricon
requested changes
Jan 11, 2024
| return Arrays.asList(addAction, removeAction); | ||
| } | ||
|
|
||
| private static boolean isLaunchingLanguageServerDefinition(MyNode node) { |
Contributor
There was a problem hiding this comment.
isUserDefinedLanguageServerDefinition
angelozerr
force-pushed
the
launchconfig
branch
from
January 11, 2024 15:05
5043576 to
2f4f0d2
Compare
angelozerr
marked this pull request as ready for review
January 11, 2024 15:05
angelozerr
force-pushed
the
launchconfig
branch
6 times, most recently
from
January 12, 2024 09:06
ff53c1b to
86ff49f
Compare
fbricon
requested changes
Jan 12, 2024
| { | ||
| "name": "CSS Language Server", | ||
| "instructions": [ | ||
| "To consume CSS language server you need to:", |
Contributor
There was a problem hiding this comment.
You can use Visual Studio Code's CSS language server by following these instructions:
| " <li><a href=\"https://nodejs.org/en/download\">download and install nodejs</a></li>", | ||
| " <li><a href=\"https://code.visualstudio.com/download\">download and install vscode</a>.</li>", | ||
| " <li>Once vscode is installed, it will store the CSS language server in <b>${BASE_DIR}/resources/app/extensions/css-language-features/server/dist/node/cssServerMain.js</b></li>", | ||
| " LSP4IJ tries to generate the proper <b>cssServerMain.js</b> file path according to your OS, but you will have to perhaps adjust it.", |
Contributor
There was a problem hiding this comment.
but you may have to adjust it.
| "instructions": [ | ||
| "To consume CSS language server you need to:", | ||
| "<ul>", | ||
| " <li><a href=\"https://nodejs.org/en/download\">download and install nodejs</a></li>", |
| "To consume CSS language server you need to:", | ||
| "<ul>", | ||
| " <li><a href=\"https://nodejs.org/en/download\">download and install nodejs</a></li>", | ||
| " <li><a href=\"https://code.visualstudio.com/download\">download and install vscode</a>.</li>", |
| "<ul>", | ||
| " <li><a href=\"https://nodejs.org/en/download\">download and install nodejs</a></li>", | ||
| " <li><a href=\"https://code.visualstudio.com/download\">download and install vscode</a>.</li>", | ||
| " <li>Once vscode is installed, it will store the CSS language server in <b>${BASE_DIR}/resources/app/extensions/css-language-features/server/dist/node/cssServerMain.js</b></li>", |
| "To consume HTML language server you need to:", | ||
| "<ul>", | ||
| " <li><a href=\"https://nodejs.org/en/download\">download and install nodejs</a></li>", | ||
| " <li><a href=\"https://code.visualstudio.com/download\">download and install vscode</a>.</li>", |
| "<ul>", | ||
| " <li><a href=\"https://nodejs.org/en/download\">download and install nodejs</a></li>", | ||
| " <li><a href=\"https://code.visualstudio.com/download\">download and install vscode</a>.</li>", | ||
| " <li>Once vscode is installed, it will store the CSS language server in <b>${BASE_DIR}/resources/app/extensions/html-language-features/server/dist/node/htmlServerMain.js</b></li>", |
| "<ul>", | ||
| " <li><a href=\"https://nodejs.org/en/download\">download and install nodejs</a></li>", | ||
| " <li><a href=\"https://code.visualstudio.com/download\">download and install vscode</a>.</li>", | ||
| " <li>Once vscode is installed, it will store the CSS language server in <b>${BASE_DIR}/resources/app/extensions/html-language-features/server/dist/node/htmlServerMain.js</b></li>", |
| " <li><a href=\"https://nodejs.org/en/download\">download and install nodejs</a></li>", | ||
| " <li><a href=\"https://code.visualstudio.com/download\">download and install vscode</a>.</li>", | ||
| " <li>Once vscode is installed, it will store the CSS language server in <b>${BASE_DIR}/resources/app/extensions/html-language-features/server/dist/node/htmlServerMain.js</b></li>", | ||
| " LSP4IJ tries to generate the proper <b>htmlServerMain.js</b> file path according to your OS, but you will have to perhaps adjust it.", |
Contributor
There was a problem hiding this comment.
but you may have to adjust it.
Comment on lines
+55
to
+82
| { | ||
| "name": "XML Language Server", | ||
| "instructions": [ | ||
| "To consume <a href=\"https://github.com/eclipse/lemminx\">XML language server</a> you need to:", | ||
| "<ul>", | ||
| " <li><a href=\"https://download.eclipse.org/justj/?file=lemminx/releases\">download org.eclipse.lemminx-uber.jar JAR</a></li>", | ||
| " <li>Once <b>org.eclipse.lemminx-uber.jar</b> is downloaded you will need to adjust ${BASE_DIR} with your base dir", | ||
| " where <b>org.eclipse.lemminx-uber.jar</b> file is stored.", | ||
| " </li>", | ||
| "</ul>" | ||
| ], | ||
| "runtime": "java", | ||
| "programArgs": { | ||
| "default": "-classpath \"${BASE_DIR}/org.eclipse.lemminx-uber.jar\" org.eclipse.lemminx.XMLServerLauncher" | ||
| }, | ||
| "languageMappings": [ | ||
| { | ||
| "language": "XML" | ||
| }, | ||
| { | ||
| "language": "DTD" | ||
| }, | ||
| { | ||
| "language": "RELAX-NG" | ||
| } | ||
| ] | ||
| } | ||
| ] |
Signed-off-by: azerr <[email protected]>
Contributor
|
Great work @angelozerr! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: User defined launch config lsp server