Skip to content

Workspace commands

Patrick Förster edited this page Jun 7, 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 newName 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.findEnvironments

Returns a list of all environments that contain the specified position.

Parameters

  • params: TextDocumentPositionParams (Required)

Returns

EnvironmentLocation[]

Types

interface EnvironmentLocation {
    name: {
        text: string;
        range: Range;
    };
    fullRange: Range;
}

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