Interface MonacoLspClientOptions

interface MonacoLspClientOptions {
    allowedLocalCommands?: readonly string[];
}

Properties

allowedLocalCommands?: readonly string[]

Local editor commands (in addition to a small set of safe defaults) that the language server may trigger, e.g. from completion items, code lenses, code actions or inlay hints.

Language servers are untrusted: only add commands that are safe to run with arbitrary arguments. Commands that the server advertises in executeCommandProvider are always sent back to the server via workspace/executeCommand and do not need to be listed here.