Suppress duplicate features when a V language server (LSP4IJ) is active#81
Open
quaesitor-scientiam wants to merge 2 commits intovlang:mainfrom
Open
Suppress duplicate features when a V language server (LSP4IJ) is active#81quaesitor-scientiam wants to merge 2 commits intovlang:mainfrom
quaesitor-scientiam wants to merge 2 commits intovlang:mainfrom
Conversation
Adds optional LSP4IJ integration that detects when a V language server is configured via LSP4IJ and suppresses native plugin features that would otherwise appear twice: - Inlay hints (type hints, chain method hints, parameter name hints) - Semantic highlighting (VlangAnnotator) - Diagnostics (VlangCheckerAnnotator) - Code completion (opt-in, off by default) Layer 1: VlangLspBridge service with NoOpLspBridge (default) and Lsp4ijBridge (loaded via vlang-lsp4ij.xml optional dependency). Uses LanguageServersRegistry.isFileSupported() — synchronous, no I/O. Layer 2: Each suppressible feature checks the bridge before running. Also suppresses inlay hints that render as "unknown" (unresolvable types). Layer 3: VlangLspSettings application service + VlangLspSettingsConfigurable UI under Settings → Languages & Frameworks → V → Language Server (LSP4IJ). Defaults: suppress hints/highlighting/diagnostics on, completion off. Closes vlang#80 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ilation Required so Lsp4ijBridge.kt can reference LanguageServersRegistry at compile time. The plugin remains optional at runtime via the existing <depends optional> declaration in plugin.xml and vlang-lsp4ij.xml service override. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
VlangLspBridgeproject service withNoOpLspBridge(default) andLsp4ijBridge(loaded viavlang-lsp4ij.xmlwhen LSP4IJ is installed), usingLanguageServersRegistry.isFileSupported()— synchronous, no I/OVlangLspSettingsapplication service and settings UI under Settings → Languages & Frameworks → V → Language Server (LSP4IJ) with per-feature toggles (hints/highlighting/diagnostics on by default, completion off)"unknown"(unresolvable types in composite types likemap[string]unknown)Test plan
map[string]unknown) no longer show an inlay hintCloses #80
🤖 Generated with Claude Code