@theia/plugin-ext 1.24.0 → 1.25.0-next.10
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/lib/common/plugin-api-rpc.d.ts +2 -1
- package/lib/common/plugin-api-rpc.d.ts.map +1 -1
- package/lib/common/plugin-api-rpc.js.map +1 -1
- package/lib/common/rpc-protocol.d.ts.map +1 -1
- package/lib/main/browser/custom-editors/custom-editor-widget.d.ts +4 -1
- package/lib/main/browser/custom-editors/custom-editor-widget.d.ts.map +1 -1
- package/lib/main/browser/custom-editors/custom-editor-widget.js +10 -1
- package/lib/main/browser/custom-editors/custom-editor-widget.js.map +1 -1
- package/lib/main/browser/documents-main.d.ts +3 -1
- package/lib/main/browser/documents-main.d.ts.map +1 -1
- package/lib/main/browser/documents-main.js +4 -3
- package/lib/main/browser/documents-main.js.map +1 -1
- package/lib/main/browser/editor/untitled-resource.d.ts +2 -28
- package/lib/main/browser/editor/untitled-resource.d.ts.map +1 -1
- package/lib/main/browser/editor/untitled-resource.js +5 -101
- package/lib/main/browser/editor/untitled-resource.js.map +1 -1
- package/lib/main/browser/main-context.d.ts.map +1 -1
- package/lib/main/browser/main-context.js +3 -1
- package/lib/main/browser/main-context.js.map +1 -1
- package/lib/main/browser/status-bar-message-registry-main.d.ts +2 -1
- package/lib/main/browser/status-bar-message-registry-main.d.ts.map +1 -1
- package/lib/main/browser/status-bar-message-registry-main.js +6 -1
- package/lib/main/browser/status-bar-message-registry-main.js.map +1 -1
- package/lib/main/browser/view/tree-view-widget.d.ts +2 -0
- package/lib/main/browser/view/tree-view-widget.d.ts.map +1 -1
- package/lib/main/browser/view/tree-view-widget.js +4 -0
- package/lib/main/browser/view/tree-view-widget.js.map +1 -1
- package/lib/plugin/node/debug/debug.d.ts.map +1 -1
- package/lib/plugin/node/debug/debug.js +1 -1
- package/lib/plugin/node/debug/debug.js.map +1 -1
- package/lib/plugin/quick-open.d.ts +3 -0
- package/lib/plugin/quick-open.d.ts.map +1 -1
- package/lib/plugin/quick-open.js +8 -0
- package/lib/plugin/quick-open.js.map +1 -1
- package/lib/plugin/status-bar/status-bar-item.d.ts +3 -0
- package/lib/plugin/status-bar/status-bar-item.d.ts.map +1 -1
- package/lib/plugin/status-bar/status-bar-item.js +8 -1
- package/lib/plugin/status-bar/status-bar-item.js.map +1 -1
- package/lib/plugin/tree/tree-views.d.ts.map +1 -1
- package/lib/plugin/tree/tree-views.js +2 -1
- package/lib/plugin/tree/tree-views.js.map +1 -1
- package/lib/plugin/types-impl.d.ts +5 -0
- package/lib/plugin/types-impl.d.ts.map +1 -1
- package/lib/plugin/types-impl.js +5 -0
- package/lib/plugin/types-impl.js.map +1 -1
- package/package.json +23 -23
- package/src/common/plugin-api-rpc.ts +3 -0
- package/src/common/rpc-protocol.ts +1 -1
- package/src/main/browser/custom-editors/custom-editor-widget.ts +13 -2
- package/src/main/browser/documents-main.ts +4 -2
- package/src/main/browser/editor/untitled-resource.ts +2 -99
- package/src/main/browser/main-context.ts +3 -1
- package/src/main/browser/status-bar-message-registry-main.ts +7 -0
- package/src/main/browser/view/tree-view-widget.tsx +11 -0
- package/src/plugin/node/debug/debug.ts +1 -1
- package/src/plugin/quick-open.ts +10 -0
- package/src/plugin/status-bar/status-bar-item.ts +11 -0
- package/src/plugin/tree/tree-views.ts +2 -1
- package/src/plugin/types-impl.ts +11 -0
package/src/plugin/quick-open.ts
CHANGED
|
@@ -580,6 +580,7 @@ export class QuickPickExt<T extends theia.QuickPickItem> extends QuickInputExt i
|
|
|
580
580
|
private _matchOnDescription = true;
|
|
581
581
|
private _matchOnDetail = true;
|
|
582
582
|
private _sortByLabel = true;
|
|
583
|
+
private _keepScrollPosition = false;
|
|
583
584
|
private _activeItems: T[] = [];
|
|
584
585
|
private _selectedItems: T[] = [];
|
|
585
586
|
private readonly _onDidChangeActiveEmitter = new Emitter<T[]>();
|
|
@@ -666,6 +667,15 @@ export class QuickPickExt<T extends theia.QuickPickItem> extends QuickInputExt i
|
|
|
666
667
|
this.update({ sortByLabel });
|
|
667
668
|
}
|
|
668
669
|
|
|
670
|
+
get keepScrollPosition(): boolean {
|
|
671
|
+
return this._keepScrollPosition;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
set keepScrollPosition(keepScrollPosition: boolean) {
|
|
675
|
+
this._keepScrollPosition = keepScrollPosition;
|
|
676
|
+
this.update({ keepScrollPosition });
|
|
677
|
+
}
|
|
678
|
+
|
|
669
679
|
get activeItems(): T[] {
|
|
670
680
|
return this._activeItems;
|
|
671
681
|
}
|
|
@@ -29,6 +29,7 @@ export class StatusBarItemImpl implements theia.StatusBarItem {
|
|
|
29
29
|
private _tooltip: string;
|
|
30
30
|
private _color: string | ThemeColor;
|
|
31
31
|
private _command: string | theia.Command;
|
|
32
|
+
private _accessibilityInformation: theia.AccessibilityInformation;
|
|
32
33
|
|
|
33
34
|
private _isVisible: boolean;
|
|
34
35
|
private _timeoutHandle: NodeJS.Timer | undefined;
|
|
@@ -73,6 +74,10 @@ export class StatusBarItemImpl implements theia.StatusBarItem {
|
|
|
73
74
|
return this._command;
|
|
74
75
|
}
|
|
75
76
|
|
|
77
|
+
public get accessibilityInformation(): theia.AccessibilityInformation {
|
|
78
|
+
return this._accessibilityInformation;
|
|
79
|
+
}
|
|
80
|
+
|
|
76
81
|
public set text(text: string) {
|
|
77
82
|
this._text = text;
|
|
78
83
|
this.update();
|
|
@@ -93,6 +98,11 @@ export class StatusBarItemImpl implements theia.StatusBarItem {
|
|
|
93
98
|
this.update();
|
|
94
99
|
}
|
|
95
100
|
|
|
101
|
+
public set accessibilityInformation(information: theia.AccessibilityInformation) {
|
|
102
|
+
this._accessibilityInformation = information;
|
|
103
|
+
this.update();
|
|
104
|
+
}
|
|
105
|
+
|
|
96
106
|
public show(): void {
|
|
97
107
|
this._isVisible = true;
|
|
98
108
|
this.update();
|
|
@@ -126,6 +136,7 @@ export class StatusBarItemImpl implements theia.StatusBarItem {
|
|
|
126
136
|
typeof this.color === 'string' ? this.color : this.color && this.color.id,
|
|
127
137
|
this.tooltip,
|
|
128
138
|
commandId,
|
|
139
|
+
this.accessibilityInformation,
|
|
129
140
|
args);
|
|
130
141
|
}, 0);
|
|
131
142
|
}
|
|
@@ -386,7 +386,8 @@ class TreeViewExtImpl<T> implements Disposable {
|
|
|
386
386
|
tooltip: treeItem.tooltip,
|
|
387
387
|
collapsibleState: treeItem.collapsibleState,
|
|
388
388
|
contextValue: treeItem.contextValue,
|
|
389
|
-
command: this.commandsConverter.toSafeCommand(treeItem.command, toDisposeElement)
|
|
389
|
+
command: this.commandsConverter.toSafeCommand(treeItem.command, toDisposeElement),
|
|
390
|
+
accessibilityInformation: treeItem.accessibilityInformation
|
|
390
391
|
} as TreeViewItem;
|
|
391
392
|
|
|
392
393
|
return treeViewItem;
|
package/src/plugin/types-impl.ts
CHANGED
|
@@ -151,6 +151,11 @@ export class Disposable {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
+
export interface AccessibilityInformation {
|
|
155
|
+
label: string;
|
|
156
|
+
role?: string;
|
|
157
|
+
}
|
|
158
|
+
|
|
154
159
|
export enum StatusBarAlignment {
|
|
155
160
|
Left = 1,
|
|
156
161
|
Right = 2
|
|
@@ -679,6 +684,12 @@ export class SnippetString {
|
|
|
679
684
|
return this;
|
|
680
685
|
}
|
|
681
686
|
|
|
687
|
+
appendChoice(values: string[], number: number = this._tabstop++): SnippetString {
|
|
688
|
+
const value = values.map(s => s.replace(/\$|}|\\|,/g, '\\$&')).join(',');
|
|
689
|
+
this.value += `\$\{${number}|${value}|\}`;
|
|
690
|
+
return this;
|
|
691
|
+
}
|
|
692
|
+
|
|
682
693
|
appendVariable(name: string, defaultValue?: string | ((snippet: SnippetString) => void)): SnippetString {
|
|
683
694
|
|
|
684
695
|
if (typeof defaultValue === 'function') {
|