@theia/plugin-ext 1.29.0-next.39 → 1.29.0-next.42
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/main/browser/view/plugin-view-widget.d.ts +9 -8
- package/lib/main/browser/view/plugin-view-widget.d.ts.map +1 -1
- package/lib/main/browser/view/plugin-view-widget.js +7 -4
- package/lib/main/browser/view/plugin-view-widget.js.map +1 -1
- package/package.json +24 -24
- package/src/main/browser/view/plugin-view-widget.ts +14 -11
|
@@ -4,33 +4,34 @@ import { CommandRegistry } from '@theia/core/lib/common/command';
|
|
|
4
4
|
import { StatefulWidget } from '@theia/core/lib/browser/shell/shell-layout-restorer';
|
|
5
5
|
import { Message } from '@theia/core/shared/@phosphor/messaging';
|
|
6
6
|
import { DescriptionWidget } from '@theia/core/lib/browser/view-container';
|
|
7
|
-
import { DisposableCollection, Emitter } from '@theia/core/lib/common';
|
|
7
|
+
import { DisposableCollection, Emitter, Event } from '@theia/core/lib/common';
|
|
8
8
|
import { ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
9
9
|
export declare class PluginViewWidgetIdentifier {
|
|
10
10
|
id: string;
|
|
11
11
|
viewId: string;
|
|
12
12
|
}
|
|
13
13
|
export declare class PluginViewWidget extends Panel implements StatefulWidget, DescriptionWidget {
|
|
14
|
-
|
|
14
|
+
currentViewContainerId?: string;
|
|
15
|
+
protected _message?: string;
|
|
16
|
+
protected _description: string;
|
|
17
|
+
protected _suppressUpdateViewVisibility: boolean;
|
|
18
|
+
protected updatingViewVisibility: boolean;
|
|
19
|
+
protected onDidChangeDescriptionEmitter: Emitter<void>;
|
|
20
|
+
protected toDispose: DisposableCollection;
|
|
15
21
|
protected readonly menus: MenuModelRegistry;
|
|
16
22
|
protected readonly commands: CommandRegistry;
|
|
17
23
|
protected readonly contextKeyService: ContextKeyService;
|
|
18
24
|
readonly options: PluginViewWidgetIdentifier;
|
|
19
|
-
currentViewContainerId: string | undefined;
|
|
20
25
|
constructor();
|
|
21
|
-
onDidChangeDescription: Emitter<void>;
|
|
22
26
|
protected init(): void;
|
|
27
|
+
get onDidChangeDescription(): Event<void>;
|
|
23
28
|
protected onActivateRequest(msg: Message): void;
|
|
24
29
|
storeState(): PluginViewWidget.State;
|
|
25
30
|
restoreState(state: PluginViewWidget.State): void;
|
|
26
|
-
protected _suppressUpdateViewVisibility: boolean;
|
|
27
31
|
set suppressUpdateViewVisibility(suppressUpdateViewVisibility: boolean);
|
|
28
|
-
protected updatingViewVisibility: boolean;
|
|
29
32
|
updateViewVisibility(cb: () => void): void;
|
|
30
|
-
private _message;
|
|
31
33
|
get message(): string | undefined;
|
|
32
34
|
set message(message: string | undefined);
|
|
33
|
-
private _description;
|
|
34
35
|
get description(): string;
|
|
35
36
|
set description(description: string);
|
|
36
37
|
private updateWidgetMessage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-view-widget.d.ts","sourceRoot":"","sources":["../../../../src/main/browser/view/plugin-view-widget.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AAEjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin-view-widget.d.ts","sourceRoot":"","sources":["../../../../src/main/browser/view/plugin-view-widget.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE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AAK,GAAG,IAAI;IAUjD,IAAI,4BAA4B,CAAC,4BAA4B,EAAE,OAAO,EAErE;IAED,oBAAoB,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI;IAY1C,IAAI,OAAO,IAAI,MAAM,GAAG,SAAS,CAEhC;IAED,IAAI,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,EAGtC;IAED,IAAI,WAAW,IAAI,MAAM,CAExB;IAED,IAAI,WAAW,CAAC,WAAW,EAAE,MAAM,EAGlC;IAED,OAAO,CAAC,mBAAmB;IASlB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAK/B,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAKjD,OAAO,IAAI,IAAI;CAI3B;AACD,yBAAiB,gBAAgB,CAAC;IAC9B,UAAiB,KAAK;QAClB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QAC/B,4BAA4B,EAAE,OAAO,CAAC;QACtC,sBAAsB,EAAE,MAAM,GAAG,SAAS,CAAC;KAC9C;CACJ"}
|
|
@@ -41,11 +41,11 @@ exports.PluginViewWidgetIdentifier = PluginViewWidgetIdentifier;
|
|
|
41
41
|
let PluginViewWidget = class PluginViewWidget extends widgets_1.Panel {
|
|
42
42
|
constructor() {
|
|
43
43
|
super();
|
|
44
|
-
this.
|
|
45
|
-
this.onDidChangeDescription = new common_1.Emitter();
|
|
44
|
+
this._description = '';
|
|
46
45
|
this._suppressUpdateViewVisibility = false;
|
|
47
46
|
this.updatingViewVisibility = false;
|
|
48
|
-
this.
|
|
47
|
+
this.onDidChangeDescriptionEmitter = new common_1.Emitter();
|
|
48
|
+
this.toDispose = new common_1.DisposableCollection(this.onDidChangeDescriptionEmitter);
|
|
49
49
|
this.node.tabIndex = -1;
|
|
50
50
|
this.node.style.height = '100%';
|
|
51
51
|
}
|
|
@@ -55,6 +55,9 @@ let PluginViewWidget = class PluginViewWidget extends widgets_1.Panel {
|
|
|
55
55
|
localContext.setContext('view', this.options.viewId);
|
|
56
56
|
this.toDispose.push(localContext);
|
|
57
57
|
}
|
|
58
|
+
get onDidChangeDescription() {
|
|
59
|
+
return this.onDidChangeDescriptionEmitter.event;
|
|
60
|
+
}
|
|
58
61
|
onActivateRequest(msg) {
|
|
59
62
|
super.onActivateRequest(msg);
|
|
60
63
|
const widget = this.widgets[0];
|
|
@@ -111,7 +114,7 @@ let PluginViewWidget = class PluginViewWidget extends widgets_1.Panel {
|
|
|
111
114
|
}
|
|
112
115
|
set description(description) {
|
|
113
116
|
this._description = description;
|
|
114
|
-
this.
|
|
117
|
+
this.onDidChangeDescriptionEmitter.fire();
|
|
115
118
|
}
|
|
116
119
|
updateWidgetMessage() {
|
|
117
120
|
const widget = this.widgets[0];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-view-widget.js","sourceRoot":"","sources":["../../../../src/main/browser/view/plugin-view-widget.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,2EAA2E;AAC3E,gFAAgF;;;;;;;;;;;;AAEhF,4DAAiF;AACjF,kEAAqE;AACrE,sDAAgE;AAChE,4DAAiE;AAGjE,yDAAoD;AAEpD,
|
|
1
|
+
{"version":3,"file":"plugin-view-widget.js","sourceRoot":"","sources":["../../../../src/main/browser/view/plugin-view-widget.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,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AA,kBAAM,EAAC,0BAA0B,CAAC;8BACjB,0BAA0B;iDAAC;AAS7C;IADC,IAAA,yBAAa,GAAE;;;;4CAMf;AAnCQ,gBAAgB;IAD5B,IAAA,sBAAU,GAAE;;GACA,gBAAgB,CAiI5B;AAjIY,4CAAgB"}
|
package/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin-ext",
|
|
3
|
-
"version": "1.29.0-next.
|
|
3
|
+
"version": "1.29.0-next.42+f78988c8470",
|
|
4
4
|
"description": "Theia - Plugin Extension",
|
|
5
5
|
"main": "lib/common/index.js",
|
|
6
6
|
"typings": "lib/common/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@theia/bulk-edit": "1.29.0-next.
|
|
9
|
-
"@theia/callhierarchy": "1.29.0-next.
|
|
10
|
-
"@theia/console": "1.29.0-next.
|
|
11
|
-
"@theia/core": "1.29.0-next.
|
|
12
|
-
"@theia/debug": "1.29.0-next.
|
|
13
|
-
"@theia/editor": "1.29.0-next.
|
|
14
|
-
"@theia/file-search": "1.29.0-next.
|
|
15
|
-
"@theia/filesystem": "1.29.0-next.
|
|
16
|
-
"@theia/markers": "1.29.0-next.
|
|
17
|
-
"@theia/messages": "1.29.0-next.
|
|
18
|
-
"@theia/monaco": "1.29.0-next.
|
|
8
|
+
"@theia/bulk-edit": "1.29.0-next.42+f78988c8470",
|
|
9
|
+
"@theia/callhierarchy": "1.29.0-next.42+f78988c8470",
|
|
10
|
+
"@theia/console": "1.29.0-next.42+f78988c8470",
|
|
11
|
+
"@theia/core": "1.29.0-next.42+f78988c8470",
|
|
12
|
+
"@theia/debug": "1.29.0-next.42+f78988c8470",
|
|
13
|
+
"@theia/editor": "1.29.0-next.42+f78988c8470",
|
|
14
|
+
"@theia/file-search": "1.29.0-next.42+f78988c8470",
|
|
15
|
+
"@theia/filesystem": "1.29.0-next.42+f78988c8470",
|
|
16
|
+
"@theia/markers": "1.29.0-next.42+f78988c8470",
|
|
17
|
+
"@theia/messages": "1.29.0-next.42+f78988c8470",
|
|
18
|
+
"@theia/monaco": "1.29.0-next.42+f78988c8470",
|
|
19
19
|
"@theia/monaco-editor-core": "1.67.2",
|
|
20
|
-
"@theia/navigator": "1.29.0-next.
|
|
21
|
-
"@theia/output": "1.29.0-next.
|
|
22
|
-
"@theia/plugin": "1.29.0-next.
|
|
23
|
-
"@theia/preferences": "1.29.0-next.
|
|
24
|
-
"@theia/scm": "1.29.0-next.
|
|
25
|
-
"@theia/search-in-workspace": "1.29.0-next.
|
|
26
|
-
"@theia/task": "1.29.0-next.
|
|
27
|
-
"@theia/terminal": "1.29.0-next.
|
|
28
|
-
"@theia/timeline": "1.29.0-next.
|
|
29
|
-
"@theia/variable-resolver": "1.29.0-next.
|
|
30
|
-
"@theia/workspace": "1.29.0-next.
|
|
20
|
+
"@theia/navigator": "1.29.0-next.42+f78988c8470",
|
|
21
|
+
"@theia/output": "1.29.0-next.42+f78988c8470",
|
|
22
|
+
"@theia/plugin": "1.29.0-next.42+f78988c8470",
|
|
23
|
+
"@theia/preferences": "1.29.0-next.42+f78988c8470",
|
|
24
|
+
"@theia/scm": "1.29.0-next.42+f78988c8470",
|
|
25
|
+
"@theia/search-in-workspace": "1.29.0-next.42+f78988c8470",
|
|
26
|
+
"@theia/task": "1.29.0-next.42+f78988c8470",
|
|
27
|
+
"@theia/terminal": "1.29.0-next.42+f78988c8470",
|
|
28
|
+
"@theia/timeline": "1.29.0-next.42+f78988c8470",
|
|
29
|
+
"@theia/variable-resolver": "1.29.0-next.42+f78988c8470",
|
|
30
|
+
"@theia/workspace": "1.29.0-next.42+f78988c8470",
|
|
31
31
|
"@types/mime": "^2.0.1",
|
|
32
32
|
"decompress": "^4.2.1",
|
|
33
33
|
"escape-html": "^1.0.3",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"nyc": {
|
|
95
95
|
"extends": "../../configs/nyc.json"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "f78988c847037d7e8de5eb526d8d248c2bf61eb1"
|
|
98
98
|
}
|
|
@@ -22,7 +22,7 @@ import { StatefulWidget } from '@theia/core/lib/browser/shell/shell-layout-resto
|
|
|
22
22
|
import { Message } from '@theia/core/shared/@phosphor/messaging';
|
|
23
23
|
import { TreeViewWidget } from './tree-view-widget';
|
|
24
24
|
import { DescriptionWidget } from '@theia/core/lib/browser/view-container';
|
|
25
|
-
import { DisposableCollection, Emitter } from '@theia/core/lib/common';
|
|
25
|
+
import { DisposableCollection, Emitter, Event } from '@theia/core/lib/common';
|
|
26
26
|
import { ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
27
27
|
|
|
28
28
|
@injectable()
|
|
@@ -34,7 +34,14 @@ export class PluginViewWidgetIdentifier {
|
|
|
34
34
|
@injectable()
|
|
35
35
|
export class PluginViewWidget extends Panel implements StatefulWidget, DescriptionWidget {
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
currentViewContainerId?: string;
|
|
38
|
+
|
|
39
|
+
protected _message?: string;
|
|
40
|
+
protected _description: string = '';
|
|
41
|
+
protected _suppressUpdateViewVisibility = false;
|
|
42
|
+
protected updatingViewVisibility = false;
|
|
43
|
+
protected onDidChangeDescriptionEmitter = new Emitter<void>();
|
|
44
|
+
protected toDispose = new DisposableCollection(this.onDidChangeDescriptionEmitter);
|
|
38
45
|
|
|
39
46
|
@inject(MenuModelRegistry)
|
|
40
47
|
protected readonly menus: MenuModelRegistry;
|
|
@@ -48,16 +55,12 @@ export class PluginViewWidget extends Panel implements StatefulWidget, Descripti
|
|
|
48
55
|
@inject(PluginViewWidgetIdentifier)
|
|
49
56
|
readonly options: PluginViewWidgetIdentifier;
|
|
50
57
|
|
|
51
|
-
currentViewContainerId: string | undefined;
|
|
52
|
-
|
|
53
58
|
constructor() {
|
|
54
59
|
super();
|
|
55
60
|
this.node.tabIndex = -1;
|
|
56
61
|
this.node.style.height = '100%';
|
|
57
62
|
}
|
|
58
63
|
|
|
59
|
-
public onDidChangeDescription: Emitter<void> = new Emitter<void>();
|
|
60
|
-
|
|
61
64
|
@postConstruct()
|
|
62
65
|
protected init(): void {
|
|
63
66
|
this.id = this.options.id;
|
|
@@ -66,6 +69,10 @@ export class PluginViewWidget extends Panel implements StatefulWidget, Descripti
|
|
|
66
69
|
this.toDispose.push(localContext);
|
|
67
70
|
}
|
|
68
71
|
|
|
72
|
+
get onDidChangeDescription(): Event<void> {
|
|
73
|
+
return this.onDidChangeDescriptionEmitter.event;
|
|
74
|
+
}
|
|
75
|
+
|
|
69
76
|
protected override onActivateRequest(msg: Message): void {
|
|
70
77
|
super.onActivateRequest(msg);
|
|
71
78
|
const widget = this.widgets[0];
|
|
@@ -97,12 +104,10 @@ export class PluginViewWidget extends Panel implements StatefulWidget, Descripti
|
|
|
97
104
|
}
|
|
98
105
|
}
|
|
99
106
|
|
|
100
|
-
protected _suppressUpdateViewVisibility = false;
|
|
101
107
|
set suppressUpdateViewVisibility(suppressUpdateViewVisibility: boolean) {
|
|
102
108
|
this._suppressUpdateViewVisibility = !this.updatingViewVisibility && suppressUpdateViewVisibility;
|
|
103
109
|
}
|
|
104
110
|
|
|
105
|
-
protected updatingViewVisibility = false;
|
|
106
111
|
updateViewVisibility(cb: () => void): void {
|
|
107
112
|
if (this._suppressUpdateViewVisibility) {
|
|
108
113
|
return;
|
|
@@ -115,7 +120,6 @@ export class PluginViewWidget extends Panel implements StatefulWidget, Descripti
|
|
|
115
120
|
}
|
|
116
121
|
}
|
|
117
122
|
|
|
118
|
-
private _message: string | undefined;
|
|
119
123
|
get message(): string | undefined {
|
|
120
124
|
return this._message;
|
|
121
125
|
}
|
|
@@ -125,14 +129,13 @@ export class PluginViewWidget extends Panel implements StatefulWidget, Descripti
|
|
|
125
129
|
this.updateWidgetMessage();
|
|
126
130
|
}
|
|
127
131
|
|
|
128
|
-
private _description: string = '';
|
|
129
132
|
get description(): string {
|
|
130
133
|
return this._description;
|
|
131
134
|
}
|
|
132
135
|
|
|
133
136
|
set description(description: string) {
|
|
134
137
|
this._description = description;
|
|
135
|
-
this.
|
|
138
|
+
this.onDidChangeDescriptionEmitter.fire();
|
|
136
139
|
}
|
|
137
140
|
|
|
138
141
|
private updateWidgetMessage(): void {
|