Repository navigation
fix: run the npm install of the Vue.js language server in its node_modules folder - #2084
Merged
lagergren merged 1 commit intoNov 22, 2026
Conversation
…dules folder npm installs into the first folder, from its working directory up, that has a package.json or a node_modules folder. The Vue.js installer ran npm in ~/.lsp4ij/lsp/vue-js-language-server, so a package.json in the home directory took the install, and the command that the installer gave the language server didn't find it. Like the other npm installers, it now runs in the node_modules folder of the server, whose parent npm then installs into: the same folder as before.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2084 +/- ##
==========================================
+ Coverage 50.24% 50.26% +0.02%
==========================================
Files 816 816
Lines 33699 33699
Branches 5261 5261
==========================================
+ Hits 16931 16939 +8
+ Misses 14127 14114 -13
- Partials 2641 2646 +5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Collaborator
Author
|
@coderabbitai review |
Action not completed
|
Collaborator
Author
|
@coderabbitai review |
Action performed
|
lagergren
added a commit
that referenced
this pull request
Nov 25, 2026
…0.1 (#2255) ## What An audit of the docs against main found wrong information, missing docs for features merged since 0.30.1, broken links and small mistakes. This PR fixes the text. The outdated screenshots are retaken in separate PRs. ## Change ### DAP guides - **DAPSupport.md:** - The `Cancel` request is supported, with `supportsCancelRequest` (#2122). It was marked ❌. - `Terminate Thread` is also in the Frames view. - The Output line links the user guide. - **DAP user guide:** - New section, "Console output": ANSI colours, indented groups, hidden `telemetry` output, and the source link or "Jump to Value Source" after an output. - Jump to Source on a lazy variable whose value has no declaration opens the lazy variable's own declaration. - The Frames view also says "the thread has exited". - CodeLLDB maps Rust files only. - **DAP developer guide:** - The `DAPClient` requests `stepBack`, `reverseContinue`, `locations`, `setExpression` and `terminateThreads`. - The rule that a request naming a frame id or a `variablesReference` goes through `sendInExecutionEpoch`. - The `DAP.Threads.Popup` group with `ThreadsPanel.SELECTED_THREADS`. - Keeping `supportsANSIStyling` when overriding `createInitializeRequestArguments`. - **Debug adapter pages:** - "Log pattern before proceeding", not "processing", in go-delve, julia and vscode-js-debug. - ruby-rdbg: select Attach, since the dialog opens on Launch. - codelldb: the C++ TODO is replaced by how to map C/C++ files. ### Developer guides - **LSPApi.md, fixes:** - The formatting sample compiles: `isExistingFormatterOverrideable` is `public`. The javadoc sample of `LSPFormattingFeature` is fixed too. - The `get*Characters` and `get*Scope` methods return `String` and `FormattingScope`, not `boolean`. - The CodeLens sample compares the command's title, not the `Command`, and has its imports. - There is one Diagnostic section, with `getTooltip`; the duplicate section named `getToolTip`, which is never called. - The DocumentSymbol table: `getIcon` takes the `boolean`. - `isEnabled(VirtualFile)` is `false` until a server with an installer is installed. - `EditorBehaviorFeature` is named correctly, and the Breadcrumbs default is given. - Two stray `=======` merge markers are gone. - **LSPApi.md, additions:** - Sections for the call hierarchy, type hierarchy, on-type formatting and configuration features. - The missing methods of CodeAction, CodeLens, Completion, Progress, DocumentSymbol and References. - When Find Usages merges a language server's reference with a language plugin's. - **DeveloperGuide.md:** - A custom server API is exposed with `getServerInterface()`, not `createLanguageClient`. - The get-server sample had an inverted null check. The Lease sample checks for a null item, casts to the server API and joins the future. - The custom `WorkspaceFolderStrategy` sample implements `getWorkspaceFolders`, so it compiles. - All attributes of the `server` extension point are listed. - `OSProcessStreamConnectionProvider` isn't experimental, starts one process, and logs to the `Logs` tab. - A document matcher that throws counts as no match. - The missing workspace folders image is replaced by an existing screenshot. ### User guides - **UserGuide.md:** - A Getting started section. The empty LSP console's `Getting Started` link opens this page. - The console tree: state badges, the server and instance tooltips, and `[stdio]` or the socket. - Messages that LSP4J can't parse are shown in the traces. - The warning when IntelliJ 2026.3's own LSP client also serves a file. - Find Usages lists a declaration once, and lists once a reference that a language plugin also finds. - **LSPSupport.md:** - Snippet edits of `workspace/applyEdit`. - `workspace/executeCommand` traces name the command. - When Quick Documentation shows a late hover reply. - The completion prefix in a token that spans whitespace. - `callHierarchy/incomingCalls` and `callHierarchy/outgoingCalls`, not `textDocument/...`. - The `LSP Type Definition(s)` and `LSP Declaration(s)` menus. - A reversed link is fixed. - **README:** - "As notification" is the default error reporting. - "In log" writes a warning to `idea.log` and opens no dialog; the screenshot of that dialog is removed. - LSP4IJ instead of LSP4J. - The documentation list names the LSP API, the template page and the DAP pages. ### User-defined language servers and templates - **UserDefinedLanguageServerTemplate.md:** - The npm `exec` example matches the bundled TypeScript installer: it runs in `node_modules`, with a quoted command, and says why (#2084). - A downloaded file is named after the last segment of the URL's path, without its query or fragment. - The `template.json` example gives JavaScript its `*.js` pattern. - The rust-analyzer installer tab is a link, not an inline image. - **UserDefinedLanguageServer.md:** the template list uses the names that `Choose template...` shows (Camel, Dart, EO, Stylelint, Vue), and the Language ID sentence is finished. - **Server pages:** - Ada: the path includes the archive's `integration/` folder. - HTML: the template is development-only. - LemMinX: the installer runs at the first start, not when the server is created. ## Checks - **Samples:** the developer-guide samples, and an override of every method in the new API tables, compile in a throwaway test source. The samples as they are on main fail with 3 errors. - **Links:** all relative links and anchors of the changed pages resolve. - **Open PRs:** the doc changes of #2229, #2230 and #2233 still apply on top of this PR.
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.
Part of #1960.
What
npm installs into the first folder, from its working directory up, that has a
package.jsonor anode_modulesfolder. The Vue.js installer rannpm installin~/.lsp4ij/lsp/vue-js-language-server, where neither is before the first install. So apackage.jsonor anode_modulesfolder in the home directory, as a straynpm installthere leaves, took the install. The command that the installer then gave the language server,~/.lsp4ij/lsp/vue-js-language-server/node_modules/.bin/vue-language-server, didn't exist, and nor did the TypeScript that the template'sinitializationOptions.jsontakes from that folder.The other eight npm installers run in the
node_modulesfolder of their server, as~/.lsp4ij/lsp/typescript-language-server/node_modules. Its parent, the folder of the server, has thatnode_modulesfolder, so npm always installs there.The Vue.js installer now does the same. The packages land in the same folder as before,
~/.lsp4ij/lsp/vue-js-language-server/node_modules, so existing installs, the command that they got, and the TypeScript path ofinitializationOptions.jsonstay as they are.Test
npm prefix, which prints the folder that npm installs into, with apackage.jsonin a stand-in home directory:~/.lsp4ij/lsp/vue-js-language-server: the home directory;~/.lsp4ij/lsp/typescript-language-server/node_modules:~/.lsp4ij/lsp/typescript-language-server.BundledTemplateCommandsTest.anNpmInstallRunsInTheNodeModulesFolderOfItsServer(new) checks that everynpm installof a bundled installer runs in anode_modulesfolder. Without the change, it finds the Vue.js installer.