Skip to content

docs: correct stale guides and describe the features merged since 0.30.1 - #2255

Merged
lagergren merged 15 commits into
redhat-developer:mainfrom
lagergren:docs/correct-stale-and-missing-guides
Nov 25, 2026
Merged

lagergren merged 15 commits into
redhat-developer:mainfrom
lagergren:docs/correct-stale-and-missing-guides

Conversation

@lagergren

Copy link
Copy Markdown
Collaborator

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:
  • 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 (fix: run the npm install of the Vue.js language server in its node_modules folder #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

- DAP support: the Cancel request is supported, with supportsCancelRequest, and Terminate Thread is also in the Frames view.
- DAP user guide: the Frames view also says when a thread has exited, and the CodeLLDB template maps Rust files only.
- Go Delve, Julia and VSCode JS Debug: the option is "Log pattern before proceeding".
- Ruby rdbg: the dialog opens on Launch, since the template also has a launch configuration, so select Attach.
- CodeLLDB: the C++ section, a TODO, says how to map C and C++ files.
The samples compile again, and the API tables match the code.

LSPApi.md:
- Formatting: isExistingFormatterOverrideable is public, also in the javadoc sample of LSPFormattingFeature, and
  the get*Characters and get*Scope methods return a String and a FormattingScope.
- CodeLens: the sample compares the title of the command, and imports CodeLens and Command.
- Diagnostic: one section, with getTooltip, instead of two.
- DocumentSymbol: getIcon takes the boolean, and the table lists every method.
- LSPClientFeatures#isEnabled(VirtualFile) is false until a server with an installer is installed.
- The editor behavior feature is EditorBehaviorFeature, and Breadcrumbs gives its isEnabled default.
- New sections for the call hierarchy, type hierarchy, on-type formatting and configuration features, and the
  missing methods of CodeAction, CodeLens, Completion, Progress and References.
- Two stray merge-conflict markers are gone.

DeveloperGuide.md:
- A custom server API is exposed with getServerInterface(), not createLanguageClient.
- The samples which get a language server check the null item, and cast to the server API.
- The custom WorkspaceFolderStrategy implements getWorkspaceFolders.
- The server extension point lists all its attributes.
- OSProcessStreamConnectionProvider isn't experimental, starts one process, and logs to the Logs tab.
- A document matcher which throws counts as no match.
- README: the default error reporting is "As notification", and "In log" writes a warning to idea.log and opens no
  IDE error dialog, so the screenshot of that dialog is gone.
- Templates: the npm example installs in the node_modules folder of the server, with a quoted command, as the
  bundled TypeScript installer does, and says why; a downloaded file is named after the last segment of the path of
  its URL; the template.json example gives JavaScript its pattern.
- Ada: the server is under integration/ in the folder of the installation.
- HTML: the template is listed only in a development IDE.
- LemMinX: the installer runs at the first start of the language server, not when it is created.
- The list of templates gives the names that Choose template... shows, and the Language ID section ends its sentence.
…and the DAP console output

User guide:
- Getting started, the page that the empty LSP console links: how to add a language server.
- The LSP console: the state of each language server and instance in the tree, what their tooltips show, and the
  messages that LSP4J can't parse, which the traces now show.
- Files served twice: the warning when IntelliJ's own LSP client also serves a file of LSP4IJ, from 2026.3 on.
- Find Usages lists a declaration once, and a reference that both a language plugin and the language server find
  once, in the plugin's group; LSPApi.md says when the two merge.

LSP support:
- workspace/applyEdit applies snippet edits, and starts the first one as a live template.
- The traces of workspace/executeCommand name the command.
- When Quick Documentation shows a late hover reply.
- A completion item without a textEdit replaces the word before the caret in a token that spans whitespace.

DAP user guide:
- Console output: ANSI colours, indented groups, hidden telemetry, and the source link after an output.
- Jump to Source on a lazy variable opens the lazy variable's declaration when its value has none.
…hreads context menu

The DAP developer guide lists the public DAPClient methods added since 0.30.1: stepBack, reverseContinue,
locations, setExpression and terminateThreads. A request of a subclass which names a frame id or a
variablesReference must be sent with sendInExecutionEpoch, which sends it only while the stop that gave the
reference lasts. Plugins can add actions to the DAP.Threads.Popup group, which get the selected threads from
ThreadsPanel.SELECTED_THREADS, and an override of createInitializeRequestArguments must keep
supportsANSIStyling.
- The developer guide shows an existing screenshot of the Workspace Folders tab, instead of a missing image.
- LSP support: the link to the file name patterns of a user-defined language server has its syntax the right way
  round, the call hierarchy methods are callHierarchy/incomingCalls and callHierarchy/outgoingCalls, and the editor
  menus are LSP Type Definition(s) and LSP Declaration(s).
- Templates: the rust-analyzer installer tab is a link, not an image in the middle of a sentence.
- README: LSP4IJ instead of LSP4J, and the documentation list names the LSP API, the template, and the DAP pages.
@lagergren lagergren added this to the 0.30.2 milestone Nov 25, 2026
@lagergren lagergren added the documentation Improvements or additions to documentation label Nov 25, 2026
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry.

Next included review available in 42 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8a2be281-10ca-459a-aad2-24c8420da396
Commits

Reviewing files that changed from the base of the PR and between f756e75 and fa46f09.

Files ignored due to path filters: 6

  • docs/dap/images/go-delve/server_tab.png is excluded by !**/*.png
  • docs/dap/images/swift-lldb/server_tab.png is excluded by !**/*.png
  • docs/dap/images/vscode-js-debug/server_tab.png is excluded by !**/*.png
  • docs/images/troubleshooting/LanguageServerErrorInLog.png is excluded by !**/*.png
  • docs/images/user-defined-ls/harper-ls/new_language_server_dialog.png is excluded by !**/*.png
  • docs/images/user-defined-ls/harper-ls/new_language_server_dialog_ok.png is excluded by !**/*.png
Files selected for processing: 22

  • README.md
  • docs/DeveloperGuide.md
  • docs/LSPApi.md
  • docs/LSPSupport.md
  • docs/UserDefinedLanguageServer.md
  • docs/UserDefinedLanguageServerTemplate.md
  • docs/UserGuide.md
  • docs/WorkspaceFolders.md
  • docs/dap/DAPSupport.md
  • docs/dap/DeveloperGuide.md
  • docs/dap/UserGuide.md
  • docs/dap/user-defined-dap/codelldb.md
  • docs/dap/user-defined-dap/go-delve.md
  • docs/dap/user-defined-dap/julia.md
  • docs/dap/user-defined-dap/ruby-rdbg.md
  • docs/dap/user-defined-dap/vscode-js-debug.md
  • docs/user-defined-ls/ada_language_server.md
  • docs/user-defined-ls/rust-analyzer.md
  • docs/user-defined-ls/vscode-html-language-server.md
  • src/main/java/com/redhat/devtools/lsp4ij/client/features/LSPFormattingFeature.java
  • src/main/resources/templates/lsp/lemminx/README.md
  • src/main/resources/templates/lsp/rust-analyzer/README.md

@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.77%. Comparing base (f756e75) to head (fa46f09).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2255      +/-   ##
==========================================
+ Coverage   55.75%   55.77%   +0.01%     
==========================================
  Files         844      844              
  Lines       36108    36109       +1     
  Branches     5660     5661       +1     
==========================================
+ Hits        20132    20138       +6     
+ Misses      13069    13065       -4     
+ Partials     2907     2906       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Each Java sample of the developer guides, the LSP API and the DAP developer guide now compiles as a user copies it,
with the classes of the guide that it uses.

DeveloperGuide.md:
- The factory imports LanguageServer, which getServerInterface() returns, and MyCustomServerAPI imports List.
- The OSProcessStreamConnectionProvider and ProcessStreamConnectionProvider samples of MyLanguageServer take the
  project, as the factory creates them with new MyLanguageServer(project).
- The factory which registers the settings contributor imports LanguageServerSettingsContributor and Nullable.

LSPApi.md:
- The semantic tokens sample imports TextAttributesKey, Nullable and List.
- DartMessageProducer has no close() override: MessageProducer declares only listen.
- The global installer factory imports Nullable, and the per-project one returns the client features after
  setServerInstaller, which returns nothing.
…type, the attribute that the platform reads

FileTypeExtensionPoint, the bean of fileType.fileViewProviderFactory, reads the file type from filetype, so the
sample's fileType left the factory without a file type.
…LSP4IJ reads

UserDefinedLanguageServerTemplate.md:
- The GitHub asset of an Intel Mac is keyed x86_64, the name that LSP4IJ looks up there, as in the bundled
  clojure-lsp installer: amd64 matched no Mac, so the download had no asset.
- The configureServer tasks have no "update" key, which LSP4IJ doesn't read.

LSPSupport.md:
- The on-type formatting configuration of the TypeScript template is the template's: its statement terminator is
  the top-level statementTerminatorCharacters, which formatOnStatementTerminatorCharacters defaults to.
…analyzer docs, and label two code blocks by their content
… diagnostic cache section to the diagnostic feature

The Workspace Folder Strategy section was 454 of the developer guide's 1573
lines. It is now docs/WorkspaceFolders.md; the developer guide keeps the
heading, with a summary and a link, so links to it still land.

"Observing diagnostic cache updates" describes
LSPDiagnosticFeature.diagnosticsUpdated, but was at the end of LSPApi.md,
under "Language server installer". It is now in the LSP Diagnostic Feature
section.
@lagergren
lagergren merged commit 9f34be2 into redhat-developer:main Nov 25, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant