@vscode/markdown-editor 0.0.2-50 → 0.0.2-51
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/dist/index.d.ts +29 -0
- package/dist/index.js +2599 -2489
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -868,6 +868,24 @@ export declare type EditCommand = (ctx: CursorCommandContext) => {
|
|
|
868
868
|
|
|
869
869
|
export declare type EditKeyboardAction = 'deleteLeft' | 'deleteRight' | 'deleteWordLeft' | 'deleteWordRight' | 'deleteLineLeft' | 'deleteLineRight';
|
|
870
870
|
|
|
871
|
+
declare interface EditorCommandDefinition {
|
|
872
|
+
readonly id: `markdown.editor.${string}`;
|
|
873
|
+
readonly title: string;
|
|
874
|
+
readonly action: EditorKeyboardAction;
|
|
875
|
+
readonly keybindings: readonly EditorCommandKeybinding[];
|
|
876
|
+
/**
|
|
877
|
+
* Local commands must execute synchronously in the webview instead of being
|
|
878
|
+
* forwarded through the VS Code keybinding service.
|
|
879
|
+
*/
|
|
880
|
+
readonly routing?: 'host' | 'local';
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
declare interface EditorCommandKeybinding {
|
|
884
|
+
readonly key: string;
|
|
885
|
+
readonly modifiers?: KeyboardModifiers;
|
|
886
|
+
readonly platforms?: readonly KeyboardPlatform[];
|
|
887
|
+
}
|
|
888
|
+
|
|
871
889
|
/**
|
|
872
890
|
* Translates raw browser input (mouse, keyboard, EditContext) into model
|
|
873
891
|
* mutations. Knows about DOM event types but never reads/writes the DOM
|
|
@@ -887,6 +905,7 @@ export declare class EditorController extends Disposable {
|
|
|
887
905
|
private _desiredColumn;
|
|
888
906
|
private readonly _keyboardPlatform;
|
|
889
907
|
private readonly _keyboardProfile;
|
|
908
|
+
private readonly _forwardedKeyboardProfile;
|
|
890
909
|
private readonly _historyStrategy;
|
|
891
910
|
private readonly _indentation;
|
|
892
911
|
private readonly _tabFocusStatus;
|
|
@@ -932,6 +951,7 @@ export declare class EditorController extends Disposable {
|
|
|
932
951
|
*/
|
|
933
952
|
private readonly _discardNativeSelection;
|
|
934
953
|
private readonly _handleKeyDown;
|
|
954
|
+
executeCommand(command: EditorCommandDefinition): void;
|
|
935
955
|
private _executeKeyboardAction;
|
|
936
956
|
/**
|
|
937
957
|
* Context-aware Enter: splits / line-breaks via {@link insertSmartEnter}, or
|
|
@@ -957,6 +977,11 @@ export declare interface EditorControllerOptions {
|
|
|
957
977
|
readonly historyStrategy?: IHistoryStrategy;
|
|
958
978
|
readonly keyboardPlatform?: KeyboardPlatform;
|
|
959
979
|
readonly keyboardProfile?: KeyboardProfile;
|
|
980
|
+
/**
|
|
981
|
+
* Bindings owned by the host. Matching events have their browser default
|
|
982
|
+
* suppressed but continue propagating so the host keybinding service sees them.
|
|
983
|
+
*/
|
|
984
|
+
readonly forwardedKeyboardProfile?: KeyboardProfile;
|
|
960
985
|
/** Tab-stop settings used outside semantic list indentation. */
|
|
961
986
|
readonly indentation?: IndentationConfig;
|
|
962
987
|
readonly find?: false;
|
|
@@ -3243,8 +3268,12 @@ declare interface VisualRunSource {
|
|
|
3243
3268
|
readonly coordinateSpace: EditorCoordinateSpace;
|
|
3244
3269
|
}
|
|
3245
3270
|
|
|
3271
|
+
export declare const vscodeHostKeyboardProfile: KeyboardProfile;
|
|
3272
|
+
|
|
3246
3273
|
export declare const vscodeKeyboardProfile: KeyboardProfile;
|
|
3247
3274
|
|
|
3275
|
+
export declare const vscodeLocalKeyboardProfile: KeyboardProfile;
|
|
3276
|
+
|
|
3248
3277
|
export declare class VscodeStackedCommentsView extends StackedCommentsPresenter {
|
|
3249
3278
|
protected createWidget(comment: Comment_2): StackWidget;
|
|
3250
3279
|
}
|