Events dispatched by a LspTextEditor when it needs to perform a language-related action.

Static variables

@:value("applyWorkspaceEdit")staticfinalread onlyAPPLY_WORKSPACE_EDIT:EventType<LspTextEditorLanguageActionEvent<WorkspaceEdit>> = "applyWorkspaceEdit"

Dispatched when the text editor needs to apply a workspace edit, which may affect other files.

@:value("openLink")staticfinalread onlyOPEN_LINK:EventType<LspTextEditorLanguageActionEvent<Array<LocationLink>>> = "openLink"

Dispatched when the text editor needs to open a link, either to another file or to an external URL.

@:value("runCommand")staticfinalread onlyRUN_COMMAND:EventType<LspTextEditorLanguageActionEvent<Command>> = "runCommand"

Dispatched when the text editor needs to run a command.

Constructor

new(type:String, data:T)

Creates a new LspTextEditorLanguageActionEvent object.

Variables

data:T

The data associated with the event type.

Methods