Repository navigation
Supported LSP editor options and default settings
Nick Kwiatkowski edited this page Nov 25, 2026
·
1 revision
This page lists every LSP method clif answers, which setting (if any) governs it, and its default. Use it to see what an editor will get from clif out of the box, and what to switch on or off.
| Method | Supported | Notes |
|---|---|---|
textDocument/didOpen |
✔ | |
textDocument/didChange |
✔ | Full-document sync |
textDocument/didClose |
✔ | Clears the file's CFLint/parse diagnostics and open-scope known issues |
textDocument/didSave |
✔ | Runs CFLint when linting.enabled
|
| Method | Feature | Governed by | Default |
|---|---|---|---|
textDocument/completion, completionItem/resolve
|
Tags, attributes, functions, members, components, scopes, doc-block @ tags |
completions.* |
On |
textDocument/hover |
Built-in docs for tags/functions; signatures and doc comments for your functions; bundled framework docs | — | On |
textDocument/signatureHelp |
Parameter hints for built-ins and your functions | — | On |
textDocument/definition |
Components, functions, includes, custom tags, variables, routes |
features.variableDefinitions, features.routes
|
On |
textDocument/typeDefinition |
Variable/argument/property → its component; call → return type | features.typeDefinition |
On |
textDocument/implementation |
Implementations / overrides of a method or interface | — | On |
textDocument/references |
Find All References | references.enabled |
Off |
textDocument/documentHighlight |
Other occurrences of the identifier under the cursor | features.documentHighlight |
On |
textDocument/documentSymbol |
Outline: component, properties, functions | — | On |
workspace/symbol, workspaceSymbol/resolve
|
Go to symbol in workspace | — | On |
textDocument/prepareTypeHierarchy, typeHierarchy/supertypes, typeHierarchy/subtypes
|
extends chain and subclasses |
— | On |
textDocument/prepareCallHierarchy, callHierarchy/incomingCalls, callHierarchy/outgoingCalls
|
Callers and callees | — | On |
textDocument/documentLink, documentLink/resolve
|
Links on includes, component paths, custom tags, routes |
features.routes (route links) |
On |
textDocument/foldingRange |
Structural folding | features.folding |
On |
textDocument/selectionRange |
Expand / shrink selection | — | On |
textDocument/linkedEditingRange |
Edit an opening and closing tag name together | — | On |
textDocument/semanticTokens/full, /range
|
Semantic highlighting | features.semanticTokens |
On (see note) |
textDocument/inlayHint |
Parameter names, component path |
features.inlayHints, inlayHintsParameterNames, inlayHintsComponentPath
|
On (see note) |
textDocument/prepareRename, textDocument/rename
|
Rename local variables; cross-file methods/properties |
features.rename, features.renameCrossFile
|
On (see note) |
textDocument/documentColor, textDocument/colorPresentation
|
Colour swatches and pickers for CSS colour values | — | On |
textDocument/codeAction |
Explain call, find references, export deps/reports, scan workspace, quick fixes | — | On |
textDocument/codeLens, codeLens/resolve
|
Usage counts above functions | — | On |
| Method | Governed by | Default |
|---|---|---|
textDocument/formatting |
formatting.enabled |
Off |
textDocument/rangeFormatting |
formatting.enabled and features.rangeFormatting
|
Off (follows formatting.enabled) |
textDocument/onTypeFormatting |
formatting.enabled |
Off |
The formatter's own options are in Formatter Options.
Published with textDocument/publishDiagnostics, merged per file from every source:
| Source label | What | Governed by | Default |
|---|---|---|---|
clif |
Unresolved calls (missing method, missing component, untyped receiver) | — | On |
clif |
Tag structure: unclosed-tag, unmatched-close, misplaced-tag, missing-attribute, duplicate-attribute, duplicate-argument
|
features.structureDiagnostics |
On (see note) |
| (parse) | Parse errors from the workspace scan | — | On |
cflint |
CFLint findings on save |
linting.enabled, linting.minSeverity
|
Off |
known issue / cflint
|
Entries from knownIssues files and generated reports |
knownIssues |
On when the files exist |
| Method | Supported | Governed by |
|---|---|---|
workspace/didChangeWorkspaceFolders |
✔ | — |
workspace/didChangeWatchedFiles |
✔ (dynamic registration when the client supports it) | features.watchedFiles |
workspace/executeCommand |
✔ | See LSP Commands |
workspace/applyEdit (server → client) |
Used by clif.format, rename, quick fixes |
— |
window/showMessage (server → client) |
Used by every long-running command | — |
window/showDocument (server → client) |
clif.openActiveApplicationFile, clif.generateCodeMap with open
|
— |
| Client capability | Effect |
|---|---|
workspace.didChangeWatchedFiles.dynamicRegistration |
clif registers file watchers itself |
textDocument.completion.completionItem resolve support / completionList.itemDefaults
|
Completion details are deferred to completionItem/resolve; snippet defaults are used when supported |
workspace.symbol.resolveSupport |
Workspace symbol locations are deferred to workspaceSymbol/resolve
|
workspace.workspaceEdit.documentChanges |
Edits are sent as documentChanges rather than changes
|
FormattingOptions.tabSize, insertSpaces, insertFinalNewline, trimFinalNewlines
|
Honoured by the formatter |
The effective configuration when neither .clif.json nor initializationOptions sets anything:
{
"formatting": { "enabled": false },
"linting": { "enabled": false },
"references": { "enabled": false },
"completions": { "tagSnippets": true, "functionSnippets": true, "globalFunctionResolution": true },
"docBlock": { "gap": true, "extra": [] },
"features": {
"documentHighlight": true,
"folding": true,
"watchedFiles": true,
"rangeFormatting": true,
"typeDefinition": true,
"variableDefinitions": true,
"routes": true,
"outputContextInterpolation": true,
"structureDiagnostics": true,
"inlayHints": true,
"inlayHintsParameterNames": true,
"inlayHintsComponentPath": true,
"rename": true,
"renameCrossFile": true,
"semanticTokens": true
},
"knownIssues": { "scope": "open", "severity": "warning" },
"check": { "checks": ["lint"] },
"debug": false
}Note on feature defaults. Every
featuresswitch defaults totrue. If your editor draws its own tag errors, inlay hints or semantic highlighting, set the matching switch tofalseto avoid seeing things twice.
For an editor that already provides its own highlighting, hints and tag checking:
{
"features": {
"semanticTokens": false,
"inlayHints": false,
"structureDiagnostics": false,
"renameCrossFile": false
}
}{
"formatting": { "enabled": true },
"linting": { "enabled": true, "minSeverity": "WARNING" },
"references": { "enabled": true }
}