forked from Silverquark/dance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
54 lines (47 loc) · 1.25 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import * as vscode from "vscode";
export * from "./clipboard";
export * from "./context";
export * from "./edit";
export * from "./edit/linewise";
export * from "./errors";
export * from "./functional";
export * from "./history";
export * from "./keys";
export * from "./menu";
export * from "./modes";
export * from "./prompt";
export * from "./run";
export * from "./search";
export * from "./search/lines";
export * from "./search/move";
export * from "./search/move-to";
export * from "./search/pairs";
export * from "./search/word";
export * from "./types";
/**
* Operations on lines in `vscode`.
*/
export * as Lines from "./lines";
export { firstVisibleLine, middleVisibleLine, lastVisibleLine } from "./lines";
/**
* Operations on ranges of text objects.
*/
export * as Objects from "./search/objects";
/**
* Operations on `vscode.Position`s.
*/
export * as Positions from "./positions";
/**
* Operations on `vscode.Selection`s.
*/
export * as Selections from "./selections";
/**
* Operations on `Register`s.
*/
export * as Registers from "./registers";
/**
* Returns the module exported by the extension with the given identifier.
*/
export function extension<T>(extensionId: string) {
return vscode.extensions.getExtension<T>(extensionId)?.exports;
}