deck-plugin-sdk 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +96 -77
- package/bin/deck-plugin.mjs +149 -116
- package/build-plugin.mjs +48 -26
- package/package.json +6 -1
- package/packages.mjs +107 -0
- package/shim/bridge.js +73 -90
- package/shim/event.js +6 -1
- package/shim/scope.js +6 -0
- package/shim/terminals.js +1 -0
- package/shim/ui.d.ts +1 -0
- package/shim/ui.js +7 -1
- package/template/AGENTS.md +77 -0
- package/template/CLAUDE.md +1 -0
- package/template/README.md +20 -17
- package/template/gitignore +4 -4
- package/template/plugin.json +9 -9
- package/template/src/assets.d.ts +16 -0
- package/template/src/plugin.tsx +65 -65
- package/types/components/ActivityBar.d.ts +3 -1
- package/types/components/ContextMenu.d.ts +3 -0
- package/types/components/TabStrip.d.ts +6 -1
- package/types/components/ui.d.ts +48 -1
- package/types/components/useResize.d.ts +8 -1
- package/types/core/bookmarks.d.ts +79 -0
- package/types/core/bridge.d.ts +294 -156
- package/types/core/browser.d.ts +189 -0
- package/types/core/browserurl.d.ts +64 -0
- package/types/core/editorsession.d.ts +55 -0
- package/types/core/editorsettings.d.ts +9 -0
- package/types/core/fileview.d.ts +35 -0
- package/types/core/notifications.d.ts +84 -0
- package/types/core/notifyapi.d.ts +39 -0
- package/types/core/terminals.d.ts +7 -0
- package/types/modules/editor/DiffPeek.d.ts +19 -0
- package/types/modules/editor/MonacoHosts.d.ts +19 -6
- package/types/modules/editor/detectlang.d.ts +3 -0
- package/types/modules/editor/editorstatus.d.ts +2 -0
- package/types/modules/editor/hunks.d.ts +54 -0
- package/types/modules/editor/models.d.ts +11 -0
- package/types/modules/editor/tree.d.ts +0 -6
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
// GENERATED by sdk/gen-types.mjs from Deck's source — do not edit.
|
|
2
2
|
import { monaco } from "../../core/monaco";
|
|
3
3
|
export declare const viewStates: Map<string, monaco.editor.ICodeEditorViewState | null>;
|
|
4
|
+
/**
|
|
5
|
+
* An untitled buffer (Ctrl+N): `untitled:Untitled-N`. It has no file behind it, so its model gets
|
|
6
|
+
* an untitled: URI rather than a file:// one, it is never shown to a language server (which would
|
|
7
|
+
* answer for a file that does not exist), and its language comes from its text.
|
|
8
|
+
*/
|
|
9
|
+
export declare const isUntitled: (path: string) => boolean;
|
|
4
10
|
export declare function fileUri(path: string): monaco.Uri;
|
|
11
|
+
/** Pick an untitled buffer's language by hand, or null to go back to detecting it. Fine to call
|
|
12
|
+
* before its model exists (a restored tab): the model is then created with it. */
|
|
13
|
+
export declare function setUntitledLanguage(path: string, id: string | null): void;
|
|
14
|
+
/** Take `path` for `owner`; false when another editor's buffer has it. */
|
|
15
|
+
export declare function claimUntitled(path: string, owner: string): boolean;
|
|
5
16
|
export declare function getFileModel(path: string, initial: string): monaco.editor.ITextModel;
|
|
6
17
|
export declare function setModelValue(path: string, value: string): void;
|
|
7
18
|
export declare function disposeModel(path: string | undefined): void;
|
|
@@ -48,12 +48,6 @@ export declare function sameRows(a: readonly {
|
|
|
48
48
|
export declare function buildChangeTree<T extends {
|
|
49
49
|
rel: string;
|
|
50
50
|
}>(rows: T[]): TreeNodeOf<T>[];
|
|
51
|
-
export interface DirtyRange {
|
|
52
|
-
start: number;
|
|
53
|
-
end: number;
|
|
54
|
-
type: "added" | "modified" | "deleted";
|
|
55
|
-
}
|
|
56
51
|
export declare function statusColor(letter: string): string;
|
|
57
52
|
/** Flatten a tree node to the file rows underneath it (a file node is just itself). */
|
|
58
53
|
export declare function collectFiles(node: ChangeTreeNode): GitStatusRow[];
|
|
59
|
-
export declare function parseDirty(diff: string): DirtyRange[];
|