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 ¶
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).
const ID = "emetos.testext"
ID is the id of the extension.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.