Repository navigation
LSP Initialization Options
Nick Kwiatkowski edited this page Nov 25, 2026
·
1 revision
clif is configured by one settings object with the same shape wherever it comes from:
| Source | Where | Typical use |
|---|---|---|
.clif.json |
A file in the project (nearest one above the working directory / workspace folder wins) | Settings the whole team shares; committed to the repository. Also enables daemon mode. |
initializationOptions |
Sent by the editor in the LSP initialize request |
Personal settings, or when you'd rather not add a file to the project |
The command-line tools read .clif.json too, so the editor and clif unresolved / clif lint /
clif graph see identical settings.
Legacy name:
.cfmleditor.jsonis still read. When a directory holds both,.clif.jsonwins.
.clif.json wins on every key it sets; editor settings fill in the rest.
| Situation | Result |
|---|---|
Key set in .clif.json
|
The file's value wins |
| Key set only in editor settings | The editor's value applies |
formatting, features, check set in both |
Merged key by key: the file wins on keys it names; the editor's other keys stand |
mappings, beanPaths and other maps |
Merged per key; the file wins on conflicts |
componentResolvers, propertyResolvers, customTagPaths
|
Both apply, the file's entries tried first |
Relative paths resolve against the directory of whichever source declared them: the config file's own directory, or the first workspace folder for editor settings.
| Caveat | Detail |
|---|---|
| Read once | Settings are read at initialize. Restart the server after changing them |
debug |
Read from .clif.json on disk only |
| Nested configs | A child config's frameworks adds to its parent's; its check block merges key by key |
| File trust (macOS/Linux) | A .clif.json writable by other users is skipped with a warning |
{
"workspaceName": "myproject",
"workspacePaths": [".", "../shared-lib"],
"mappings": { "models": "./src/models" },
"frameworks": ["coldbox", "testbox"],
"componentResolvers": [
{ "match": "getService(\"$1\")", "resolve": "packages.$1.service", "prefix": "getService" }
],
"formatting": { "enabled": true, "indentWidth": 4, "braceStyle": "same-line" },
"linting": { "enabled": true, "minSeverity": "WARNING" },
"references": { "enabled": true },
"features": { "semanticTokens": false }
}The same object as editor settings (Zed):
{
"lsp": {
"clif": {
"initialization_options": {
"formatting": { "enabled": true },
"linting": { "enabled": true }
}
}
}
}In VS Code and most other clients the key is initializationOptions.
| Key | Type | Default | Description | Page |
|---|---|---|---|---|
workspaceName |
string | — | Unique project name; derives the daemon socket path. Required in .clif.json for daemon sharing |
Other Options |
workspacePaths |
string[] | editor's folders | Folders treated as workspace roots, relative to the config | Other Options |
workspaceIndexGlobs |
string[] | all .cfc
|
Globs filtering which .cfc files are indexed |
Other Options |
mappings |
object | {} |
Dot-path root → directory | Other Options |
expressionMappings |
object | {} |
Runtime expression → literal substitutions inside component paths | Other Options |
startupFiles |
string[] | [] |
Templates that set up shared-scope variables | Other Options |
customTagPaths |
array | [] |
Custom tag directories and tag-library prefixes | Other Options |
componentResolvers |
array | [] |
Patterns resolving factory calls to components | Other Options |
propertyResolvers |
array | [] |
Property attribute → component rules | Other Options |
servicePropertyResolvers |
object | {} |
@serviceproperty annotation kinds → dot-path templates |
Other Options |
beanPaths |
object | {} |
DI bean roots | Other Options |
javaStubsPath |
string | — | Dot-path prefix of Java stub CFCs | Other Options |
frameworks |
string[] | [] |
Framework presets | Support for Frameworks |
routes |
object | — | Framework routing convention | Other Options |
codemap |
object | — | Entry/utility globs for code maps | Creating Code Maps |
callerInferenceLimits |
object | unlimited | Bounds on batch caller inference | Unresolved calls |
formatting |
object | disabled | The formatter | Formatter Options |
linting |
object | disabled | CFLint diagnostics | Linter Options |
knownIssues |
object | — | Files of documented findings shown as diagnostics | Linter Options |
completions |
object | all on | Snippet and global-function completion switches | Other Options |
docBlock |
object | gap on | What /** expands to |
Other Options |
references |
object | disabled | textDocument/references |
Other Options |
features |
object | all on | Per-capability switches | Other Options |
check |
object | ["lint"] |
What clif check runs |
Performing automated checks |
debug |
boolean | false |
Verbose logging and LSP traffic trace (read from disk only) | Integrating the LSP server |