@theia/editor 1.45.0 → 1.46.0-next.72
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/README.md +30 -30
- package/lib/browser/decorations/editor-decoration-style.d.ts +8 -8
- package/lib/browser/decorations/editor-decoration-style.js +36 -36
- package/lib/browser/decorations/editor-decoration.d.ts +106 -106
- package/lib/browser/decorations/editor-decoration.js +37 -37
- package/lib/browser/decorations/editor-decorator.d.ts +6 -6
- package/lib/browser/decorations/editor-decorator.js +43 -43
- package/lib/browser/decorations/index.d.ts +3 -3
- package/lib/browser/decorations/index.js +30 -30
- package/lib/browser/diff-navigator.d.ts +9 -10
- package/lib/browser/diff-navigator.d.ts.map +1 -1
- package/lib/browser/diff-navigator.js +19 -19
- package/lib/browser/diff-navigator.js.map +1 -1
- package/lib/browser/editor-command.d.ts +102 -102
- package/lib/browser/editor-command.js +426 -426
- package/lib/browser/editor-contribution.d.ts +26 -26
- package/lib/browser/editor-contribution.js +198 -198
- package/lib/browser/editor-frontend-module.d.ts +5 -5
- package/lib/browser/editor-frontend-module.js +74 -74
- package/lib/browser/editor-generated-preference-schema.d.ts +282 -249
- package/lib/browser/editor-generated-preference-schema.d.ts.map +1 -1
- package/lib/browser/editor-generated-preference-schema.js +2451 -2316
- package/lib/browser/editor-generated-preference-schema.js.map +1 -1
- package/lib/browser/editor-keybinding.d.ts +5 -5
- package/lib/browser/editor-keybinding.js +55 -55
- package/lib/browser/editor-linenumber-contribution.d.ts +15 -15
- package/lib/browser/editor-linenumber-contribution.d.ts.map +1 -1
- package/lib/browser/editor-linenumber-contribution.js +95 -96
- package/lib/browser/editor-linenumber-contribution.js.map +1 -1
- package/lib/browser/editor-manager.d.ts +115 -115
- package/lib/browser/editor-manager.js +428 -428
- package/lib/browser/editor-menu.d.ts +48 -48
- package/lib/browser/editor-menu.js +210 -210
- package/lib/browser/editor-navigation-contribution.d.ts +67 -67
- package/lib/browser/editor-navigation-contribution.js +343 -343
- package/lib/browser/editor-preferences.d.ts +41 -41
- package/lib/browser/editor-preferences.js +176 -176
- package/lib/browser/editor-variable-contribution.d.ts +8 -8
- package/lib/browser/editor-variable-contribution.js +64 -64
- package/lib/browser/editor-widget-factory.d.ts +17 -17
- package/lib/browser/editor-widget-factory.js +91 -91
- package/lib/browser/editor-widget.d.ts +24 -24
- package/lib/browser/editor-widget.d.ts.map +1 -1
- package/lib/browser/editor-widget.js +122 -114
- package/lib/browser/editor-widget.js.map +1 -1
- package/lib/browser/editor.d.ts +295 -293
- package/lib/browser/editor.d.ts.map +1 -1
- package/lib/browser/editor.js +103 -103
- package/lib/browser/editor.js.map +1 -1
- package/lib/browser/index.d.ts +10 -10
- package/lib/browser/index.js +37 -37
- package/lib/browser/language-status/editor-language-status-service.d.ts +77 -77
- package/lib/browser/language-status/editor-language-status-service.js +251 -251
- package/lib/browser/navigation/navigation-location-service.d.ts +103 -103
- package/lib/browser/navigation/navigation-location-service.js +281 -281
- package/lib/browser/navigation/navigation-location-service.spec.d.ts +1 -1
- package/lib/browser/navigation/navigation-location-service.spec.js +184 -184
- package/lib/browser/navigation/navigation-location-similarity.d.ts +15 -15
- package/lib/browser/navigation/navigation-location-similarity.js +62 -62
- package/lib/browser/navigation/navigation-location-similarity.spec.d.ts +1 -1
- package/lib/browser/navigation/navigation-location-similarity.spec.js +32 -32
- package/lib/browser/navigation/navigation-location-updater.d.ts +35 -35
- package/lib/browser/navigation/navigation-location-updater.js +210 -210
- package/lib/browser/navigation/navigation-location-updater.spec.d.ts +1 -1
- package/lib/browser/navigation/navigation-location-updater.spec.js +177 -177
- package/lib/browser/navigation/navigation-location.d.ts +191 -191
- package/lib/browser/navigation/navigation-location.js +300 -300
- package/lib/browser/navigation/test/mock-navigation-location-updater.d.ts +15 -15
- package/lib/browser/navigation/test/mock-navigation-location-updater.js +38 -38
- package/lib/browser/quick-editor-service.d.ts +16 -16
- package/lib/browser/quick-editor-service.js +109 -109
- package/lib/browser/undo-redo-service.d.ts +23 -23
- package/lib/browser/undo-redo-service.js +110 -110
- package/lib/common/language-selector.d.ts +13 -13
- package/lib/common/language-selector.js +90 -90
- package/lib/package.spec.js +25 -25
- package/package.json +5 -5
- package/src/browser/decorations/editor-decoration-style.ts +41 -41
- package/src/browser/decorations/editor-decoration.ts +127 -127
- package/src/browser/decorations/editor-decorator.ts +36 -36
- package/src/browser/decorations/index.ts +19 -19
- package/src/browser/diff-navigator.ts +27 -28
- package/src/browser/editor-command.ts +414 -414
- package/src/browser/editor-contribution.ts +185 -185
- package/src/browser/editor-frontend-module.ts +87 -87
- package/src/browser/editor-generated-preference-schema.ts +2707 -2539
- package/src/browser/editor-keybinding.ts +55 -55
- package/src/browser/editor-linenumber-contribution.ts +88 -89
- package/src/browser/editor-manager.ts +442 -442
- package/src/browser/editor-menu.ts +224 -224
- package/src/browser/editor-navigation-contribution.ts +343 -343
- package/src/browser/editor-preferences.ts +226 -226
- package/src/browser/editor-variable-contribution.ts +54 -54
- package/src/browser/editor-widget-factory.ts +82 -82
- package/src/browser/editor-widget.ts +137 -130
- package/src/browser/editor.ts +360 -358
- package/src/browser/index.ts +26 -26
- package/src/browser/language-status/editor-language-status-service.ts +271 -271
- package/src/browser/language-status/editor-language-status.css +101 -101
- package/src/browser/navigation/navigation-location-service.spec.ts +245 -245
- package/src/browser/navigation/navigation-location-service.ts +284 -284
- package/src/browser/navigation/navigation-location-similarity.spec.ts +46 -46
- package/src/browser/navigation/navigation-location-similarity.ts +58 -58
- package/src/browser/navigation/navigation-location-updater.spec.ts +197 -197
- package/src/browser/navigation/navigation-location-updater.ts +220 -220
- package/src/browser/navigation/navigation-location.ts +418 -418
- package/src/browser/navigation/test/mock-navigation-location-updater.ts +41 -41
- package/src/browser/quick-editor-service.ts +94 -94
- package/src/browser/style/index.css +19 -19
- package/src/browser/undo-redo-service.ts +120 -120
- package/src/common/language-selector.ts +104 -104
- package/src/package.spec.ts +28 -28
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2018 TypeFox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
-
};
|
|
26
|
-
var EditorWidgetFactory_1;
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.EditorWidgetFactory = void 0;
|
|
29
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
30
|
-
const uri_1 = require("@theia/core/lib/common/uri");
|
|
31
|
-
const common_1 = require("@theia/core/lib/common");
|
|
32
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
33
|
-
const editor_widget_1 = require("./editor-widget");
|
|
34
|
-
const editor_1 = require("./editor");
|
|
35
|
-
let EditorWidgetFactory = EditorWidgetFactory_1 = class EditorWidgetFactory {
|
|
36
|
-
constructor() {
|
|
37
|
-
this.id = EditorWidgetFactory_1.ID;
|
|
38
|
-
}
|
|
39
|
-
static createID(uri, counter) {
|
|
40
|
-
return EditorWidgetFactory_1.ID
|
|
41
|
-
+ `:${uri.toString()}`
|
|
42
|
-
+ (counter !== undefined ? `:${counter}` : '');
|
|
43
|
-
}
|
|
44
|
-
createWidget(options) {
|
|
45
|
-
const uri = new uri_1.default(options.uri);
|
|
46
|
-
return this.createEditor(uri, options);
|
|
47
|
-
}
|
|
48
|
-
async createEditor(uri, options) {
|
|
49
|
-
const newEditor = await this.constructEditor(uri);
|
|
50
|
-
this.setLabels(newEditor, uri);
|
|
51
|
-
const labelListener = this.labelProvider.onDidChange(event => {
|
|
52
|
-
if (event.affects(uri)) {
|
|
53
|
-
this.setLabels(newEditor, uri);
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
newEditor.onDispose(() => labelListener.dispose());
|
|
57
|
-
newEditor.id = EditorWidgetFactory_1.createID(uri, options === null || options === void 0 ? void 0 : options.counter);
|
|
58
|
-
newEditor.title.closable = true;
|
|
59
|
-
return newEditor;
|
|
60
|
-
}
|
|
61
|
-
async constructEditor(uri) {
|
|
62
|
-
const textEditor = await this.editorProvider(uri);
|
|
63
|
-
return new editor_widget_1.EditorWidget(textEditor, this.selectionService);
|
|
64
|
-
}
|
|
65
|
-
setLabels(editor, uri) {
|
|
66
|
-
editor.title.caption = uri.path.fsPath();
|
|
67
|
-
if (editor.editor.isReadonly) {
|
|
68
|
-
editor.title.caption += ` • ${common_1.nls.localizeByDefault('Read-only')}`;
|
|
69
|
-
}
|
|
70
|
-
const icon = this.labelProvider.getIcon(uri);
|
|
71
|
-
editor.title.label = this.labelProvider.getName(uri);
|
|
72
|
-
editor.title.iconClass = icon + ' file-icon';
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
EditorWidgetFactory.ID = 'code-editor-opener';
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, inversify_1.inject)(browser_1.LabelProvider),
|
|
78
|
-
__metadata("design:type", browser_1.LabelProvider)
|
|
79
|
-
], EditorWidgetFactory.prototype, "labelProvider", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, inversify_1.inject)(editor_1.TextEditorProvider),
|
|
82
|
-
__metadata("design:type", Function)
|
|
83
|
-
], EditorWidgetFactory.prototype, "editorProvider", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, inversify_1.inject)(common_1.SelectionService),
|
|
86
|
-
__metadata("design:type", common_1.SelectionService)
|
|
87
|
-
], EditorWidgetFactory.prototype, "selectionService", void 0);
|
|
88
|
-
EditorWidgetFactory = EditorWidgetFactory_1 = __decorate([
|
|
89
|
-
(0, inversify_1.injectable)()
|
|
90
|
-
], EditorWidgetFactory);
|
|
91
|
-
exports.EditorWidgetFactory = EditorWidgetFactory;
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2018 TypeFox and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
+
};
|
|
26
|
+
var EditorWidgetFactory_1;
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.EditorWidgetFactory = void 0;
|
|
29
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
30
|
+
const uri_1 = require("@theia/core/lib/common/uri");
|
|
31
|
+
const common_1 = require("@theia/core/lib/common");
|
|
32
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
33
|
+
const editor_widget_1 = require("./editor-widget");
|
|
34
|
+
const editor_1 = require("./editor");
|
|
35
|
+
let EditorWidgetFactory = EditorWidgetFactory_1 = class EditorWidgetFactory {
|
|
36
|
+
constructor() {
|
|
37
|
+
this.id = EditorWidgetFactory_1.ID;
|
|
38
|
+
}
|
|
39
|
+
static createID(uri, counter) {
|
|
40
|
+
return EditorWidgetFactory_1.ID
|
|
41
|
+
+ `:${uri.toString()}`
|
|
42
|
+
+ (counter !== undefined ? `:${counter}` : '');
|
|
43
|
+
}
|
|
44
|
+
createWidget(options) {
|
|
45
|
+
const uri = new uri_1.default(options.uri);
|
|
46
|
+
return this.createEditor(uri, options);
|
|
47
|
+
}
|
|
48
|
+
async createEditor(uri, options) {
|
|
49
|
+
const newEditor = await this.constructEditor(uri);
|
|
50
|
+
this.setLabels(newEditor, uri);
|
|
51
|
+
const labelListener = this.labelProvider.onDidChange(event => {
|
|
52
|
+
if (event.affects(uri)) {
|
|
53
|
+
this.setLabels(newEditor, uri);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
newEditor.onDispose(() => labelListener.dispose());
|
|
57
|
+
newEditor.id = EditorWidgetFactory_1.createID(uri, options === null || options === void 0 ? void 0 : options.counter);
|
|
58
|
+
newEditor.title.closable = true;
|
|
59
|
+
return newEditor;
|
|
60
|
+
}
|
|
61
|
+
async constructEditor(uri) {
|
|
62
|
+
const textEditor = await this.editorProvider(uri);
|
|
63
|
+
return new editor_widget_1.EditorWidget(textEditor, this.selectionService);
|
|
64
|
+
}
|
|
65
|
+
setLabels(editor, uri) {
|
|
66
|
+
editor.title.caption = uri.path.fsPath();
|
|
67
|
+
if (editor.editor.isReadonly) {
|
|
68
|
+
editor.title.caption += ` • ${common_1.nls.localizeByDefault('Read-only')}`;
|
|
69
|
+
}
|
|
70
|
+
const icon = this.labelProvider.getIcon(uri);
|
|
71
|
+
editor.title.label = this.labelProvider.getName(uri);
|
|
72
|
+
editor.title.iconClass = icon + ' file-icon';
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
EditorWidgetFactory.ID = 'code-editor-opener';
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, inversify_1.inject)(browser_1.LabelProvider),
|
|
78
|
+
__metadata("design:type", browser_1.LabelProvider)
|
|
79
|
+
], EditorWidgetFactory.prototype, "labelProvider", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, inversify_1.inject)(editor_1.TextEditorProvider),
|
|
82
|
+
__metadata("design:type", Function)
|
|
83
|
+
], EditorWidgetFactory.prototype, "editorProvider", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, inversify_1.inject)(common_1.SelectionService),
|
|
86
|
+
__metadata("design:type", common_1.SelectionService)
|
|
87
|
+
], EditorWidgetFactory.prototype, "selectionService", void 0);
|
|
88
|
+
EditorWidgetFactory = EditorWidgetFactory_1 = __decorate([
|
|
89
|
+
(0, inversify_1.injectable)()
|
|
90
|
+
], EditorWidgetFactory);
|
|
91
|
+
exports.EditorWidgetFactory = EditorWidgetFactory;
|
|
92
92
|
//# sourceMappingURL=editor-widget-factory.js.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { SelectionService, Event, DisposableCollection } from '@theia/core/lib/common';
|
|
2
|
-
import { Widget, BaseWidget, Message, Saveable, SaveableSource, Navigatable, StatefulWidget, TabBar } from '@theia/core/lib/browser';
|
|
3
|
-
import URI from '@theia/core/lib/common/uri';
|
|
4
|
-
import { TextEditor } from './editor';
|
|
5
|
-
export declare class EditorWidget extends BaseWidget implements SaveableSource, Navigatable, StatefulWidget {
|
|
6
|
-
readonly editor: TextEditor;
|
|
7
|
-
protected readonly selectionService: SelectionService;
|
|
8
|
-
protected toDisposeOnTabbarChange: DisposableCollection;
|
|
9
|
-
protected currentTabbar: TabBar<Widget> | undefined;
|
|
10
|
-
constructor(editor: TextEditor, selectionService: SelectionService);
|
|
11
|
-
setSelection(): void;
|
|
12
|
-
get saveable(): Saveable;
|
|
13
|
-
getResourceUri(): URI | undefined;
|
|
14
|
-
createMoveToUri(resourceUri: URI): URI | undefined;
|
|
15
|
-
protected onActivateRequest(msg: Message): void;
|
|
16
|
-
protected onAfterAttach(msg: Message): void;
|
|
17
|
-
protected checkForTabbarChange(): void;
|
|
18
|
-
protected handleTabBarChange(oldTabBar?: TabBar<Widget>, newTabBar?: TabBar<Widget>): void;
|
|
19
|
-
protected onAfterShow(msg: Message): void;
|
|
20
|
-
protected onResize(msg: Widget.ResizeMessage): void;
|
|
21
|
-
storeState(): object | undefined;
|
|
22
|
-
restoreState(oldState: object): void;
|
|
23
|
-
get onDispose(): Event<void>;
|
|
24
|
-
}
|
|
1
|
+
import { SelectionService, Event, DisposableCollection } from '@theia/core/lib/common';
|
|
2
|
+
import { Widget, BaseWidget, Message, Saveable, SaveableSource, Navigatable, StatefulWidget, TabBar } from '@theia/core/lib/browser';
|
|
3
|
+
import URI from '@theia/core/lib/common/uri';
|
|
4
|
+
import { TextEditor } from './editor';
|
|
5
|
+
export declare class EditorWidget extends BaseWidget implements SaveableSource, Navigatable, StatefulWidget {
|
|
6
|
+
readonly editor: TextEditor;
|
|
7
|
+
protected readonly selectionService: SelectionService;
|
|
8
|
+
protected toDisposeOnTabbarChange: DisposableCollection;
|
|
9
|
+
protected currentTabbar: TabBar<Widget> | undefined;
|
|
10
|
+
constructor(editor: TextEditor, selectionService: SelectionService);
|
|
11
|
+
setSelection(): void;
|
|
12
|
+
get saveable(): Saveable;
|
|
13
|
+
getResourceUri(): URI | undefined;
|
|
14
|
+
createMoveToUri(resourceUri: URI): URI | undefined;
|
|
15
|
+
protected onActivateRequest(msg: Message): void;
|
|
16
|
+
protected onAfterAttach(msg: Message): void;
|
|
17
|
+
protected checkForTabbarChange(): void;
|
|
18
|
+
protected handleTabBarChange(oldTabBar?: TabBar<Widget>, newTabBar?: TabBar<Widget>): void;
|
|
19
|
+
protected onAfterShow(msg: Message): void;
|
|
20
|
+
protected onResize(msg: Widget.ResizeMessage): void;
|
|
21
|
+
storeState(): object | undefined;
|
|
22
|
+
restoreState(oldState: object): void;
|
|
23
|
+
get onDispose(): Event<void>;
|
|
24
|
+
}
|
|
25
25
|
//# sourceMappingURL=editor-widget.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-widget.d.ts","sourceRoot":"","sources":["../../src/browser/editor-widget.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAc,gBAAgB,EAAE,KAAK,EAAmB,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACpH,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAQ,MAAM,
|
|
1
|
+
{"version":3,"file":"editor-widget.d.ts","sourceRoot":"","sources":["../../src/browser/editor-widget.ts"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AG,SAAS;IAIhC,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAIpC,IAAI,SAAS,IAAI,KAAK,CAAC,IAAI,CAAC,CAE3B;CAEJ"}
|
|
@@ -1,115 +1,123 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2017 TypeFox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.EditorWidget = void 0;
|
|
19
|
-
const common_1 = require("@theia/core/lib/common");
|
|
20
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
21
|
-
const algorithm_1 = require("@theia/core/shared/@phosphor/algorithm");
|
|
22
|
-
class EditorWidget extends browser_1.BaseWidget {
|
|
23
|
-
constructor(editor, selectionService) {
|
|
24
|
-
super(editor);
|
|
25
|
-
this.editor = editor;
|
|
26
|
-
this.selectionService = selectionService;
|
|
27
|
-
this.toDisposeOnTabbarChange = new common_1.DisposableCollection();
|
|
28
|
-
this.addClass('theia-editor');
|
|
29
|
-
if (editor.isReadonly) {
|
|
30
|
-
(0, browser_1.lock)(this.title);
|
|
31
|
-
}
|
|
32
|
-
this.toDispose.push(this.editor);
|
|
33
|
-
this.toDispose.push(this.toDisposeOnTabbarChange);
|
|
34
|
-
this.toDispose.push(this.editor.onSelectionChanged(() => this.setSelection()));
|
|
35
|
-
this.toDispose.push(this.editor.onFocusChanged(() => this.setSelection()));
|
|
36
|
-
this.toDispose.push(
|
|
37
|
-
if (
|
|
38
|
-
this.
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
this.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2017 TypeFox and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.EditorWidget = void 0;
|
|
19
|
+
const common_1 = require("@theia/core/lib/common");
|
|
20
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
21
|
+
const algorithm_1 = require("@theia/core/shared/@phosphor/algorithm");
|
|
22
|
+
class EditorWidget extends browser_1.BaseWidget {
|
|
23
|
+
constructor(editor, selectionService) {
|
|
24
|
+
super(editor);
|
|
25
|
+
this.editor = editor;
|
|
26
|
+
this.selectionService = selectionService;
|
|
27
|
+
this.toDisposeOnTabbarChange = new common_1.DisposableCollection();
|
|
28
|
+
this.addClass('theia-editor');
|
|
29
|
+
if (editor.isReadonly) {
|
|
30
|
+
(0, browser_1.lock)(this.title);
|
|
31
|
+
}
|
|
32
|
+
this.toDispose.push(this.editor);
|
|
33
|
+
this.toDispose.push(this.toDisposeOnTabbarChange);
|
|
34
|
+
this.toDispose.push(this.editor.onSelectionChanged(() => this.setSelection()));
|
|
35
|
+
this.toDispose.push(this.editor.onFocusChanged(() => this.setSelection()));
|
|
36
|
+
this.toDispose.push(this.editor.onDidChangeReadOnly(isReadonly => {
|
|
37
|
+
if (isReadonly) {
|
|
38
|
+
(0, browser_1.lock)(this.title);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
(0, browser_1.unlock)(this.title);
|
|
42
|
+
}
|
|
43
|
+
}));
|
|
44
|
+
this.toDispose.push(common_1.Disposable.create(() => {
|
|
45
|
+
if (this.selectionService.selection === this.editor) {
|
|
46
|
+
this.selectionService.selection = undefined;
|
|
47
|
+
}
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
setSelection() {
|
|
51
|
+
if (this.editor.isFocused() && this.selectionService.selection !== this.editor) {
|
|
52
|
+
this.selectionService.selection = this.editor;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
get saveable() {
|
|
56
|
+
return this.editor.document;
|
|
57
|
+
}
|
|
58
|
+
getResourceUri() {
|
|
59
|
+
return this.editor.getResourceUri();
|
|
60
|
+
}
|
|
61
|
+
createMoveToUri(resourceUri) {
|
|
62
|
+
return this.editor.createMoveToUri(resourceUri);
|
|
63
|
+
}
|
|
64
|
+
onActivateRequest(msg) {
|
|
65
|
+
super.onActivateRequest(msg);
|
|
66
|
+
this.editor.focus();
|
|
67
|
+
this.selectionService.selection = this.editor;
|
|
68
|
+
}
|
|
69
|
+
onAfterAttach(msg) {
|
|
70
|
+
super.onAfterAttach(msg);
|
|
71
|
+
if (this.isVisible) {
|
|
72
|
+
this.editor.refresh();
|
|
73
|
+
}
|
|
74
|
+
this.checkForTabbarChange();
|
|
75
|
+
}
|
|
76
|
+
checkForTabbarChange() {
|
|
77
|
+
const { parent } = this;
|
|
78
|
+
if (parent instanceof browser_1.DockPanel) {
|
|
79
|
+
const newTabbar = (0, algorithm_1.find)(parent.tabBars(), tabbar => !!tabbar.titles.find(title => title === this.title));
|
|
80
|
+
if (this.currentTabbar !== newTabbar) {
|
|
81
|
+
this.toDisposeOnTabbarChange.dispose();
|
|
82
|
+
const listener = () => this.checkForTabbarChange();
|
|
83
|
+
parent.layoutModified.connect(listener);
|
|
84
|
+
this.toDisposeOnTabbarChange.push(common_1.Disposable.create(() => parent.layoutModified.disconnect(listener)));
|
|
85
|
+
const last = this.currentTabbar;
|
|
86
|
+
this.currentTabbar = newTabbar;
|
|
87
|
+
this.handleTabBarChange(last, newTabbar);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
handleTabBarChange(oldTabBar, newTabBar) {
|
|
92
|
+
const ownSaveable = browser_1.Saveable.get(this);
|
|
93
|
+
const competingEditors = ownSaveable && (newTabBar === null || newTabBar === void 0 ? void 0 : newTabBar.titles.filter(title => title !== this.title
|
|
94
|
+
&& (title.owner instanceof EditorWidget)
|
|
95
|
+
&& title.owner.editor.uri.isEqual(this.editor.uri)
|
|
96
|
+
&& browser_1.Saveable.get(title.owner) === ownSaveable));
|
|
97
|
+
competingEditors === null || competingEditors === void 0 ? void 0 : competingEditors.forEach(title => title.owner.close());
|
|
98
|
+
}
|
|
99
|
+
onAfterShow(msg) {
|
|
100
|
+
super.onAfterShow(msg);
|
|
101
|
+
this.editor.refresh();
|
|
102
|
+
}
|
|
103
|
+
onResize(msg) {
|
|
104
|
+
if (msg.width < 0 || msg.height < 0) {
|
|
105
|
+
this.editor.resizeToFit();
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
this.editor.setSize(msg);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
storeState() {
|
|
112
|
+
var _a;
|
|
113
|
+
return ((_a = this.getResourceUri()) === null || _a === void 0 ? void 0 : _a.scheme) === common_1.UNTITLED_SCHEME ? undefined : this.editor.storeViewState();
|
|
114
|
+
}
|
|
115
|
+
restoreState(oldState) {
|
|
116
|
+
this.editor.restoreViewState(oldState);
|
|
117
|
+
}
|
|
118
|
+
get onDispose() {
|
|
119
|
+
return this.toDispose.onDispose;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
exports.EditorWidget = EditorWidget;
|
|
115
123
|
//# sourceMappingURL=editor-widget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-widget.js","sourceRoot":"","sources":["../../src/browser/editor-widget.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AAC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