Skip to content

Workspace commands

Patrick Förster edited this page May 20, 2023 · 6 revisions

The server provides the following commands through the workspace/executeCommand request:

texlab.cleanAuxiliary

Removes the auxiliary files produced by compiling the specified LaTeX document. At the moment, this command simply calls latexmk -c with the currently configured output directory.

Parameters

  • document: TextDocumentIdentifier (Required)

texlab.cleanArtifacts

Removes the auxiliary files and the artifacts produced by compiling the specified LaTeX document. At the moment, this command simply calls latexmk -C with the currently configured output directory.

Parameters

  • document: TextDocumentIdentifier (Required)

texlab.changeEnvironment

Upon receiving a new_name through the params, changes the name of the inner-most environment that contains the specified position.

Parameters

  • params: ChangeEnvironmentParams (Required)

Types

interface ChangeEnvironmentParams {
    textDocument: TextDocumentIdentifier;
    position: Position;
    newName: string;
}

texlab.showDependencyGraph

Returns a description of the dependency graph in DOT format.

Parameters

None

Returns

string (A description of the graph in DOT format)

texlab.cancelBuild

Cancels all currently active build requests (including builds triggered by texlab.build.onSave)

Parameters

None

Clone this wiki locally