Skip to main content

Server Settings Reference

cachePriming.enable

SourcePawnLanguageServer.cachePriming.enable

Warm up caches on project load.

Default: true

cachePriming.numThreads

SourcePawnLanguageServer.cachePriming.numThreads

How many worker threads to handle priming caches. The default 0 means to pick automatically.

Default: 0

cachePriming.projectsThreshold

SourcePawnLanguageServer.cachePriming.projectsThreshold

Number of projects above which cachePriming will only be done for the current project. The more projects you have in one workspace, the more RAM cachePriming will consume. Lower this setting or disable cachePriming with SourcePawnLanguageServer.cachePriming.enable to lower the server's RAM usage. 0 for unlimited projects.

Default: 5

compiler.arguments

SourcePawnLanguageServer.compiler.arguments

Linter arguments that will be passed to spcomp. Note that the compilation target, include directories and output path are already handled by the server.

Default: []

compiler.onSave

SourcePawnLanguageServer.compiler.onSave

Compute spcomp diagnostics on save.

Default: true

compiler.path

SourcePawnLanguageServer.compiler.path

Path to the SourcePawn compiler (spcomp).

Default: null

eventsGameName

SourcePawnLanguageServer.eventsGameName

Name of the game we want the events for, as it appears on the Alliedmodders website. For example, "Counter-Strike: Global Offensive" or "Team Fortress 2".

Default: null

hover.actions.debug.enable

SourcePawnLanguageServer.hover.actions.debug.enable

Whether to show Debug action. Only applies when SourcePawnLanguageServer.hover.actions.enable is set.

Default: true

hover.actions.enable

SourcePawnLanguageServer.hover.actions.enable

Whether to show HoverActions in Sourcepawn files.

Default: true

hover.actions.gotoTypeDef.enable

SourcePawnLanguageServer.hover.actions.gotoTypeDef.enable

Whether to show Go to Type Definition action. Only applies when SourcePawnLanguageServer.hover.actions.enable is set.

Default: true

hover.actions.implementations.enable

SourcePawnLanguageServer.hover.actions.implementations.enable

Whether to show Implementations action. Only applies when SourcePawnLanguageServer.hover.actions.enable is set.

Default: true

hover.actions.references.enable

SourcePawnLanguageServer.hover.actions.references.enable

Whether to show References action. Only applies when SourcePawnLanguageServer.hover.actions.enable is set.

Default: false

hover.actions.run.enable

SourcePawnLanguageServer.hover.actions.run.enable

Whether to show Run action. Only applies when SourcePawnLanguageServer.hover.actions.enable is set.

Default: true

includeDirectories

SourcePawnLanguageServer.includeDirectories

Include directories paths for the compiler and the linter.

Default: []

linter.disable

SourcePawnLanguageServer.linter.disable

Disable the language server's syntax linter. This is independant from spcomp.

Default: false

numThreads

SourcePawnLanguageServer.numThreads

How many worker threads in the main loop. The default null means to pick automatically.

Default: null