@theia/editor 1.54.0 → 1.55.0-next.14
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/editor-contribution.d.ts +9 -7
- package/lib/browser/editor-contribution.d.ts.map +1 -1
- package/lib/browser/editor-contribution.js +26 -26
- package/lib/browser/editor-contribution.js.map +1 -1
- package/lib/browser/editor-frontend-module.d.ts.map +1 -1
- package/lib/browser/editor-frontend-module.js +7 -2
- package/lib/browser/editor-frontend-module.js.map +1 -1
- package/package.json +4 -4
- package/src/browser/editor-contribution.ts +33 -26
- package/src/browser/editor-frontend-module.ts +8 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { EditorManager } from './editor-manager';
|
|
2
2
|
import { TextEditor } from './editor';
|
|
3
3
|
import { StatusBar } from '@theia/core/lib/browser/status-bar/status-bar';
|
|
4
|
-
import { FrontendApplicationContribution, QuickInputService, KeybindingRegistry, KeybindingContribution, ApplicationShell } from '@theia/core/lib/browser';
|
|
4
|
+
import { FrontendApplicationContribution, QuickInputService, KeybindingRegistry, KeybindingContribution, ApplicationShell, WidgetStatusBarContribution, Widget } from '@theia/core/lib/browser';
|
|
5
5
|
import { ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
6
6
|
import { DisposableCollection, MenuContribution, MenuModelRegistry } from '@theia/core';
|
|
7
7
|
import { CommandRegistry, CommandContribution } from '@theia/core/lib/common';
|
|
8
|
+
import { EditorWidget } from './editor-widget';
|
|
8
9
|
import { EditorLanguageStatusService } from './language-status/editor-language-status-service';
|
|
9
|
-
export declare class EditorContribution implements FrontendApplicationContribution, CommandContribution, KeybindingContribution, MenuContribution {
|
|
10
|
-
protected readonly statusBar: StatusBar;
|
|
10
|
+
export declare class EditorContribution implements FrontendApplicationContribution, CommandContribution, KeybindingContribution, MenuContribution, WidgetStatusBarContribution<EditorWidget> {
|
|
11
11
|
protected readonly editorManager: EditorManager;
|
|
12
12
|
protected readonly languageStatusService: EditorLanguageStatusService;
|
|
13
13
|
protected readonly shell: ApplicationShell;
|
|
@@ -16,10 +16,12 @@ export declare class EditorContribution implements FrontendApplicationContributi
|
|
|
16
16
|
onStart(): void;
|
|
17
17
|
protected initEditorContextKeys(): void;
|
|
18
18
|
protected readonly toDisposeOnCurrentEditorChanged: DisposableCollection;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
protected
|
|
19
|
+
canHandle(widget: Widget): widget is EditorWidget;
|
|
20
|
+
activate(statusBar: StatusBar, widget: EditorWidget): void;
|
|
21
|
+
deactivate(statusBar: StatusBar): void;
|
|
22
|
+
protected updateLanguageStatus(statusBar: StatusBar, editor: TextEditor | undefined): void;
|
|
23
|
+
protected updateEncodingStatus(statusBar: StatusBar, editor: TextEditor | undefined): void;
|
|
24
|
+
protected setCursorPositionStatus(statusBar: StatusBar, editor: TextEditor | undefined): void;
|
|
23
25
|
registerCommands(commands: CommandRegistry): void;
|
|
24
26
|
registerKeybindings(keybindings: KeybindingRegistry): void;
|
|
25
27
|
registerMenus(registry: MenuModelRegistry): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/editor-contribution.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAsB,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,EACH,+BAA+B,EAC/B,iBAAiB,EAAE,kBAAkB,EAAE,sBAAsB,EAA8B,gBAAgB,
|
|
1
|
+
{"version":3,"file":"editor-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/editor-contribution.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAs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,SAAS,EAAE,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,IAAI;IAI1F,SAAS,CAAC,oBAAoB,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,IAAI;IAc1F,SAAS,CAAC,uBAAuB,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,IAAI;IAe7F,gBAAgB,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;IAuBjD,mBAAmB,CAAC,WAAW,EAAE,kBAAkB,GAAG,IAAI;IAe1D,aAAa,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI;CAsBnD"}
|
|
@@ -35,8 +35,6 @@ let EditorContribution = class EditorContribution {
|
|
|
35
35
|
}
|
|
36
36
|
onStart() {
|
|
37
37
|
this.initEditorContextKeys();
|
|
38
|
-
this.updateStatusBar();
|
|
39
|
-
this.editorManager.onCurrentEditorChanged(() => this.updateStatusBar());
|
|
40
38
|
}
|
|
41
39
|
initEditorContextKeys() {
|
|
42
40
|
const editorIsOpen = this.contextKeyService.createKey('editorIsOpen', false);
|
|
@@ -55,30 +53,36 @@ let EditorContribution = class EditorContribution {
|
|
|
55
53
|
widget.disposed.connect(updateContextKeys);
|
|
56
54
|
});
|
|
57
55
|
}
|
|
58
|
-
|
|
56
|
+
canHandle(widget) {
|
|
57
|
+
return widget instanceof editor_widget_1.EditorWidget;
|
|
58
|
+
}
|
|
59
|
+
activate(statusBar, widget) {
|
|
59
60
|
this.toDisposeOnCurrentEditorChanged.dispose();
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
this.
|
|
63
|
-
this.
|
|
64
|
-
this.
|
|
65
|
-
|
|
66
|
-
this.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
61
|
+
const editor = widget.editor;
|
|
62
|
+
this.updateLanguageStatus(statusBar, editor);
|
|
63
|
+
this.updateEncodingStatus(statusBar, editor);
|
|
64
|
+
this.setCursorPositionStatus(statusBar, editor);
|
|
65
|
+
this.toDisposeOnCurrentEditorChanged.pushAll([
|
|
66
|
+
editor.onLanguageChanged(() => this.updateLanguageStatus(statusBar, editor)),
|
|
67
|
+
editor.onEncodingChanged(() => this.updateEncodingStatus(statusBar, editor)),
|
|
68
|
+
editor.onCursorPositionChanged(() => this.setCursorPositionStatus(statusBar, editor))
|
|
69
|
+
]);
|
|
70
|
+
}
|
|
71
|
+
deactivate(statusBar) {
|
|
72
|
+
this.toDisposeOnCurrentEditorChanged.dispose();
|
|
73
|
+
this.updateLanguageStatus(statusBar, undefined);
|
|
74
|
+
this.updateEncodingStatus(statusBar, undefined);
|
|
75
|
+
this.setCursorPositionStatus(statusBar, undefined);
|
|
72
76
|
}
|
|
73
|
-
updateLanguageStatus(editor) {
|
|
77
|
+
updateLanguageStatus(statusBar, editor) {
|
|
74
78
|
this.languageStatusService.updateLanguageStatus(editor);
|
|
75
79
|
}
|
|
76
|
-
updateEncodingStatus(editor) {
|
|
80
|
+
updateEncodingStatus(statusBar, editor) {
|
|
77
81
|
if (!editor) {
|
|
78
|
-
|
|
82
|
+
statusBar.removeElement('editor-status-encoding');
|
|
79
83
|
return;
|
|
80
84
|
}
|
|
81
|
-
|
|
85
|
+
statusBar.setElement('editor-status-encoding', {
|
|
82
86
|
text: supported_encodings_1.SUPPORTED_ENCODINGS[editor.getEncoding()].labelShort,
|
|
83
87
|
alignment: status_bar_1.StatusBarAlignment.RIGHT,
|
|
84
88
|
priority: 10,
|
|
@@ -86,13 +90,13 @@ let EditorContribution = class EditorContribution {
|
|
|
86
90
|
tooltip: nls_1.nls.localizeByDefault('Select Encoding')
|
|
87
91
|
});
|
|
88
92
|
}
|
|
89
|
-
setCursorPositionStatus(editor) {
|
|
93
|
+
setCursorPositionStatus(statusBar, editor) {
|
|
90
94
|
if (!editor) {
|
|
91
|
-
|
|
95
|
+
statusBar.removeElement('editor-status-cursor-position');
|
|
92
96
|
return;
|
|
93
97
|
}
|
|
94
98
|
const { cursor } = editor;
|
|
95
|
-
|
|
99
|
+
statusBar.setElement('editor-status-cursor-position', {
|
|
96
100
|
text: nls_1.nls.localizeByDefault('Ln {0}, Col {1}', cursor.line + 1, editor.getVisibleColumn(cursor)),
|
|
97
101
|
alignment: status_bar_1.StatusBarAlignment.RIGHT,
|
|
98
102
|
priority: 100,
|
|
@@ -160,10 +164,6 @@ let EditorContribution = class EditorContribution {
|
|
|
160
164
|
}
|
|
161
165
|
};
|
|
162
166
|
exports.EditorContribution = EditorContribution;
|
|
163
|
-
tslib_1.__decorate([
|
|
164
|
-
(0, inversify_1.inject)(status_bar_1.StatusBar),
|
|
165
|
-
tslib_1.__metadata("design:type", Object)
|
|
166
|
-
], EditorContribution.prototype, "statusBar", void 0);
|
|
167
167
|
tslib_1.__decorate([
|
|
168
168
|
(0, inversify_1.inject)(editor_manager_1.EditorManager),
|
|
169
169
|
tslib_1.__metadata("design:type", editor_manager_1.EditorManager)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-contribution.js","sourceRoot":"","sources":["../../src/browser/editor-contribution.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,gFAAgF;AAChF,gFAAgF;;;;AAEhF,qDAAiD;AAEjD,4DAA4E;AAC5E,8EAA8F;AAC9F,
|
|
1
|
+
{"version":3,"file":"editor-contribution.js","sourceRoot":"","sources":["../../src/browser/editor-contribution.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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AE;YAC9C,KAAK,EAAE,SAAG,CAAC,iBAAiB,CAAC,YAAY,CAAC;YAC1C,KAAK,EAAE,GAAG;SACb,CAAC,CAAC;QACH,QAAQ,CAAC,kBAAkB,CAAC,oCAA0B,EAAE;YACpD,SAAS,EAAE,+BAAc,CAAC,kBAAkB,CAAC,EAAE;YAC/C,KAAK,EAAE,SAAG,CAAC,iBAAiB,CAAC,aAAa,CAAC;YAC3C,KAAK,EAAE,GAAG;SACb,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AA1JY,gDAAkB;AAGe;IAAzC,IAAA,kBAAM,EAAC,8BAAa,CAAC;sCAAmC,8BAAa;yDAAC;AACf;IAAvD,IAAA,kBAAM,EAAC,4DAA2B,CAAC;sCAA2C,4DAA2B;iEAAC;AAC9D;IAA5C,IAAA,kBAAM,EAAC,0BAAgB,CAAC;sCAA2B,0BAAgB;iDAAC;AAGlD;IADlB,IAAA,kBAAM,EAAC,uCAAiB,CAAC;;6DAC8B;AAGrC;IADlB,IAAA,kBAAM,EAAC,2BAAiB,CAAC;IAAE,IAAA,oBAAQ,GAAE;;6DACkB;6BAX/C,kBAAkB;IAD9B,IAAA,sBAAU,GAAE;GACA,kBAAkB,CA0J9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-frontend-module.d.ts","sourceRoot":"","sources":["../../src/browser/editor-frontend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,mCAAmC,CAAC;AAC3C,OAAO,8DAA8D,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAuB/D,
|
|
1
|
+
{"version":3,"file":"editor-frontend-module.d.ts","sourceRoot":"","sources":["../../src/browser/editor-frontend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,mCAAmC,CAAC;AAC3C,OAAO,8DAA8D,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAuB/D,wBAoDG"}
|
|
@@ -52,7 +52,6 @@ exports.default = new inversify_1.ContainerModule(bind => {
|
|
|
52
52
|
bind(editor_keybinding_1.EditorKeybindingContribution).toSelf().inSingletonScope();
|
|
53
53
|
bind(browser_1.KeybindingContribution).toService(editor_keybinding_1.EditorKeybindingContribution);
|
|
54
54
|
bind(editor_contribution_1.EditorContribution).toSelf().inSingletonScope();
|
|
55
|
-
bind(browser_1.FrontendApplicationContribution).toService(editor_contribution_1.EditorContribution);
|
|
56
55
|
bind(editor_language_status_service_1.EditorLanguageStatusService).toSelf().inSingletonScope();
|
|
57
56
|
bind(editor_linenumber_contribution_1.EditorLineNumberContribution).toSelf().inSingletonScope();
|
|
58
57
|
bind(browser_1.FrontendApplicationContribution).toService(editor_linenumber_contribution_1.EditorLineNumberContribution);
|
|
@@ -62,7 +61,13 @@ exports.default = new inversify_1.ContainerModule(bind => {
|
|
|
62
61
|
bind(navigation_location_updater_1.NavigationLocationUpdater).toSelf().inSingletonScope();
|
|
63
62
|
bind(navigation_location_similarity_1.NavigationLocationSimilarity).toSelf().inSingletonScope();
|
|
64
63
|
bind(browser_2.VariableContribution).to(editor_variable_contribution_1.EditorVariableContribution).inSingletonScope();
|
|
65
|
-
[
|
|
64
|
+
[
|
|
65
|
+
browser_1.FrontendApplicationContribution,
|
|
66
|
+
browser_1.WidgetStatusBarContribution,
|
|
67
|
+
common_1.CommandContribution,
|
|
68
|
+
browser_1.KeybindingContribution,
|
|
69
|
+
common_1.MenuContribution
|
|
70
|
+
].forEach(serviceIdentifier => {
|
|
66
71
|
bind(serviceIdentifier).toService(editor_contribution_1.EditorContribution);
|
|
67
72
|
});
|
|
68
73
|
bind(quick_editor_service_1.QuickEditorService).toSelf().inSingletonScope();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor-frontend-module.js","sourceRoot":"","sources":["../../src/browser/editor-frontend-module.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,gFAAgF;AAChF,gFAAgF;;AAEhF,6CAA2C;AAC3C,wEAAsE;AAEtE,4DAA+D;AAC/D,mDAA+E;AAC/E,
|
|
1
|
+
{"version":3,"file":"editor-frontend-module.js","sourceRoot":"","sources":["../../src/browser/editor-frontend-module.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,gFAAgF;AAChF,gFAAgF;;AAEhF,6CAA2C;AAC3C,wEAAsE;AAEtE,4DAA+D;AAC/D,mDAA+E;AAC/E,qDAA2J;AAC3J,kEAA4E;AAC5E,qDAAwG;AACxG,+DAA2D;AAC3D,+CAAuD;AACvD,qDAA6D;AAC7D,2DAAmE;AACnE,6DAA6D;AAC7D,mEAA8D;AAC9D,qFAAgF;AAChF,0FAAqF;AACrF,0FAAqF;AACrF,gGAA2F;AAC3F,iFAA4E;AAC5E,mFAA2F;AAC3F,iEAA4D;AAC5D,qGAA+F;AAC/F,qFAAgF;AAChF,2DAAsD;AACtD,6FAAsF;AAEtF,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAA,0CAAqB,EAAC,IAAI,CAAC,CAAC;IAE5B,IAAI,CAAC,2CAAmB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACtD,IAAI,CAAC,uBAAa,CAAC,CAAC,SAAS,CAAC,2CAAmB,CAAC,CAAC;IAEnD,IAAI,CAAC,8BAAa,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAChD,IAAI,CAAC,qBAAW,CAAC,CAAC,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AAC,CAAC,gBAAgB,EAAE,CAAC;IAE7E;QACI,yCAA+B;QAC/B,qCAA2B;QAC3B,4BAAmB;QACnB,gCAAsB;QACtB,yBAAgB;KACnB,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE;QAC1B,IAAI,CAAC,iBAAiB,CAAC,CAAC,SAAS,CAAC,wCAAkB,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;IACH,IAAI,CAAC,yCAAkB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACrD,IAAI,CAAC,sCAAuB,CAAC,CAAC,EAAE,CAAC,yCAAkB,CAAC,CAAC;IAErD,IAAI,CAAC,oCAAmB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACtD,IAAI,CAAC,mCAAkB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACrD,IAAI,CAAC,6BAAY,CAAC,CAAC,EAAE,CAAC,oCAAmB,CAAC,CAAC,gBAAgB,EAAE,CAAC,eAAe,CAAC,6BAAY,CAAC,OAAO,CAAC,CAAC;IACpG,IAAI,CAAC,6BAAY,CAAC,CAAC,EAAE,CAAC,mCAAkB,CAAC,CAAC,gBAAgB,EAAE,CAAC,eAAe,CAAC,6BAAY,CAAC,MAAM,CAAC,CAAC;IAElG,IAAI,CAAC,mCAAe,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAElD,IAAI,CAAC,mEAA8B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;AACrE,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.55.0-next.14+d999fe031",
|
|
4
4
|
"description": "Theia - Editor Extension",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.
|
|
7
|
-
"@theia/variable-resolver": "1.
|
|
6
|
+
"@theia/core": "1.55.0-next.14+d999fe031",
|
|
7
|
+
"@theia/variable-resolver": "1.55.0-next.14+d999fe031",
|
|
8
8
|
"tslib": "^2.6.2"
|
|
9
9
|
},
|
|
10
10
|
"publishConfig": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"nyc": {
|
|
47
47
|
"extends": "../../configs/nyc.json"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "d999fe0315a29bc5b154067621dbc1eb180fa567"
|
|
50
50
|
}
|
|
@@ -20,7 +20,9 @@ import { injectable, inject, optional } from '@theia/core/shared/inversify';
|
|
|
20
20
|
import { StatusBarAlignment, StatusBar } from '@theia/core/lib/browser/status-bar/status-bar';
|
|
21
21
|
import {
|
|
22
22
|
FrontendApplicationContribution, DiffUris, DockLayout,
|
|
23
|
-
QuickInputService, KeybindingRegistry, KeybindingContribution, SHELL_TABBAR_CONTEXT_SPLIT, ApplicationShell
|
|
23
|
+
QuickInputService, KeybindingRegistry, KeybindingContribution, SHELL_TABBAR_CONTEXT_SPLIT, ApplicationShell,
|
|
24
|
+
WidgetStatusBarContribution,
|
|
25
|
+
Widget
|
|
24
26
|
} from '@theia/core/lib/browser';
|
|
25
27
|
import { ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
26
28
|
import { CommandHandler, DisposableCollection, MenuContribution, MenuModelRegistry } from '@theia/core';
|
|
@@ -33,9 +35,9 @@ import { EditorWidget } from './editor-widget';
|
|
|
33
35
|
import { EditorLanguageStatusService } from './language-status/editor-language-status-service';
|
|
34
36
|
|
|
35
37
|
@injectable()
|
|
36
|
-
export class EditorContribution implements FrontendApplicationContribution,
|
|
38
|
+
export class EditorContribution implements FrontendApplicationContribution,
|
|
39
|
+
CommandContribution, KeybindingContribution, MenuContribution, WidgetStatusBarContribution<EditorWidget> {
|
|
37
40
|
|
|
38
|
-
@inject(StatusBar) protected readonly statusBar: StatusBar;
|
|
39
41
|
@inject(EditorManager) protected readonly editorManager: EditorManager;
|
|
40
42
|
@inject(EditorLanguageStatusService) protected readonly languageStatusService: EditorLanguageStatusService;
|
|
41
43
|
@inject(ApplicationShell) protected readonly shell: ApplicationShell;
|
|
@@ -48,9 +50,6 @@ export class EditorContribution implements FrontendApplicationContribution, Comm
|
|
|
48
50
|
|
|
49
51
|
onStart(): void {
|
|
50
52
|
this.initEditorContextKeys();
|
|
51
|
-
|
|
52
|
-
this.updateStatusBar();
|
|
53
|
-
this.editorManager.onCurrentEditorChanged(() => this.updateStatusBar());
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
protected initEditorContextKeys(): void {
|
|
@@ -72,33 +71,41 @@ export class EditorContribution implements FrontendApplicationContribution, Comm
|
|
|
72
71
|
}
|
|
73
72
|
|
|
74
73
|
protected readonly toDisposeOnCurrentEditorChanged = new DisposableCollection();
|
|
75
|
-
|
|
74
|
+
|
|
75
|
+
canHandle(widget: Widget): widget is EditorWidget {
|
|
76
|
+
return widget instanceof EditorWidget;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
activate(statusBar: StatusBar, widget: EditorWidget): void {
|
|
76
80
|
this.toDisposeOnCurrentEditorChanged.dispose();
|
|
81
|
+
const editor = widget.editor;
|
|
82
|
+
this.updateLanguageStatus(statusBar, editor);
|
|
83
|
+
this.updateEncodingStatus(statusBar, editor);
|
|
84
|
+
this.setCursorPositionStatus(statusBar, editor);
|
|
85
|
+
this.toDisposeOnCurrentEditorChanged.pushAll([
|
|
86
|
+
editor.onLanguageChanged(() => this.updateLanguageStatus(statusBar, editor)),
|
|
87
|
+
editor.onEncodingChanged(() => this.updateEncodingStatus(statusBar, editor)),
|
|
88
|
+
editor.onCursorPositionChanged(() => this.setCursorPositionStatus(statusBar, editor))
|
|
89
|
+
]);
|
|
90
|
+
}
|
|
77
91
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
this.updateLanguageStatus(
|
|
81
|
-
this.updateEncodingStatus(
|
|
82
|
-
this.setCursorPositionStatus(
|
|
83
|
-
if (editor) {
|
|
84
|
-
this.toDisposeOnCurrentEditorChanged.pushAll([
|
|
85
|
-
editor.onLanguageChanged(() => this.updateLanguageStatus(editor)),
|
|
86
|
-
editor.onEncodingChanged(() => this.updateEncodingStatus(editor)),
|
|
87
|
-
editor.onCursorPositionChanged(() => this.setCursorPositionStatus(editor))
|
|
88
|
-
]);
|
|
89
|
-
}
|
|
92
|
+
deactivate(statusBar: StatusBar): void {
|
|
93
|
+
this.toDisposeOnCurrentEditorChanged.dispose();
|
|
94
|
+
this.updateLanguageStatus(statusBar, undefined);
|
|
95
|
+
this.updateEncodingStatus(statusBar, undefined);
|
|
96
|
+
this.setCursorPositionStatus(statusBar, undefined);
|
|
90
97
|
}
|
|
91
98
|
|
|
92
|
-
protected updateLanguageStatus(editor: TextEditor | undefined): void {
|
|
99
|
+
protected updateLanguageStatus(statusBar: StatusBar, editor: TextEditor | undefined): void {
|
|
93
100
|
this.languageStatusService.updateLanguageStatus(editor);
|
|
94
101
|
}
|
|
95
102
|
|
|
96
|
-
protected updateEncodingStatus(editor: TextEditor | undefined): void {
|
|
103
|
+
protected updateEncodingStatus(statusBar: StatusBar, editor: TextEditor | undefined): void {
|
|
97
104
|
if (!editor) {
|
|
98
|
-
|
|
105
|
+
statusBar.removeElement('editor-status-encoding');
|
|
99
106
|
return;
|
|
100
107
|
}
|
|
101
|
-
|
|
108
|
+
statusBar.setElement('editor-status-encoding', {
|
|
102
109
|
text: SUPPORTED_ENCODINGS[editor.getEncoding()].labelShort,
|
|
103
110
|
alignment: StatusBarAlignment.RIGHT,
|
|
104
111
|
priority: 10,
|
|
@@ -107,13 +114,13 @@ export class EditorContribution implements FrontendApplicationContribution, Comm
|
|
|
107
114
|
});
|
|
108
115
|
}
|
|
109
116
|
|
|
110
|
-
protected setCursorPositionStatus(editor: TextEditor | undefined): void {
|
|
117
|
+
protected setCursorPositionStatus(statusBar: StatusBar, editor: TextEditor | undefined): void {
|
|
111
118
|
if (!editor) {
|
|
112
|
-
|
|
119
|
+
statusBar.removeElement('editor-status-cursor-position');
|
|
113
120
|
return;
|
|
114
121
|
}
|
|
115
122
|
const { cursor } = editor;
|
|
116
|
-
|
|
123
|
+
statusBar.setElement('editor-status-cursor-position', {
|
|
117
124
|
text: nls.localizeByDefault('Ln {0}, Col {1}', cursor.line + 1, editor.getVisibleColumn(cursor)),
|
|
118
125
|
alignment: StatusBarAlignment.RIGHT,
|
|
119
126
|
priority: 100,
|
|
@@ -19,7 +19,7 @@ import '../../src/browser/language-status/editor-language-status.css';
|
|
|
19
19
|
|
|
20
20
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
21
21
|
import { CommandContribution, MenuContribution } from '@theia/core/lib/common';
|
|
22
|
-
import { OpenHandler, WidgetFactory, FrontendApplicationContribution, KeybindingContribution } from '@theia/core/lib/browser';
|
|
22
|
+
import { OpenHandler, WidgetFactory, FrontendApplicationContribution, KeybindingContribution, WidgetStatusBarContribution } from '@theia/core/lib/browser';
|
|
23
23
|
import { VariableContribution } from '@theia/variable-resolver/lib/browser';
|
|
24
24
|
import { EditorManager, EditorAccess, ActiveEditorAccess, CurrentEditorAccess } from './editor-manager';
|
|
25
25
|
import { EditorContribution } from './editor-contribution';
|
|
@@ -59,7 +59,6 @@ export default new ContainerModule(bind => {
|
|
|
59
59
|
bind(KeybindingContribution).toService(EditorKeybindingContribution);
|
|
60
60
|
|
|
61
61
|
bind(EditorContribution).toSelf().inSingletonScope();
|
|
62
|
-
bind(FrontendApplicationContribution).toService(EditorContribution);
|
|
63
62
|
bind(EditorLanguageStatusService).toSelf().inSingletonScope();
|
|
64
63
|
|
|
65
64
|
bind(EditorLineNumberContribution).toSelf().inSingletonScope();
|
|
@@ -73,7 +72,13 @@ export default new ContainerModule(bind => {
|
|
|
73
72
|
|
|
74
73
|
bind(VariableContribution).to(EditorVariableContribution).inSingletonScope();
|
|
75
74
|
|
|
76
|
-
[
|
|
75
|
+
[
|
|
76
|
+
FrontendApplicationContribution,
|
|
77
|
+
WidgetStatusBarContribution,
|
|
78
|
+
CommandContribution,
|
|
79
|
+
KeybindingContribution,
|
|
80
|
+
MenuContribution
|
|
81
|
+
].forEach(serviceIdentifier => {
|
|
77
82
|
bind(serviceIdentifier).toService(EditorContribution);
|
|
78
83
|
});
|
|
79
84
|
bind(QuickEditorService).toSelf().inSingletonScope();
|