@opensumi/ide-opened-editor 2.27.3-rc-1708395495.0 → 2.27.3-rc-1710386185.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/lib/browser/index.d.ts.map +1 -1
- package/lib/browser/opened-editor-node.d.ts +2 -2
- package/lib/browser/opened-editor-node.d.ts.map +1 -1
- package/lib/browser/opened-editor-node.define.d.ts +1 -1
- package/lib/browser/opened-editor-node.define.d.ts.map +1 -1
- package/lib/browser/opened-editor-node.js +4 -2
- package/lib/browser/opened-editor-node.js.map +1 -1
- package/lib/browser/opened-editor.contribution.d.ts +3 -4
- package/lib/browser/opened-editor.contribution.d.ts.map +1 -1
- package/lib/browser/opened-editor.contribution.js +1 -2
- package/lib/browser/opened-editor.contribution.js.map +1 -1
- package/lib/browser/opened-editor.d.ts.map +1 -1
- package/lib/browser/services/opened-editor-event.service.d.ts +1 -1
- package/lib/browser/services/opened-editor-event.service.d.ts.map +1 -1
- package/lib/browser/services/opened-editor-model.d.ts +1 -1
- package/lib/browser/services/opened-editor-model.d.ts.map +1 -1
- package/lib/browser/services/opened-editor-model.service.d.ts +1 -1
- package/lib/browser/services/opened-editor-model.service.d.ts.map +1 -1
- package/lib/browser/services/opened-editor-tree.service.d.ts +2 -2
- package/lib/browser/services/opened-editor-tree.service.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/browser/index.ts +1 -1
- package/src/browser/opened-editor-node.define.ts +2 -2
- package/src/browser/opened-editor-node.tsx +16 -7
- package/src/browser/opened-editor.contribution.ts +7 -7
- package/src/browser/opened-editor.tsx +5 -5
- package/src/browser/services/opened-editor-decoration.service.ts +5 -5
- package/src/browser/services/opened-editor-event.service.ts +4 -4
- package/src/browser/services/opened-editor-model.service.ts +11 -11
- package/src/browser/services/opened-editor-model.ts +2 -2
- package/src/browser/services/opened-editor-tree.service.ts +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAO3D,qBACa,kBAAmB,SAAQ,aAAa;IACnD,SAAS,EAAE,QAAQ,EAAE,CAcnB;CACH"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ClasslistComposite, CompositeTreeNode, INodeRendererProps, TreeNode, TreeNodeType } from '@opensumi/ide-components';
|
|
3
|
+
import { CommandService, URI } from '@opensumi/ide-core-browser';
|
|
4
4
|
import { LabelService } from '@opensumi/ide-core-browser/lib/services';
|
|
5
5
|
import { OpenedEditorDecorationService } from './services/opened-editor-decoration.service';
|
|
6
6
|
export interface IEditorNodeProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opened-editor-node.d.ts","sourceRoot":"","sources":["../../src/browser/opened-editor-node.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,
|
|
1
|
+
{"version":3,"file":"opened-editor-node.d.ts","sourceRoot":"","sources":["../../src/browser/opened-editor-node.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAEL,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,QAAQ,EACR,YAAY,EACb,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,cAAc,EAEd,GAAG,EAIJ,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAKvE,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAE5F,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,GAAG,CAAC;IACV,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,6BAA6B,CAAC;IACjD,cAAc,EAAE,cAAc,CAAC;IAC/B,YAAY,EAAE,YAAY,CAAC;IAC3B,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,OAAO,EAAE,CAAC,EAAE,EAAE,KAAK,CAAC,UAAU,EAAE,IAAI,EAAE,QAAQ,GAAG,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IACjH,aAAa,EAAE,CACb,EAAE,EAAE,KAAK,CAAC,UAAU,EACpB,IAAI,EAAE,QAAQ,GAAG,iBAAiB,EAClC,IAAI,EAAE,YAAY,EAClB,SAAS,CAAC,EAAE,GAAG,KACZ,IAAI,CAAC;CACX;AAED,MAAM,MAAM,uBAAuB,GAAG,gBAAgB,GAAG,kBAAkB,CAAC;AAE5E,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAqM5D,CAAC;AAEF,eAAO,MAAM,8BAA8B,KAAK,CAAC;AACjD,eAAO,MAAM,yBAAyB,KAAK,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompositeTreeNode, TreeNode } from '@opensumi/ide-components';
|
|
2
2
|
import { URI } from '@opensumi/ide-core-browser';
|
|
3
3
|
import { IEditorGroup, IResource } from '@opensumi/ide-editor';
|
|
4
4
|
import { OpenedEditorService } from './services/opened-editor-tree.service';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opened-editor-node.define.d.ts","sourceRoot":"","sources":["../../src/browser/opened-editor-node.define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"opened-editor-node.define.d.ts","sourceRoot":"","sources":["../../src/browser/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e,GAAG,SAAS;IAKrC,IAAI,WAAW,WAEd;IAED,IAAI,GAAG,QAEN;CACF"}
|
|
@@ -11,6 +11,8 @@ const opened_editor_node_define_1 = require("./opened-editor-node.define");
|
|
|
11
11
|
const opened_editor_node_module_less_1 = tslib_1.__importDefault(require("./opened-editor-node.module.less"));
|
|
12
12
|
const EditorTreeNode = ({ item, defaultLeftPadding = 8, leftPadding = 8, onClick, onContextMenu, itemType, decorationService, labelService, commandService, decorations, }) => {
|
|
13
13
|
const decoration = opened_editor_node_define_1.EditorFileGroup.is(item) ? null : decorationService.getDecoration(item.uri, false);
|
|
14
|
+
const styles_opened_editor_node = (0, ide_core_browser_1.useDesignStyles)(opened_editor_node_module_less_1.default.opened_editor_node);
|
|
15
|
+
const styles_opened_editor_node_overflow_wrap = (0, ide_core_browser_1.useDesignStyles)(opened_editor_node_module_less_1.default.opened_editor_node_overflow_wrap);
|
|
14
16
|
const handleClick = (ev) => {
|
|
15
17
|
if (itemType === ide_components_1.TreeNodeType.TreeNode || itemType === ide_components_1.TreeNodeType.CompositeTreeNode) {
|
|
16
18
|
onClick(ev, item, itemType);
|
|
@@ -113,11 +115,11 @@ const EditorTreeNode = ({ item, defaultLeftPadding = 8, leftPadding = 8, onClick
|
|
|
113
115
|
}
|
|
114
116
|
};
|
|
115
117
|
const renderActionBar = () => react_1.default.createElement("div", { className: opened_editor_node_module_less_1.default.opened_editor_action_bar }, renderAction());
|
|
116
|
-
return (react_1.default.createElement("div", { key: item.id, onClick: handleClick, onContextMenu: handleContextMenu, title: getItemTooltip(), className: (0, classnames_1.default)(
|
|
118
|
+
return (react_1.default.createElement("div", { key: item.id, onClick: handleClick, onContextMenu: handleContextMenu, title: getItemTooltip(), className: (0, classnames_1.default)(styles_opened_editor_node, decorations ? decorations.classlist : null, opened_editor_node_define_1.EditorFile.is(item) && item.dirty && opened_editor_node_module_less_1.default.dirty), style: editorNodeStyle, "data-id": item.id },
|
|
117
119
|
renderActionBar(),
|
|
118
120
|
react_1.default.createElement("div", { className: (0, classnames_1.default)(opened_editor_node_module_less_1.default.opened_editor_node_content) },
|
|
119
121
|
renderIcon(item),
|
|
120
|
-
react_1.default.createElement("div", { className:
|
|
122
|
+
react_1.default.createElement("div", { className: styles_opened_editor_node_overflow_wrap },
|
|
121
123
|
renderDisplayName(item),
|
|
122
124
|
renderDescription(item)),
|
|
123
125
|
renderStatusTail())));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opened-editor-node.js","sourceRoot":"","sources":["../../src/browser/opened-editor-node.tsx"],"names":[],"mappings":";;;;AAAA,oEAA6B;AAC7B,0DAA0B;AAE1B,6DAOkC;AAClC,
|
|
1
|
+
{"version":3,"file":"opened-editor-node.js","sourceRoot":"","sources":["../../src/browser/opened-editor-node.tsx"],"names":[],"mappings":";;;;AAAA,oEAA6B;AAC7B,0DAA0B;AAE1B,6DAOkC;AAClC,iEAOoC;AAEpC,uDAA8D;AAE9D,2EAA0E;AAC1E,8GAAsD;AAsB/C,MAAM,cAAc,GAAsC,CAAC,EAChE,IAAI,EACJ,kBAAkB,GAAG,CAAC,EACtB,WAAW,GAAG,CAAC,EACf,OAAO,EACP,aAAa,EACb,QAAQ,EACR,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,WAAW,GACa,EAAE,EAAE;IAC5B,MAAM,UAAU,GAAG,2CAAe,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACtG,MAAM,yBAAyB,GAAG,IAAA,kCAAe,EAAC,wCAAM,CAAC,kBAAkB,CAAC,CAAC;IAC7E,MAAM,uCAAuC,GAAG,IAAA,kCAAe,EAAC,wCAAM,CAAC,gCAAgC,CAAC,CAAC;IAEzG,MAAM,WAAW,GAAG,CAAC,EAAoB,EAAE,EAAE;QAC3C,IAAI,QAAQ,KAAK,6BAAY,CAAC,QA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EAAC,wCAAM,CAAC,WAAW,EAAE,MAAM,CAAC,IAAI,CAAC,EAC/C,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,OAAO,EAAE,YAAY,GACrB,CACH,CAAC;YACJ,CAAC,CAAC,CACE,CACP,CAAC;SACH;IACH,CAAC,CAAC;IAEF,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,uCAAK,SAAS,EAAE,wCAAM,CAAC,wBAAwB,IAAG,YAAY,EAAE,CAAO,CAAC;IACtG,OAAO,CACL,uCACE,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,OAAO,EAAE,WAAW,EACpB,aAAa,EAAE,iBAAiB,EAChC,KAAK,EAAE,cAAc,EAAE,EACvB,SAAS,EAAE,IAAA,oBAAG,EACZ,yBAAyB,EACzB,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,EAC1C,sCAAU,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK,IAAI,wCAAM,CAAC,KAAK,CAClD,EACD,KAAK,EAAE,eAAe,aACb,IAAI,CAAC,EAAE;QAEf,eAAe,EAAE;QAClB,uCAAK,SAAS,EAAE,IAAA,oBAAG,EAAC,wCAAM,CAAC,0BAA0B,CAAC;YACnD,UAAU,CAAC,IAAI,CAAC;YACjB,uCAAK,SAAS,EAAE,uCAAuC;gBACpD,iBAAiB,CAAC,IAAI,CAAC;gBACvB,iBAAiB,CAAC,IAAI,CAAC,CACpB;YACL,gBAAgB,EAAE,CACf,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AArMW,QAAA,cAAc,kBAqMzB;AAEW,QAAA,8BAA8B,GAAG,EAAE,CAAC;AACpC,QAAA,yBAAyB,GAAG,EAAE,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { CommandContribution, CommandRegistry } from '@opensumi/ide-core-browser';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { MenuContribution, IMenuRegistry } from '@opensumi/ide-core-browser/lib/menu/next';
|
|
1
|
+
import { ClientAppContribution, CommandContribution, CommandRegistry } from '@opensumi/ide-core-browser';
|
|
2
|
+
import { TabBarToolbarContribution, ToolbarRegistry } from '@opensumi/ide-core-browser/lib/layout';
|
|
3
|
+
import { IMenuRegistry, MenuContribution } from '@opensumi/ide-core-browser/lib/menu/next';
|
|
5
4
|
export declare class OpenedEditorContribution implements ClientAppContribution, TabBarToolbarContribution, CommandContribution, MenuContribution {
|
|
6
5
|
private readonly mainLayoutService;
|
|
7
6
|
private readonly workbenchEditorService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opened-editor.contribution.d.ts","sourceRoot":"","sources":["../../src/browser/opened-editor.contribution.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"opened-editor.contribution.d.ts","sourceRoot":"","sources":["../../src/browser/opened-editor.contribution.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EAQhB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,yBAAyB,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACnG,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAU,MAAM,0CAA0C,CAAC;AAWnG,qBACa,wBACX,YAAW,qBAAqB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,gBAAgB;IAGlG,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAqB;IAGvD,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAyB;IAGhE,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAA2B;IAGpE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAE1C,OAAO;IAcb,gBAAgB,CAAC,QAAQ,EAAE,eAAe;IAuF1C,oBAAoB,CAAC,QAAQ,EAAE,eAAe;IAe9C,aAAa,CAAC,YAAY,EAAE,aAAa,GAAG,IAAI;CA0CjD"}
|
|
@@ -4,7 +4,6 @@ exports.OpenedEditorContribution = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const di_1 = require("@opensumi/di");
|
|
6
6
|
const ide_core_browser_1 = require("@opensumi/ide-core-browser");
|
|
7
|
-
const ide_core_browser_2 = require("@opensumi/ide-core-browser");
|
|
8
7
|
const layout_1 = require("@opensumi/ide-core-browser/lib/layout");
|
|
9
8
|
const next_1 = require("@opensumi/ide-core-browser/lib/menu/next");
|
|
10
9
|
const ide_editor_1 = require("@opensumi/ide-editor");
|
|
@@ -172,7 +171,7 @@ tslib_1.__decorate([
|
|
|
172
171
|
tslib_1.__metadata("design:type", Object)
|
|
173
172
|
], OpenedEditorContribution.prototype, "commandService", void 0);
|
|
174
173
|
OpenedEditorContribution = tslib_1.__decorate([
|
|
175
|
-
(0, ide_core_browser_1.Domain)(
|
|
174
|
+
(0, ide_core_browser_1.Domain)(ide_core_browser_1.ClientAppContribution, layout_1.TabBarToolbarContribution, ide_core_browser_1.CommandContribution, next_1.MenuContribution)
|
|
176
175
|
], OpenedEditorContribution);
|
|
177
176
|
exports.OpenedEditorContribution = OpenedEditorContribution;
|
|
178
177
|
//# sourceMappingURL=opened-editor.contribution.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opened-editor.contribution.js","sourceRoot":"","sources":["../../src/browser/opened-editor.contribution.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"opened-editor.contribution.js","sourceRoot":"","sources":["../../src/browser/opened-editor.contribution.ts"],"names":[],"mappings":";;;;AAAA,qCAAyC;AACzC,iEAWoC;AACpC,kEAAmG;AACnG,mEAAmG;AACnG,qDAA8D;AAC9D,oGAAiG;AACjG,+DAA+D;AAE/D,2CAA6D;AAE7D,mDAA0D;AAC1D,2EAA0E;AAC1E,wFAAkF;AAG3E,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAenC,KAAK,CAAC,OAAO;QACX,IAAI,CAA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E,YAAY;SACpB,CAAC,CAAC;QAEH,YAAY,CAAC,gBAAgB,CAAC,aAAM,CAAC,kBAAkB,EAAE;YACvD,OAAO,EAAE;gBACP,EAAE,EAAE,wCAAqB,CAAC,SAAS,CAAC,EAAE;gBACtC,KAAK,EAAE,IAAA,2BAAQ,EAAC,yBAAyB,CAAC;aAC3C;YACD,KAAK,EAAE,QAAQ;SAChB,CAAC,CAAC;QACH,YAAY,CAAC,gBAAgB,CAAC,aAAM,CAAC,kBAAkB,EAAE;YACvD,OAAO,EAAE;gBACP,EAAE,EAAE,wCAAqB,CAAC,kBAAkB,CAAC,EAAE;gBAC/C,KAAK,EAAE,IAAA,2BAAQ,EAAC,iCAAiC,CAAC;aACnD;YACD,KAAK,EAAE,QAAQ;SAChB,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AA1KC;IAAC,IAAA,cAAS,EAAC,oCAAkB,CAAC;;mEACyB;AAEvD;IAAC,IAAA,cAAS,EAAC,mCAAsB,CAAC;sCACO,mCAAsB;wEAAC;AAEhE;IAAC,IAAA,cAAS,EAAC,sDAAwB,CAAC;sCACO,sDAAwB;0EAAC;AAEpE;IAAC,IAAA,cAAS,EAAC,iCAAc,CAAC;;gEACsB;AAbrC,wBAAwB;IADpC,IAAA,yBAAM,EAAC,wCAAqB,EAAE,kCAAyB,EAAE,sCAAmB,EAAE,uBAAgB,CAAC;GACnF,wBAAwB,CA6KpC;AA7KY,4DAAwB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opened-editor.d.ts","sourceRoot":"","sources":["../../src/browser/opened-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AASxE,OAAO,
|
|
1
|
+
{"version":3,"file":"opened-editor.d.ts","sourceRoot":"","sources":["../../src/browser/opened-editor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AASxE,OAAO,EAA8C,SAAS,EAAY,MAAM,4BAA4B,CAAC;AAS7G,eAAO,MAAM,uBAAuB;eAAwD,SAAS;wBAoKpG,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Event, WithEventBus } from '@opensumi/ide-core-browser';
|
|
2
|
-
import { IResource,
|
|
2
|
+
import { IEditorGroup, IResource, IResourceDecorationChangeEventPayload, ResourceDecorationChangeEvent } from '@opensumi/ide-editor';
|
|
3
3
|
import { EditorGroupOpenEvent } from '@opensumi/ide-editor/lib/browser';
|
|
4
4
|
export type OpenedEditorData = IEditorGroup | IResource;
|
|
5
5
|
export interface OpenedEditorEvent {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opened-editor-event.service.d.ts","sourceRoot":"","sources":["../../../src/browser/services/opened-editor-event.service.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"opened-editor-event.service.d.ts","sourceRoot":"","sources":["../../../src/browser/services/opened-editor-event.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,EAAW,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EACL,YAAY,EACZ,SAAS,EACT,qCAAqC,EACrC,6BAA6B,EAC9B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAkD,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExH,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,SAAS,CAAC;AACxD,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,YAAY,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,qBACa,wBAAyB,SAAQ,YAAY;IACxD,OAAO,CAAC,YAAY,CAAoD;IACxE,OAAO,CAAC,sBAAsB,CAAwE;IACtG,OAAO,CAAC,kBAAkB,CAAoD;IAEvE,WAAW,EAAE,KAAK,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAA2B;IACvE,qBAAqB,EAAE,KAAK,CAAC,qCAAqC,GAAG,IAAI,CAAC,CAAqC;IAC/G,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAiC;;IAO1F,sBAAsB,CAAC,CAAC,EAAE,oBAAoB;IAK9C,uBAAuB;IAKvB,yBAAyB;IAMzB,+BAA+B,CAAC,CAAC,EAAE,6BAA6B;CAGjE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompositeTreeNode, TreeModel } from '@opensumi/ide-components';
|
|
2
2
|
import { EditorFileGroup } from '../opened-editor-node.define';
|
|
3
3
|
import { OpenedEditorDecorationService } from './opened-editor-decoration.service';
|
|
4
4
|
export declare class OpenedEditorModel extends TreeModel {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opened-editor-model.d.ts","sourceRoot":"","sources":["../../../src/browser/services/opened-editor-model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAiB,
|
|
1
|
+
{"version":3,"file":"opened-editor-model.d.ts","sourceRoot":"","sources":["../../../src/browser/services/opened-editor-model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAiB,MAAM,0BAA0B,CAAC;AAGvF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF,qBACa,iBAAkB,SAAQ,SAAS;IAC9C,MAAM,CAAC,mBAAmB,SAAO;IAEjC,SACgB,iBAAiB,EAAE,6BAA6B,CAAC;IAEjE,OAAO,CAAC,0BAA0B,CAAqE;gBAE/E,IAAI,EAAE,eAAe;IAK7C,IAAI,CAAC,IAAI,EAAE,iBAAiB;IAQ5B,gBAAgB;CAQjB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DecorationsManager, IRecycleTreeHandle, TreeNodeType } from '@opensumi/ide-components';
|
|
2
|
-
import {
|
|
2
|
+
import { CommandService, Deferred, Event, IContextKeyService, URI } from '@opensumi/ide-core-browser';
|
|
3
3
|
import { LabelService } from '@opensumi/ide-core-browser/lib/services';
|
|
4
4
|
import { IEditorGroup, IResource } from '@opensumi/ide-editor/lib/browser';
|
|
5
5
|
import { EditorFile, EditorFileGroup } from '../opened-editor-node.define';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opened-editor-model.service.d.ts","sourceRoot":"","sources":["../../../src/browser/services/opened-editor-model.service.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"opened-editor-model.service.d.ts","sourceRoot":"","sources":["../../../src/browser/services/opened-editor-model.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,kBAAkB,EAAE,kBAAkB,EAAE,YAAY,EAAc,MAAM,0BAA0B,CAAC;AACxH,OAAO,EACL,cAAc,EACd,QAAQ,EAIR,KAAK,EACL,kBAAkB,EAElB,GAAG,EAIJ,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,SAAS,EAA0B,MAAM,kCAAkC,CAAC;AAMnG,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAG3E,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAK1D,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D,cAAc,EAAE,MAAM,OAAO,CAAC;CAC/B;AAED,qBACa,wBAAwB;IACnC,OAAO,CAAC,MAAM,CAAC,8BAA8B,CAAO;IACpD,OAAO,CAAC,MAAM,CAAC,4BAA4B,CAAO;IAGlD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAW;IAGpC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAmB;IAGnD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA6B;IAGhE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,IAAI,aAAa,qCAEhB;IAED,IAAI,cAAc,IAAI,KAAK,CAAC,IAAI,CAAC,CAEhC;IAED,IAAI,iBAAiB,IAAI,KAAK,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAEvD;IAEK,aAAa;IAuDnB,eAAe,CAAC,IAAI,KAAA;IAQpB,oBAAoB,WAAY,eAAe,GAAG,UAAU,oCAkB1D;IAGF,oBAAoB,WAAY,eAAe,GAAG,UAAU,oCAgB1D;IAGF,2BAA2B,WAAY,eAAe,GAAG,UAAU,UAQjE;IAGF,sBAAsB,aAMpB;IAEF,sBAAsB;IAStB,uBAAuB;IAQvB,iBAAiB,OAAQ,gBAAgB,SAAS,eAAe,GAAG,UAAU,UAwB5E;IAEF,iBAAiB,CAAC,MAAM,EAAE,iBAAiB;IAI3C,cAAc,aAGZ;IAEF,eAAe,SAAU,eAAe,GAAG,UAAU,QAAQ,YAAY,UAOvE;IAEF,KAAK;IAKL;;OAEG;IACG,OAAO,CAAC,IAAI,GAAE,eAAyD;IAgB7E,OAAO,CAAC,gBAAgB;IAgBjB,eAAe,oCA6BpB;IAEK,QAAQ,aAAoB,SAAS,GAAG,GAAG,UAAU,YAAY,mBAmBtE;IAEK,QAAQ,SAAU,UAAU,UAUjC;IAEK,SAAS,SAAU,UAAU,UAElC;IAEK,eAAe,SAAU,eAAe,UAK7C;IAEK,cAAc,SAAU,eAAe,UAK5C;IAEF,OAAO,CAAC,sBAAsB;CAU/B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ITreeNodeOrCompositeTreeNode, Tree } from '@opensumi/ide-components';
|
|
2
2
|
import { URI } from '@opensumi/ide-core-browser';
|
|
3
3
|
import { LabelService } from '@opensumi/ide-core-browser/lib/services';
|
|
4
4
|
import { IEditorGroup, IResource } from '@opensumi/ide-editor';
|
|
5
|
-
import {
|
|
5
|
+
import { EditorFile, EditorFileGroup, EditorFileRoot } from '../opened-editor-node.define';
|
|
6
6
|
export declare class OpenedEditorService extends Tree {
|
|
7
7
|
private readonly workbenchEditorService;
|
|
8
8
|
private readonly workspaceService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opened-editor-tree.service.d.ts","sourceRoot":"","sources":["../../../src/browser/services/opened-editor-tree.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"opened-editor-tree.service.d.ts","sourceRoot":"","sources":["../../../src/browser/services/opened-editor-tree.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,IAAI,EAAgB,MAAM,0BAA0B,CAAC;AAC5F,OAAO,EAAW,GAAG,EAAwB,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,SAAS,EAA2C,MAAM,sBAAsB,CAAC;AAGxG,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAoB,MAAM,8BAA8B,CAAC;AAI7G,qBACa,mBAAoB,SAAQ,IAAI;IAE3C,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAyB;IAGhE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAoB;IAErD,SACgB,YAAY,EAAE,YAAY,CAAC;IAG3C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAkB;IAElD,OAAO,CAAC,SAAS,CAAgB;IAGjC,OAAO,CAAC,YAAY,CAAS;IAE7B,IAAI,WAAW,YAEd;IAED,WAAW,CAAC,GAAG,EAAE,MAAM;IAMvB,cAAc,CAAC,GAAG,EAAE,MAAM;IAOpB,eAAe,CACnB,MAAM,CAAC,EAAE,cAAc,GAAG,eAAe,GACxC,OAAO,CAAC,CAAC,eAAe,GAAG,cAAc,GAAG,UAAU,CAAC,EAAE,CAAC;IA2C7D,cAAc,MAAO,4BAA4B,KAAK,4BAA4B,SAuBhF;IAEK,kBAAkB,CAAC,QAAQ,CAAC,EAAE,SAAS,GAAG,GAAG,EAAE,KAAK,CAAC,EAAE,YAAY;IAoC1E;;;;;;OAMG;IACU,kBAAkB,CAAC,IAAI,EAAE,GAAG;CAa1C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/ide-opened-editor",
|
|
3
|
-
"version": "2.27.3-rc-
|
|
3
|
+
"version": "2.27.3-rc-1710386185.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"lib",
|
|
6
6
|
"src"
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"url": "git@github.com:opensumi/core.git"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@opensumi/ide-components": "2.27.3-rc-
|
|
21
|
-
"@opensumi/ide-core-browser": "2.27.3-rc-
|
|
22
|
-
"@opensumi/ide-core-common": "2.27.3-rc-
|
|
23
|
-
"@opensumi/ide-decoration": "2.27.3-rc-
|
|
20
|
+
"@opensumi/ide-components": "2.27.3-rc-1710386185.0",
|
|
21
|
+
"@opensumi/ide-core-browser": "2.27.3-rc-1710386185.0",
|
|
22
|
+
"@opensumi/ide-core-common": "2.27.3-rc-1710386185.0",
|
|
23
|
+
"@opensumi/ide-decoration": "2.27.3-rc-1710386185.0",
|
|
24
24
|
"@opensumi/ide-dev-tool": "1.3.1",
|
|
25
|
-
"@opensumi/ide-editor": "2.27.3-rc-
|
|
26
|
-
"@opensumi/ide-explorer": "2.27.3-rc-
|
|
27
|
-
"@opensumi/ide-main-layout": "2.27.3-rc-
|
|
28
|
-
"@opensumi/ide-theme": "2.27.3-rc-
|
|
29
|
-
"@opensumi/ide-webview": "2.27.3-rc-
|
|
30
|
-
"@opensumi/ide-workspace": "2.27.3-rc-
|
|
25
|
+
"@opensumi/ide-editor": "2.27.3-rc-1710386185.0",
|
|
26
|
+
"@opensumi/ide-explorer": "2.27.3-rc-1710386185.0",
|
|
27
|
+
"@opensumi/ide-main-layout": "2.27.3-rc-1710386185.0",
|
|
28
|
+
"@opensumi/ide-theme": "2.27.3-rc-1710386185.0",
|
|
29
|
+
"@opensumi/ide-webview": "2.27.3-rc-1710386185.0",
|
|
30
|
+
"@opensumi/ide-workspace": "2.27.3-rc-1710386185.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "466204f2cce511e0db35f0c6f28afc210ff65ccc"
|
|
33
33
|
}
|
package/src/browser/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { CompositeTreeNode, ITree, TreeNode } from '@opensumi/ide-components';
|
|
2
|
+
import { URI, formatLocalize } from '@opensumi/ide-core-browser';
|
|
3
3
|
import { IEditorGroup, IResource } from '@opensumi/ide-editor';
|
|
4
4
|
|
|
5
5
|
import { OpenedEditorService } from './services/opened-editor-tree.service';
|
|
@@ -2,18 +2,25 @@ import cls from 'classnames';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
Button,
|
|
6
|
+
ClasslistComposite,
|
|
6
7
|
CompositeTreeNode,
|
|
7
8
|
INodeRendererProps,
|
|
8
|
-
|
|
9
|
+
TreeNode,
|
|
9
10
|
TreeNodeType,
|
|
10
|
-
Button,
|
|
11
11
|
} from '@opensumi/ide-components';
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
CommandService,
|
|
14
|
+
OPEN_EDITORS_COMMANDS,
|
|
15
|
+
URI,
|
|
16
|
+
getIcon,
|
|
17
|
+
localize,
|
|
18
|
+
useDesignStyles,
|
|
19
|
+
} from '@opensumi/ide-core-browser';
|
|
13
20
|
import { LabelService } from '@opensumi/ide-core-browser/lib/services';
|
|
14
21
|
import { EDITOR_WEBVIEW_SCHEME } from '@opensumi/ide-webview';
|
|
15
22
|
|
|
16
|
-
import {
|
|
23
|
+
import { EditorFile, EditorFileGroup } from './opened-editor-node.define';
|
|
17
24
|
import styles from './opened-editor-node.module.less';
|
|
18
25
|
import { OpenedEditorDecorationService } from './services/opened-editor-decoration.service';
|
|
19
26
|
|
|
@@ -49,6 +56,8 @@ export const EditorTreeNode: React.FC<EditorNodeRenderedProps> = ({
|
|
|
49
56
|
decorations,
|
|
50
57
|
}: EditorNodeRenderedProps) => {
|
|
51
58
|
const decoration = EditorFileGroup.is(item) ? null : decorationService.getDecoration(item.uri, false);
|
|
59
|
+
const styles_opened_editor_node = useDesignStyles(styles.opened_editor_node);
|
|
60
|
+
const styles_opened_editor_node_overflow_wrap = useDesignStyles(styles.opened_editor_node_overflow_wrap);
|
|
52
61
|
|
|
53
62
|
const handleClick = (ev: React.MouseEvent) => {
|
|
54
63
|
if (itemType === TreeNodeType.TreeNode || itemType === TreeNodeType.CompositeTreeNode) {
|
|
@@ -213,7 +222,7 @@ export const EditorTreeNode: React.FC<EditorNodeRenderedProps> = ({
|
|
|
213
222
|
onContextMenu={handleContextMenu}
|
|
214
223
|
title={getItemTooltip()}
|
|
215
224
|
className={cls(
|
|
216
|
-
|
|
225
|
+
styles_opened_editor_node,
|
|
217
226
|
decorations ? decorations.classlist : null,
|
|
218
227
|
EditorFile.is(item) && item.dirty && styles.dirty,
|
|
219
228
|
)}
|
|
@@ -223,7 +232,7 @@ export const EditorTreeNode: React.FC<EditorNodeRenderedProps> = ({
|
|
|
223
232
|
{renderActionBar()}
|
|
224
233
|
<div className={cls(styles.opened_editor_node_content)}>
|
|
225
234
|
{renderIcon(item)}
|
|
226
|
-
<div className={
|
|
235
|
+
<div className={styles_opened_editor_node_overflow_wrap}>
|
|
227
236
|
{renderDisplayName(item)}
|
|
228
237
|
{renderDescription(item)}
|
|
229
238
|
</div>
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Autowired } from '@opensumi/di';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
localize,
|
|
3
|
+
ClientAppContribution,
|
|
5
4
|
CommandContribution,
|
|
6
5
|
CommandRegistry,
|
|
7
|
-
OPEN_EDITORS_COMMANDS,
|
|
8
6
|
CommandService,
|
|
9
|
-
|
|
7
|
+
Domain,
|
|
10
8
|
EDITOR_COMMANDS,
|
|
9
|
+
FILE_COMMANDS,
|
|
10
|
+
OPEN_EDITORS_COMMANDS,
|
|
11
11
|
URI,
|
|
12
|
+
localize,
|
|
12
13
|
} from '@opensumi/ide-core-browser';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { MenuContribution, IMenuRegistry, MenuId } from '@opensumi/ide-core-browser/lib/menu/next';
|
|
14
|
+
import { TabBarToolbarContribution, ToolbarRegistry } from '@opensumi/ide-core-browser/lib/layout';
|
|
15
|
+
import { IMenuRegistry, MenuContribution, MenuId } from '@opensumi/ide-core-browser/lib/menu/next';
|
|
16
16
|
import { WorkbenchEditorService } from '@opensumi/ide-editor';
|
|
17
17
|
import { EXPLORER_CONTAINER_ID } from '@opensumi/ide-explorer/lib/browser/explorer-contribution';
|
|
18
18
|
import { IMainLayoutService } from '@opensumi/ide-main-layout';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
RecycleTree,
|
|
5
|
-
IRecycleTreeHandle,
|
|
6
4
|
INodeRendererWrapProps,
|
|
7
|
-
|
|
5
|
+
IRecycleTreeHandle,
|
|
6
|
+
RecycleTree,
|
|
8
7
|
TreeModel,
|
|
8
|
+
TreeNodeType,
|
|
9
9
|
} from '@opensumi/ide-components';
|
|
10
|
-
import {
|
|
10
|
+
import { CancellationToken, CancellationTokenSource, ViewState, localize } from '@opensumi/ide-core-browser';
|
|
11
11
|
import { Progress } from '@opensumi/ide-core-browser/lib/progress/progress-bar';
|
|
12
12
|
import { useInjectable } from '@opensumi/ide-core-browser/lib/react-hooks';
|
|
13
13
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Autowired, Injectable } from '@opensumi/di';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
DisposableCollection,
|
|
4
|
+
Emitter,
|
|
5
5
|
FileDecorationsProvider,
|
|
6
6
|
IFileDecoration,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
URI,
|
|
8
|
+
Uri,
|
|
9
9
|
} from '@opensumi/ide-core-browser';
|
|
10
10
|
import { IDecorationsService } from '@opensumi/ide-decoration';
|
|
11
11
|
import { IThemeService } from '@opensumi/ide-theme';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Injectable } from '@opensumi/di';
|
|
2
|
-
import { Event,
|
|
2
|
+
import { Emitter, Event, OnEvent, WithEventBus } from '@opensumi/ide-core-browser';
|
|
3
3
|
import {
|
|
4
|
-
IResource,
|
|
5
4
|
IEditorGroup,
|
|
6
|
-
|
|
5
|
+
IResource,
|
|
7
6
|
IResourceDecorationChangeEventPayload,
|
|
7
|
+
ResourceDecorationChangeEvent,
|
|
8
8
|
} from '@opensumi/ide-editor';
|
|
9
|
-
import {
|
|
9
|
+
import { EditorGroupCloseEvent, EditorGroupDisposeEvent, EditorGroupOpenEvent } from '@opensumi/ide-editor/lib/browser';
|
|
10
10
|
|
|
11
11
|
export type OpenedEditorData = IEditorGroup | IResource;
|
|
12
12
|
export interface OpenedEditorEvent {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Autowired, INJECTOR_TOKEN, Injectable, Injector } from '@opensumi/di';
|
|
2
|
+
import { Decoration, DecorationsManager, IRecycleTreeHandle, TreeNodeType, WatchEvent } from '@opensumi/ide-components';
|
|
3
3
|
import {
|
|
4
|
-
|
|
4
|
+
CommandService,
|
|
5
|
+
Deferred,
|
|
5
6
|
DisposableCollection,
|
|
7
|
+
EDITOR_COMMANDS,
|
|
6
8
|
Emitter,
|
|
9
|
+
Event,
|
|
7
10
|
IContextKeyService,
|
|
8
|
-
EDITOR_COMMANDS,
|
|
9
|
-
CommandService,
|
|
10
11
|
ThrottledDelayer,
|
|
11
|
-
|
|
12
|
-
Event,
|
|
13
|
-
path,
|
|
14
|
-
pSeries,
|
|
12
|
+
URI,
|
|
15
13
|
formatLocalize,
|
|
14
|
+
pSeries,
|
|
15
|
+
path,
|
|
16
16
|
} from '@opensumi/ide-core-browser';
|
|
17
|
-
import { AbstractContextMenuService,
|
|
17
|
+
import { AbstractContextMenuService, ICtxMenuRenderer, MenuId } from '@opensumi/ide-core-browser/lib/menu/next';
|
|
18
18
|
import { LabelService } from '@opensumi/ide-core-browser/lib/services';
|
|
19
|
-
import {
|
|
19
|
+
import { IEditorGroup, IResource, WorkbenchEditorService } from '@opensumi/ide-editor/lib/browser';
|
|
20
20
|
import { WorkbenchEditorServiceImpl } from '@opensumi/ide-editor/lib/browser/workbench-editor.service';
|
|
21
21
|
import { EXPLORER_CONTAINER_ID } from '@opensumi/ide-explorer/lib/browser/explorer-contribution';
|
|
22
22
|
import { IMainLayoutService } from '@opensumi/ide-main-layout';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Injectable, Optional
|
|
2
|
-
import { TreeModel, TreeNodeEvent
|
|
1
|
+
import { Autowired, Injectable, Optional } from '@opensumi/di';
|
|
2
|
+
import { CompositeTreeNode, TreeModel, TreeNodeEvent } from '@opensumi/ide-components';
|
|
3
3
|
import { ThrottledDelayer } from '@opensumi/ide-core-browser';
|
|
4
4
|
|
|
5
5
|
import { EditorFileGroup } from '../opened-editor-node.define';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { URI, formatLocalize, path
|
|
1
|
+
import { Autowired, Injectable } from '@opensumi/di';
|
|
2
|
+
import { ITreeNodeOrCompositeTreeNode, Tree, TreeNodeType } from '@opensumi/ide-components';
|
|
3
|
+
import { Schemes, URI, formatLocalize, path } from '@opensumi/ide-core-browser';
|
|
4
4
|
import { LabelService } from '@opensumi/ide-core-browser/lib/services';
|
|
5
|
-
import {
|
|
5
|
+
import { IEditorGroup, IResource, ResourceService, WorkbenchEditorService } from '@opensumi/ide-editor';
|
|
6
6
|
import { IWorkspaceService } from '@opensumi/ide-workspace';
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { EditorFile, EditorFileGroup, EditorFileRoot, OpenedEditorData } from '../opened-editor-node.define';
|
|
9
9
|
|
|
10
10
|
const { Path } = path;
|
|
11
11
|
|