tasks

package
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 22 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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

func New

func New() extension.Extension

New is the Factory of the extension.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL