testext

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 8 Imported by: 0 modules, 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 testext holds the extensions that test the contract of package extension, and small examples of ones that use every part of the API. The first (New) uses the API of step 11.1: a command, a setting, a keybinding, a menu item and a status item. The second (NewTabs, step 17e.1) uses the tabs: an editor tab kind of which several are open at once, an editor title action, a window tab kind that keeps its state, and the events of other window tabs. They are not compiled into Emetos (extensions.All does not list them): they live under internal so that only the tests of the extensions package can use them.

Index

Constants

View Source
const (
	// TabsID is the id of the extension.
	TabsID = "emetos.testtabs"
	// PageKindID is the editor tab kind, NewPageCommand the command that opens a page (the editor title action runs it) and
	// PanelKindID the window tab kind.
	PageKindID     = "emetos.testtabs.page"
	NewPageCommand = "testtabs.newPage"
	PanelKindID    = "emetos.testtabs.panel"
)

The ids of the second test extension, which exercises the tabs of the contract (step 17e.1): an editor tab kind of which several are open at once, an editor title action that opens one in the group of its tab strip, a window tab kind that keeps its state, and the events of other window tabs. Notes and Scratchpad did this before they were removed (SPEC §10.26).

View Source
const ID = "emetos.testext"

ID is the id of the extension.

Variables

This section is empty.

Functions

func New

func New() extension.Extension

New is the Factory of the extension. Each call makes an extension of its own, as the contract asks.

func NewTabs

func NewTabs() extension.Extension

NewTabs is the Factory of the extension. Each call makes an extension of its own, as the contract asks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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