Documentation
¶
Overview ¶
Package tasks is the extension that runs commands in the folder of the workspace from a view of the panel (SPEC §10.15 "As built (step 11.5)"). The commands are a setting (go test ./... by default). A run streams its output into the view and into an Output channel, puts the lines that name a place (file:line:col: message) into the Problems panel, and ends with the scope: the process and everything it started are stopped when the task is stopped, the extension is turned off or the window tab closes.
Index ¶
Constants ¶
const ( // ID is the id of the extension. ID = "emetos.tasks" // ViewID is the tab of the panel. ViewID = "emetos.tasks.panel" // RunCommand, StopCommand and ClearCommand are its commands. RunCommand = "emetos.tasks.run" StopCommand = "emetos.tasks.stop" ClearCommand = "emetos.tasks.clear" // CommandsSetting lists the command lines the view offers. CommandsSetting = "emetos.tasks.commands" // RunningKey is the context key that is true while a task runs. RunningKey = "emetos.tasks.running" // ChannelName is the Output channel of the extension, and ProblemsOwner the owner of its markers. ChannelName = "Tasks" ProblemsOwner = "task" )
The ids of the extension.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Problem ¶
type Problem struct {
// Path is the file as the line wrote it.
Path string
// Line and Column count from 1; Column is 1 when the line had none.
Line, Column int
// Message is the text after the place.
Message string
}
Problem is a line of the output of a task that names a place in a file: file:line:col: message, as compilers, vet and linters print it.