@theia/plugin-ext 1.73.1 → 1.74.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/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 +14 -0
- package/lib/main/browser/custom-editors/custom-editor-widget.js.map +1 -1
- package/package.json +31 -31
- package/src/main/browser/custom-editors/custom-editor-widget.ts +15 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import URI from '@theia/core/lib/common/uri';
|
|
2
|
-
import { ApplicationShell, DelegatingSaveable, NavigatableWidget, Saveable, SaveableSource } from '@theia/core/lib/browser';
|
|
2
|
+
import { ApplicationShell, DelegatingSaveable, Message, NavigatableWidget, Saveable, SaveableSource } from '@theia/core/lib/browser';
|
|
3
3
|
import { SaveableService } from '@theia/core/lib/browser/saveable-service';
|
|
4
|
+
import { SelectionService } from '@theia/core/lib/common';
|
|
4
5
|
import { Reference } from '@theia/core/lib/common/reference';
|
|
5
6
|
import { WebviewWidget } from '../webview/webview';
|
|
6
7
|
import { CustomEditorModel } from './custom-editors-main';
|
|
@@ -16,7 +17,9 @@ export declare class CustomEditorWidget extends WebviewWidget implements CustomE
|
|
|
16
17
|
get saveable(): Saveable;
|
|
17
18
|
protected readonly shell: ApplicationShell;
|
|
18
19
|
protected readonly saveService: SaveableService;
|
|
20
|
+
protected readonly selectionService: SelectionService;
|
|
19
21
|
protected init(): void;
|
|
22
|
+
protected onActivateRequest(msg: Message): void;
|
|
20
23
|
updateID(): void;
|
|
21
24
|
undo(): void;
|
|
22
25
|
redo(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-editor-widget.d.ts","sourceRoot":"","sources":["../../../../src/main/browser/custom-editors/custom-editor-widget.ts"],"names":[],"mappings":"AAiBA,OAAO,GAAG,MAAM,4BAA4B,CA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,EAAE,gBAAgB,CAAC;IAG3C,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAC;IAGhD,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;cAGnC,IAAI,IAAI,IAAI;cAeZ,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAKxD,QAAQ,IAAI,IAAI;IAIhB,IAAI,IAAI,IAAI;IAIZ,IAAI,IAAI,IAAI;IAIZ,cAAc,IAAI,GAAG,GAAG,SAAS;IAIjC,eAAe,CAAC,WAAW,EAAE,GAAG,GAAG,GAAG,GAAG,SAAS;IAIzC,UAAU,IAAI,kBAAkB,CAAC,KAAK;IAOtC,YAAY,CAAC,QAAQ,EAAE,kBAAkB,CAAC,KAAK,GAAG,IAAI;IAM/D,MAAM,CAAC,OAAO,EAAE,CAAC,WAAW,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;IAI1D,OAAO,CAAC,YAAY,CAAC,CAA6B;IAElD,OAAO,CAAC,MAAM;CAKjB;AAED,yBAAiB,kBAAkB,CAAC;IAChC,UAAiB,KAAM,SAAQ,aAAa,CAAC,KAAK;QAC9C,WAAW,EAAE,MAAM,CAAA;KACtB;CACJ"}
|
|
@@ -22,6 +22,7 @@ const inversify_1 = require("@theia/core/shared/inversify");
|
|
|
22
22
|
const uri_1 = require("@theia/core/lib/common/uri");
|
|
23
23
|
const browser_1 = require("@theia/core/lib/browser");
|
|
24
24
|
const saveable_service_1 = require("@theia/core/lib/browser/saveable-service");
|
|
25
|
+
const common_1 = require("@theia/core/lib/common");
|
|
25
26
|
const webview_1 = require("../webview/webview");
|
|
26
27
|
let CustomEditorWidget = class CustomEditorWidget extends webview_1.WebviewWidget {
|
|
27
28
|
constructor() {
|
|
@@ -53,6 +54,15 @@ let CustomEditorWidget = class CustomEditorWidget extends webview_1.WebviewWidge
|
|
|
53
54
|
this.doMove(e.target.resource);
|
|
54
55
|
}
|
|
55
56
|
}));
|
|
57
|
+
this.toDispose.push(common_1.Disposable.create(() => {
|
|
58
|
+
if (this.selectionService.selection === this) {
|
|
59
|
+
this.selectionService.selection = undefined;
|
|
60
|
+
}
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
onActivateRequest(msg) {
|
|
64
|
+
super.onActivateRequest(msg);
|
|
65
|
+
this.selectionService.selection = this;
|
|
56
66
|
}
|
|
57
67
|
updateID() {
|
|
58
68
|
this.id = CustomEditorWidget_1.FACTORY_ID + `:${this.resource.toString()}:${this.identifier.id}`;
|
|
@@ -98,6 +108,10 @@ tslib_1.__decorate([
|
|
|
98
108
|
(0, inversify_1.inject)(saveable_service_1.SaveableService),
|
|
99
109
|
tslib_1.__metadata("design:type", saveable_service_1.SaveableService)
|
|
100
110
|
], CustomEditorWidget.prototype, "saveService", void 0);
|
|
111
|
+
tslib_1.__decorate([
|
|
112
|
+
(0, inversify_1.inject)(common_1.SelectionService),
|
|
113
|
+
tslib_1.__metadata("design:type", common_1.SelectionService)
|
|
114
|
+
], CustomEditorWidget.prototype, "selectionService", void 0);
|
|
101
115
|
tslib_1.__decorate([
|
|
102
116
|
(0, inversify_1.postConstruct)(),
|
|
103
117
|
tslib_1.__metadata("design:type", Function),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-editor-widget.js","sourceRoot":"","sources":["../../../../src/main/browser/custom-editors/custom-editor-widget.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,oEAAoE;AACpE,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;;AAEhF,4DAAiF;AACjF,oDAA6C;AAE7C,
|
|
1
|
+
{"version":3,"file":"custom-editor-widget.js","sourceRoot":"","sources":["../../../../src/main/browser/custom-editors/custom-editor-widget.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WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE;SACxC,CAAC;IACN,CAAC;IAEQ,YAAY,CAAC,QAAkC;QACpD,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,IAAI,aAAG,CAAC,WAAW,CAAC,CAAC;QACrC,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,OAA4C;QAC/C,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC;IAChC,CAAC;IAIO,MAAM,CAAC,MAAW;QACtB,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YACpB,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QAC9B,CAAC;IACL,CAAC;;AAhGQ,gDAAkB;AAwBR;IADlB,IAAA,kBAAM,EAAC,0BAAgB,CAAC;sCACC,0BAAgB;iDAAC;AAGxB;IADlB,IAAA,kBAAM,EAAC,kCAAe,CAAC;sCACQ,kCAAe;uDAAC;AAG7B;IADlB,IAAA,kBAAM,EAAC,yBAAgB,CAAC;sCACY,yBAAgB;4DAAC;AAGnC;IADlB,IAAA,yBAAa,GAAE;;;;8CAcf;6BA9CQ,kBAAkB;IAD9B,IAAA,sBAAU,GAAE;GACA,kBAAkB,CAiG9B"}
|
package/package.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin-ext",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.74.0-next.10+a3326786b",
|
|
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/ai-core": "1.
|
|
9
|
-
"@theia/ai-mcp": "1.
|
|
10
|
-
"@theia/bulk-edit": "1.
|
|
11
|
-
"@theia/callhierarchy": "1.
|
|
12
|
-
"@theia/console": "1.
|
|
13
|
-
"@theia/core": "1.
|
|
14
|
-
"@theia/debug": "1.
|
|
15
|
-
"@theia/editor": "1.
|
|
16
|
-
"@theia/editor-preview": "1.
|
|
17
|
-
"@theia/file-search": "1.
|
|
18
|
-
"@theia/filesystem": "1.
|
|
19
|
-
"@theia/markers": "1.
|
|
20
|
-
"@theia/messages": "1.
|
|
21
|
-
"@theia/monaco": "1.
|
|
8
|
+
"@theia/ai-core": "1.74.0-next.10+a3326786b",
|
|
9
|
+
"@theia/ai-mcp": "1.74.0-next.10+a3326786b",
|
|
10
|
+
"@theia/bulk-edit": "1.74.0-next.10+a3326786b",
|
|
11
|
+
"@theia/callhierarchy": "1.74.0-next.10+a3326786b",
|
|
12
|
+
"@theia/console": "1.74.0-next.10+a3326786b",
|
|
13
|
+
"@theia/core": "1.74.0-next.10+a3326786b",
|
|
14
|
+
"@theia/debug": "1.74.0-next.10+a3326786b",
|
|
15
|
+
"@theia/editor": "1.74.0-next.10+a3326786b",
|
|
16
|
+
"@theia/editor-preview": "1.74.0-next.10+a3326786b",
|
|
17
|
+
"@theia/file-search": "1.74.0-next.10+a3326786b",
|
|
18
|
+
"@theia/filesystem": "1.74.0-next.10+a3326786b",
|
|
19
|
+
"@theia/markers": "1.74.0-next.10+a3326786b",
|
|
20
|
+
"@theia/messages": "1.74.0-next.10+a3326786b",
|
|
21
|
+
"@theia/monaco": "1.74.0-next.10+a3326786b",
|
|
22
22
|
"@theia/monaco-editor-core": "1.108.201",
|
|
23
|
-
"@theia/navigator": "1.
|
|
24
|
-
"@theia/notebook": "1.
|
|
25
|
-
"@theia/output": "1.
|
|
26
|
-
"@theia/plugin": "1.
|
|
27
|
-
"@theia/preferences": "1.
|
|
28
|
-
"@theia/scm": "1.
|
|
29
|
-
"@theia/search-in-workspace": "1.
|
|
30
|
-
"@theia/task": "1.
|
|
31
|
-
"@theia/terminal": "1.
|
|
32
|
-
"@theia/test": "1.
|
|
33
|
-
"@theia/timeline": "1.
|
|
34
|
-
"@theia/typehierarchy": "1.
|
|
35
|
-
"@theia/variable-resolver": "1.
|
|
36
|
-
"@theia/workspace": "1.
|
|
23
|
+
"@theia/navigator": "1.74.0-next.10+a3326786b",
|
|
24
|
+
"@theia/notebook": "1.74.0-next.10+a3326786b",
|
|
25
|
+
"@theia/output": "1.74.0-next.10+a3326786b",
|
|
26
|
+
"@theia/plugin": "1.74.0-next.10+a3326786b",
|
|
27
|
+
"@theia/preferences": "1.74.0-next.10+a3326786b",
|
|
28
|
+
"@theia/scm": "1.74.0-next.10+a3326786b",
|
|
29
|
+
"@theia/search-in-workspace": "1.74.0-next.10+a3326786b",
|
|
30
|
+
"@theia/task": "1.74.0-next.10+a3326786b",
|
|
31
|
+
"@theia/terminal": "1.74.0-next.10+a3326786b",
|
|
32
|
+
"@theia/test": "1.74.0-next.10+a3326786b",
|
|
33
|
+
"@theia/timeline": "1.74.0-next.10+a3326786b",
|
|
34
|
+
"@theia/typehierarchy": "1.74.0-next.10+a3326786b",
|
|
35
|
+
"@theia/variable-resolver": "1.74.0-next.10+a3326786b",
|
|
36
|
+
"@theia/workspace": "1.74.0-next.10+a3326786b",
|
|
37
37
|
"@types/mime": "^2.0.3",
|
|
38
38
|
"@vscode/debugprotocol": "^1.68.0",
|
|
39
39
|
"@vscode/proxy-agent": "^0.13.2",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"watch": "theiaext watch"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@theia/ext-scripts": "1.73.
|
|
93
|
+
"@theia/ext-scripts": "1.73.0",
|
|
94
94
|
"@types/decompress": "^4.2.7",
|
|
95
95
|
"@types/escape-html": "^0.0.20",
|
|
96
96
|
"@types/lodash.clonedeep": "^4.5.9"
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"nyc": {
|
|
99
99
|
"extends": "../../configs/nyc.json"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "a3326786bf47e6e12172815eba3578ca4234bb23"
|
|
102
102
|
}
|
|
@@ -17,8 +17,9 @@
|
|
|
17
17
|
import { injectable, inject, postConstruct } from '@theia/core/shared/inversify';
|
|
18
18
|
import URI from '@theia/core/lib/common/uri';
|
|
19
19
|
import { FileOperation } from '@theia/filesystem/lib/common/files';
|
|
20
|
-
import { ApplicationShell, DelegatingSaveable, NavigatableWidget, Saveable, SaveableSource } from '@theia/core/lib/browser';
|
|
20
|
+
import { ApplicationShell, DelegatingSaveable, Message, NavigatableWidget, Saveable, SaveableSource } from '@theia/core/lib/browser';
|
|
21
21
|
import { SaveableService } from '@theia/core/lib/browser/saveable-service';
|
|
22
|
+
import { Disposable, SelectionService } from '@theia/core/lib/common';
|
|
22
23
|
import { Reference } from '@theia/core/lib/common/reference';
|
|
23
24
|
import { WebviewWidget } from '../webview/webview';
|
|
24
25
|
import { CustomEditorModel } from './custom-editors-main';
|
|
@@ -54,6 +55,9 @@ export class CustomEditorWidget extends WebviewWidget implements CustomEditorWid
|
|
|
54
55
|
@inject(SaveableService)
|
|
55
56
|
protected readonly saveService: SaveableService;
|
|
56
57
|
|
|
58
|
+
@inject(SelectionService)
|
|
59
|
+
protected readonly selectionService: SelectionService;
|
|
60
|
+
|
|
57
61
|
@postConstruct()
|
|
58
62
|
protected override init(): void {
|
|
59
63
|
super.init();
|
|
@@ -63,6 +67,16 @@ export class CustomEditorWidget extends WebviewWidget implements CustomEditorWid
|
|
|
63
67
|
this.doMove(e.target.resource);
|
|
64
68
|
}
|
|
65
69
|
}));
|
|
70
|
+
this.toDispose.push(Disposable.create(() => {
|
|
71
|
+
if (this.selectionService.selection === this) {
|
|
72
|
+
this.selectionService.selection = undefined;
|
|
73
|
+
}
|
|
74
|
+
}));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
protected override onActivateRequest(msg: Message): void {
|
|
78
|
+
super.onActivateRequest(msg);
|
|
79
|
+
this.selectionService.selection = this;
|
|
66
80
|
}
|
|
67
81
|
|
|
68
82
|
updateID(): void {
|