@theia/editor 1.67.0-next.13 → 1.67.0-next.56
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 +1 -1
- package/package.json +4 -4
- package/src/browser/editor-contribution.ts +26 -8
- package/src/browser/editor-frontend-module.ts +6 -0
- package/src/browser/index.ts +2 -0
- package/src/browser/split-editor-contribution.ts +46 -0
- package/src/browser/text-editor-split-contribution.ts +50 -0
- package/lib/browser/decorations/editor-decoration-style.d.ts +0 -9
- package/lib/browser/decorations/editor-decoration-style.d.ts.map +0 -1
- package/lib/browser/decorations/editor-decoration-style.js +0 -37
- package/lib/browser/decorations/editor-decoration-style.js.map +0 -1
- package/lib/browser/decorations/editor-decoration.d.ts +0 -119
- package/lib/browser/decorations/editor-decoration.d.ts.map +0 -1
- package/lib/browser/decorations/editor-decoration.js +0 -38
- package/lib/browser/decorations/editor-decoration.js.map +0 -1
- package/lib/browser/decorations/editor-decorator.d.ts +0 -7
- package/lib/browser/decorations/editor-decorator.d.ts.map +0 -1
- package/lib/browser/decorations/editor-decorator.js +0 -39
- package/lib/browser/decorations/editor-decorator.js.map +0 -1
- package/lib/browser/decorations/index.d.ts +0 -4
- package/lib/browser/decorations/index.d.ts.map +0 -1
- package/lib/browser/decorations/index.js +0 -22
- package/lib/browser/decorations/index.js.map +0 -1
- package/lib/browser/diff-navigator.d.ts +0 -10
- package/lib/browser/diff-navigator.d.ts.map +0 -1
- package/lib/browser/diff-navigator.js +0 -20
- package/lib/browser/diff-navigator.js.map +0 -1
- package/lib/browser/editor-command.d.ts +0 -102
- package/lib/browser/editor-command.d.ts.map +0 -1
- package/lib/browser/editor-command.js +0 -402
- package/lib/browser/editor-command.js.map +0 -1
- package/lib/browser/editor-contribution.d.ts +0 -30
- package/lib/browser/editor-contribution.d.ts.map +0 -1
- package/lib/browser/editor-contribution.js +0 -206
- package/lib/browser/editor-contribution.js.map +0 -1
- package/lib/browser/editor-frontend-module.d.ts +0 -6
- package/lib/browser/editor-frontend-module.d.ts.map +0 -1
- package/lib/browser/editor-frontend-module.js +0 -83
- package/lib/browser/editor-frontend-module.js.map +0 -1
- package/lib/browser/editor-keybinding.d.ts +0 -6
- package/lib/browser/editor-keybinding.d.ts.map +0 -1
- package/lib/browser/editor-keybinding.js +0 -51
- package/lib/browser/editor-keybinding.js.map +0 -1
- package/lib/browser/editor-language-quick-pick-service.d.ts +0 -12
- package/lib/browser/editor-language-quick-pick-service.d.ts.map +0 -1
- package/lib/browser/editor-language-quick-pick-service.js +0 -77
- package/lib/browser/editor-language-quick-pick-service.js.map +0 -1
- package/lib/browser/editor-linenumber-contribution.d.ts +0 -16
- package/lib/browser/editor-linenumber-contribution.d.ts.map +0 -1
- package/lib/browser/editor-linenumber-contribution.js +0 -89
- package/lib/browser/editor-linenumber-contribution.js.map +0 -1
- package/lib/browser/editor-manager.d.ts +0 -135
- package/lib/browser/editor-manager.d.ts.map +0 -1
- package/lib/browser/editor-manager.js +0 -472
- package/lib/browser/editor-manager.js.map +0 -1
- package/lib/browser/editor-menu.d.ts +0 -51
- package/lib/browser/editor-menu.d.ts.map +0 -1
- package/lib/browser/editor-menu.js +0 -208
- package/lib/browser/editor-menu.js.map +0 -1
- package/lib/browser/editor-navigation-contribution.d.ts +0 -68
- package/lib/browser/editor-navigation-contribution.d.ts.map +0 -1
- package/lib/browser/editor-navigation-contribution.js +0 -324
- package/lib/browser/editor-navigation-contribution.js.map +0 -1
- package/lib/browser/editor-variable-contribution.d.ts +0 -9
- package/lib/browser/editor-variable-contribution.d.ts.map +0 -1
- package/lib/browser/editor-variable-contribution.js +0 -65
- package/lib/browser/editor-variable-contribution.js.map +0 -1
- package/lib/browser/editor-widget-factory.d.ts +0 -18
- package/lib/browser/editor-widget-factory.d.ts.map +0 -1
- package/lib/browser/editor-widget-factory.js +0 -84
- package/lib/browser/editor-widget-factory.js.map +0 -1
- package/lib/browser/editor-widget.d.ts +0 -28
- package/lib/browser/editor-widget.d.ts.map +0 -1
- package/lib/browser/editor-widget.js +0 -130
- package/lib/browser/editor-widget.js.map +0 -1
- package/lib/browser/editor.d.ts +0 -311
- package/lib/browser/editor.d.ts.map +0 -1
- package/lib/browser/editor.js +0 -104
- package/lib/browser/editor.js.map +0 -1
- package/lib/browser/index.d.ts +0 -10
- package/lib/browser/index.d.ts.map +0 -1
- package/lib/browser/index.js +0 -28
- package/lib/browser/index.js.map +0 -1
- package/lib/browser/language-status/editor-language-status-service.d.ts +0 -78
- package/lib/browser/language-status/editor-language-status-service.d.ts.map +0 -1
- package/lib/browser/language-status/editor-language-status-service.js +0 -244
- package/lib/browser/language-status/editor-language-status-service.js.map +0 -1
- package/lib/browser/navigation/navigation-location-service.d.ts +0 -132
- package/lib/browser/navigation/navigation-location-service.d.ts.map +0 -1
- package/lib/browser/navigation/navigation-location-service.js +0 -352
- package/lib/browser/navigation/navigation-location-service.js.map +0 -1
- package/lib/browser/navigation/navigation-location-service.spec.d.ts +0 -2
- package/lib/browser/navigation/navigation-location-service.spec.d.ts.map +0 -1
- package/lib/browser/navigation/navigation-location-service.spec.js +0 -185
- package/lib/browser/navigation/navigation-location-service.spec.js.map +0 -1
- package/lib/browser/navigation/navigation-location-similarity.d.ts +0 -16
- package/lib/browser/navigation/navigation-location-similarity.d.ts.map +0 -1
- package/lib/browser/navigation/navigation-location-similarity.js +0 -58
- package/lib/browser/navigation/navigation-location-similarity.js.map +0 -1
- package/lib/browser/navigation/navigation-location-similarity.spec.d.ts +0 -2
- package/lib/browser/navigation/navigation-location-similarity.spec.d.ts.map +0 -1
- package/lib/browser/navigation/navigation-location-similarity.spec.js +0 -33
- package/lib/browser/navigation/navigation-location-similarity.spec.js.map +0 -1
- package/lib/browser/navigation/navigation-location-updater.d.ts +0 -36
- package/lib/browser/navigation/navigation-location-updater.d.ts.map +0 -1
- package/lib/browser/navigation/navigation-location-updater.js +0 -206
- package/lib/browser/navigation/navigation-location-updater.js.map +0 -1
- package/lib/browser/navigation/navigation-location-updater.spec.d.ts +0 -2
- package/lib/browser/navigation/navigation-location-updater.spec.d.ts.map +0 -1
- package/lib/browser/navigation/navigation-location-updater.spec.js +0 -178
- package/lib/browser/navigation/navigation-location-updater.spec.js.map +0 -1
- package/lib/browser/navigation/navigation-location.d.ts +0 -192
- package/lib/browser/navigation/navigation-location.d.ts.map +0 -1
- package/lib/browser/navigation/navigation-location.js +0 -301
- package/lib/browser/navigation/navigation-location.js.map +0 -1
- package/lib/browser/navigation/test/mock-navigation-location-updater.d.ts +0 -16
- package/lib/browser/navigation/test/mock-navigation-location-updater.d.ts.map +0 -1
- package/lib/browser/navigation/test/mock-navigation-location-updater.js +0 -39
- package/lib/browser/navigation/test/mock-navigation-location-updater.js.map +0 -1
- package/lib/browser/quick-editor-service.d.ts +0 -17
- package/lib/browser/quick-editor-service.d.ts.map +0 -1
- package/lib/browser/quick-editor-service.js +0 -102
- package/lib/browser/quick-editor-service.js.map +0 -1
- package/lib/browser/undo-redo-service.d.ts +0 -24
- package/lib/browser/undo-redo-service.d.ts.map +0 -1
- package/lib/browser/undo-redo-service.js +0 -106
- package/lib/browser/undo-redo-service.js.map +0 -1
- package/lib/common/editor-generated-preference-schema.d.ts +0 -303
- package/lib/common/editor-generated-preference-schema.d.ts.map +0 -1
- package/lib/common/editor-generated-preference-schema.js +0 -2666
- package/lib/common/editor-generated-preference-schema.js.map +0 -1
- package/lib/common/editor-preferences.d.ts +0 -42
- package/lib/common/editor-preferences.d.ts.map +0 -1
- package/lib/common/editor-preferences.js +0 -179
- package/lib/common/editor-preferences.js.map +0 -1
- package/lib/common/language-selector.d.ts +0 -14
- package/lib/common/language-selector.d.ts.map +0 -1
- package/lib/common/language-selector.js +0 -91
- package/lib/common/language-selector.js.map +0 -1
- package/lib/node/editor-backend-module.d.ts +0 -4
- package/lib/node/editor-backend-module.d.ts.map +0 -1
- package/lib/node/editor-backend-module.js +0 -23
- package/lib/node/editor-backend-module.js.map +0 -1
- package/lib/package.spec.d.ts +0 -1
- package/lib/package.spec.d.ts.map +0 -1
- package/lib/package.spec.js +0 -26
- package/lib/package.spec.js.map +0 -1
|
@@ -1,130 +0,0 @@
|
|
|
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/@lumino/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.isExtractable = true;
|
|
29
|
-
this.addClass('theia-editor');
|
|
30
|
-
if (editor.isReadonly) {
|
|
31
|
-
(0, browser_1.lock)(this.title);
|
|
32
|
-
}
|
|
33
|
-
this.toDispose.push(this.editor);
|
|
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
|
-
this.toDisposeOnTabbarChange.dispose();
|
|
46
|
-
}));
|
|
47
|
-
this.toDispose.push(common_1.Disposable.create(() => {
|
|
48
|
-
if (this.selectionService.selection === this.editor) {
|
|
49
|
-
this.selectionService.selection = undefined;
|
|
50
|
-
}
|
|
51
|
-
}));
|
|
52
|
-
}
|
|
53
|
-
setSelection() {
|
|
54
|
-
if (this.editor.isFocused() && this.selectionService.selection !== this.editor) {
|
|
55
|
-
this.selectionService.selection = this.editor;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
handleVisiblityChanged(isNowVisible) {
|
|
59
|
-
this.editor.handleVisibilityChanged(isNowVisible);
|
|
60
|
-
super.handleVisiblityChanged(isNowVisible);
|
|
61
|
-
}
|
|
62
|
-
get saveable() {
|
|
63
|
-
return this.editor.document;
|
|
64
|
-
}
|
|
65
|
-
getResourceUri() {
|
|
66
|
-
return this.editor.getResourceUri();
|
|
67
|
-
}
|
|
68
|
-
createMoveToUri(resourceUri) {
|
|
69
|
-
return this.editor.createMoveToUri(resourceUri);
|
|
70
|
-
}
|
|
71
|
-
onActivateRequest(msg) {
|
|
72
|
-
super.onActivateRequest(msg);
|
|
73
|
-
this.editor.focus();
|
|
74
|
-
this.selectionService.selection = this.editor;
|
|
75
|
-
}
|
|
76
|
-
onAfterAttach(msg) {
|
|
77
|
-
super.onAfterAttach(msg);
|
|
78
|
-
if (this.isVisible) {
|
|
79
|
-
this.editor.refresh();
|
|
80
|
-
}
|
|
81
|
-
this.checkForTabbarChange();
|
|
82
|
-
}
|
|
83
|
-
checkForTabbarChange() {
|
|
84
|
-
const { parent } = this;
|
|
85
|
-
if (parent instanceof browser_1.DockPanel) {
|
|
86
|
-
const newTabbar = (0, algorithm_1.find)(parent.tabBars(), tabbar => !!tabbar.titles.find(title => title === this.title));
|
|
87
|
-
if (this.currentTabbar !== newTabbar) {
|
|
88
|
-
this.toDisposeOnTabbarChange.dispose();
|
|
89
|
-
const listener = () => this.checkForTabbarChange();
|
|
90
|
-
parent.layoutModified.connect(listener);
|
|
91
|
-
this.toDisposeOnTabbarChange.push(common_1.Disposable.create(() => parent.layoutModified.disconnect(listener)));
|
|
92
|
-
const last = this.currentTabbar;
|
|
93
|
-
this.currentTabbar = newTabbar;
|
|
94
|
-
this.handleTabBarChange(last, newTabbar);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
handleTabBarChange(oldTabBar, newTabBar) {
|
|
99
|
-
const ownSaveable = browser_1.Saveable.get(this);
|
|
100
|
-
const competingEditors = ownSaveable && (newTabBar === null || newTabBar === void 0 ? void 0 : newTabBar.titles.filter(title => title !== this.title
|
|
101
|
-
&& (title.owner instanceof EditorWidget)
|
|
102
|
-
&& title.owner.editor.uri.isEqual(this.editor.uri)
|
|
103
|
-
&& browser_1.Saveable.get(title.owner) === ownSaveable));
|
|
104
|
-
competingEditors === null || competingEditors === void 0 ? void 0 : competingEditors.forEach(title => title.owner.close());
|
|
105
|
-
}
|
|
106
|
-
onAfterShow(msg) {
|
|
107
|
-
super.onAfterShow(msg);
|
|
108
|
-
this.editor.refresh();
|
|
109
|
-
}
|
|
110
|
-
onResize(msg) {
|
|
111
|
-
if (msg.width < 0 || msg.height < 0) {
|
|
112
|
-
this.editor.resizeToFit();
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
this.editor.setSize(msg);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
storeState() {
|
|
119
|
-
var _a;
|
|
120
|
-
return ((_a = this.getResourceUri()) === null || _a === void 0 ? void 0 : _a.scheme) === common_1.UNTITLED_SCHEME ? undefined : this.editor.storeViewState();
|
|
121
|
-
}
|
|
122
|
-
restoreState(oldState) {
|
|
123
|
-
this.editor.restoreViewState(oldState);
|
|
124
|
-
}
|
|
125
|
-
get onDispose() {
|
|
126
|
-
return this.toDispose.onDispose;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
exports.EditorWidget = EditorWidget;
|
|
130
|
-
//# sourceMappingURL=editor-widget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editor-widget.js","sourceRoot":"","sources":["../../src/browser/editor-widget.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAEhF,mDAAoH;AACpH,qDAAiL;AAEjL,oEAA4D;AAG5D,MAAa,YAAa,SAAQ,oBAAU;IAKxC,YACa,MAAkB,EACR,gBAAkC;QAErD,KAAK,CAAC,MAAM,CAAC,CAAC;QAHL,WAAM,GAAN,MAAM,CAAY;QACR,qBAAgB,GAAhB,gBAAgB,CAAkB;QAL/C,4BAAuB,GAAG,IAAI,6BAAoB,EAAE,CAAC;QA+B/D,kBAAa,GAAY,IAAI,CAAC;QAvB1B,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;QAC9B,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;YACpB,IAAA,cAAI,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC;QACD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,GAAG,EAAE,C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1B,CAAC;IAEkB,QAAQ,CAAC,GAAyB;QACjD,IAAI,GAAG,CAAC,KAAK,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAClC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;QAC9B,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC7B,CAAC;IACL,CAAC;IAED,UAAU;;QACN,OAAO,CAAA,MAAA,IAAI,CAAC,cAAc,EAAE,0CAAE,MAAM,MAAK,wBAAe,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;IACxG,CAAC;IAED,YAAY,CAAC,QAAgB;QACzB,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;IACpC,CAAC;CAEJ;AA3HD,oCA2HC"}
|
package/lib/browser/editor.d.ts
DELETED
|
@@ -1,311 +0,0 @@
|
|
|
1
|
-
import { Position, Range, Location } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
2
|
-
import * as lsp from '@theia/core/shared/vscode-languageserver-protocol';
|
|
3
|
-
import URI from '@theia/core/lib/common/uri';
|
|
4
|
-
import { Event, Disposable, TextDocumentContentChangeDelta, Reference } from '@theia/core/lib/common';
|
|
5
|
-
import { Saveable, Navigatable, Widget } from '@theia/core/lib/browser';
|
|
6
|
-
import { EditorDecoration } from './decorations/editor-decoration';
|
|
7
|
-
import { MarkdownString } from '@theia/core/lib/common/markdown-rendering';
|
|
8
|
-
export { Position, Range, Location };
|
|
9
|
-
export declare const TextEditorProvider: unique symbol;
|
|
10
|
-
export type TextEditorProvider = (uri: URI) => Promise<TextEditor>;
|
|
11
|
-
export interface TextEditorDocument extends lsp.TextDocument, Saveable, Disposable {
|
|
12
|
-
/**
|
|
13
|
-
* @param lineNumber 1-based
|
|
14
|
-
*/
|
|
15
|
-
getLineContent(lineNumber: number): string;
|
|
16
|
-
/**
|
|
17
|
-
* @param lineNumber 1-based
|
|
18
|
-
*/
|
|
19
|
-
getLineMaxColumn(lineNumber: number): number;
|
|
20
|
-
/**
|
|
21
|
-
* @since 1.8.0
|
|
22
|
-
*/
|
|
23
|
-
findMatches?(options: FindMatchesOptions): FindMatch[];
|
|
24
|
-
/**
|
|
25
|
-
* Creates a valid position. If the position is outside of the backing document, this method will return a position that is ensured to be inside the document and valid.
|
|
26
|
-
* For example, when the `position` is `{ line: 1, character: 0 }` and the document is empty, this method will return with `{ line: 0, character: 0 }`.
|
|
27
|
-
*/
|
|
28
|
-
toValidPosition(position: Position): Position;
|
|
29
|
-
/**
|
|
30
|
-
* Creates a valid range. If the `range` argument is outside of the document, this method will return with a new range that does not exceed the boundaries of the document.
|
|
31
|
-
* For example, if the argument is `{ start: { line: 1, character: 0 }, end: { line: 1, character: 0 } }` and the document is empty, the return value is
|
|
32
|
-
* `{ start: { line: 0, character: 0 }, end: { line: 0, character: 0 } }`.
|
|
33
|
-
*/
|
|
34
|
-
toValidRange(range: Range): Range;
|
|
35
|
-
}
|
|
36
|
-
export { TextDocumentContentChangeDelta };
|
|
37
|
-
export interface TextDocumentChangeEvent {
|
|
38
|
-
readonly document: TextEditorDocument;
|
|
39
|
-
readonly contentChanges: TextDocumentContentChangeDelta[];
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Type of hit element with the mouse in the editor.
|
|
43
|
-
* Copied from monaco editor.
|
|
44
|
-
*/
|
|
45
|
-
export declare enum MouseTargetType {
|
|
46
|
-
/**
|
|
47
|
-
* Mouse is on top of an unknown element.
|
|
48
|
-
*/
|
|
49
|
-
UNKNOWN = 0,
|
|
50
|
-
/**
|
|
51
|
-
* Mouse is on top of the textarea used for input.
|
|
52
|
-
*/
|
|
53
|
-
TEXTAREA = 1,
|
|
54
|
-
/**
|
|
55
|
-
* Mouse is on top of the glyph margin
|
|
56
|
-
*/
|
|
57
|
-
GUTTER_GLYPH_MARGIN = 2,
|
|
58
|
-
/**
|
|
59
|
-
* Mouse is on top of the line numbers
|
|
60
|
-
*/
|
|
61
|
-
GUTTER_LINE_NUMBERS = 3,
|
|
62
|
-
/**
|
|
63
|
-
* Mouse is on top of the line decorations
|
|
64
|
-
*/
|
|
65
|
-
GUTTER_LINE_DECORATIONS = 4,
|
|
66
|
-
/**
|
|
67
|
-
* Mouse is on top of the whitespace left in the gutter by a view zone.
|
|
68
|
-
*/
|
|
69
|
-
GUTTER_VIEW_ZONE = 5,
|
|
70
|
-
/**
|
|
71
|
-
* Mouse is on top of text in the content.
|
|
72
|
-
*/
|
|
73
|
-
CONTENT_TEXT = 6,
|
|
74
|
-
/**
|
|
75
|
-
* Mouse is on top of empty space in the content (e.g. after line text or below last line)
|
|
76
|
-
*/
|
|
77
|
-
CONTENT_EMPTY = 7,
|
|
78
|
-
/**
|
|
79
|
-
* Mouse is on top of a view zone in the content.
|
|
80
|
-
*/
|
|
81
|
-
CONTENT_VIEW_ZONE = 8,
|
|
82
|
-
/**
|
|
83
|
-
* Mouse is on top of a content widget.
|
|
84
|
-
*/
|
|
85
|
-
CONTENT_WIDGET = 9,
|
|
86
|
-
/**
|
|
87
|
-
* Mouse is on top of the decorations overview ruler.
|
|
88
|
-
*/
|
|
89
|
-
OVERVIEW_RULER = 10,
|
|
90
|
-
/**
|
|
91
|
-
* Mouse is on top of a scrollbar.
|
|
92
|
-
*/
|
|
93
|
-
SCROLLBAR = 11,
|
|
94
|
-
/**
|
|
95
|
-
* Mouse is on top of an overlay widget.
|
|
96
|
-
*/
|
|
97
|
-
OVERLAY_WIDGET = 12,
|
|
98
|
-
/**
|
|
99
|
-
* Mouse is outside of the editor.
|
|
100
|
-
*/
|
|
101
|
-
OUTSIDE_EDITOR = 13
|
|
102
|
-
}
|
|
103
|
-
export interface MouseTarget {
|
|
104
|
-
/**
|
|
105
|
-
* The target element
|
|
106
|
-
*/
|
|
107
|
-
readonly element?: Element;
|
|
108
|
-
/**
|
|
109
|
-
* The target type
|
|
110
|
-
*/
|
|
111
|
-
readonly type: MouseTargetType;
|
|
112
|
-
/**
|
|
113
|
-
* The 'approximate' editor position
|
|
114
|
-
*/
|
|
115
|
-
readonly position?: Position;
|
|
116
|
-
/**
|
|
117
|
-
* Desired mouse column (e.g. when position.column gets clamped to text length -- clicking after text on a line).
|
|
118
|
-
*/
|
|
119
|
-
readonly mouseColumn: number;
|
|
120
|
-
/**
|
|
121
|
-
* The 'approximate' editor range
|
|
122
|
-
*/
|
|
123
|
-
readonly range?: Range;
|
|
124
|
-
/**
|
|
125
|
-
* Some extra detail.
|
|
126
|
-
*/
|
|
127
|
-
readonly detail: any;
|
|
128
|
-
}
|
|
129
|
-
export interface EditorMouseEvent {
|
|
130
|
-
readonly event: MouseEvent;
|
|
131
|
-
readonly target: MouseTarget;
|
|
132
|
-
}
|
|
133
|
-
export declare const enum EncodingMode {
|
|
134
|
-
/**
|
|
135
|
-
* Instructs the encoding support to encode the current input with the provided encoding
|
|
136
|
-
*/
|
|
137
|
-
Encode = 0,
|
|
138
|
-
/**
|
|
139
|
-
* Instructs the encoding support to decode the current input with the provided encoding
|
|
140
|
-
*/
|
|
141
|
-
Decode = 1
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Options for searching in an editor.
|
|
145
|
-
*/
|
|
146
|
-
export interface FindMatchesOptions {
|
|
147
|
-
/**
|
|
148
|
-
* The string used to search. If it is a regular expression, set `isRegex` to true.
|
|
149
|
-
*/
|
|
150
|
-
searchString: string;
|
|
151
|
-
/**
|
|
152
|
-
* Used to indicate that `searchString` is a regular expression.
|
|
153
|
-
*/
|
|
154
|
-
isRegex: boolean;
|
|
155
|
-
/**
|
|
156
|
-
* Force the matching to match lower/upper case exactly.
|
|
157
|
-
*/
|
|
158
|
-
matchCase: boolean;
|
|
159
|
-
/**
|
|
160
|
-
* Force the matching to match entire words only.
|
|
161
|
-
*/
|
|
162
|
-
matchWholeWord: boolean;
|
|
163
|
-
/**
|
|
164
|
-
* Limit the number of results.
|
|
165
|
-
*/
|
|
166
|
-
limitResultCount?: number;
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Representation of a find match.
|
|
170
|
-
*/
|
|
171
|
-
export interface FindMatch {
|
|
172
|
-
/**
|
|
173
|
-
* The textual match.
|
|
174
|
-
*/
|
|
175
|
-
readonly matches: string[];
|
|
176
|
-
/**
|
|
177
|
-
* The range for the given match.
|
|
178
|
-
*/
|
|
179
|
-
readonly range: Range;
|
|
180
|
-
}
|
|
181
|
-
export interface TextEditor extends Disposable, TextEditorSelection, Navigatable {
|
|
182
|
-
readonly node: HTMLElement;
|
|
183
|
-
readonly uri: URI;
|
|
184
|
-
readonly isReadonly: boolean | MarkdownString;
|
|
185
|
-
readonly onDidChangeReadOnly: Event<boolean | MarkdownString>;
|
|
186
|
-
readonly document: TextEditorDocument;
|
|
187
|
-
readonly onDocumentContentChanged: Event<TextDocumentChangeEvent>;
|
|
188
|
-
cursor: Position;
|
|
189
|
-
readonly onCursorPositionChanged: Event<Position>;
|
|
190
|
-
selection: Selection;
|
|
191
|
-
readonly onSelectionChanged: Event<Selection>;
|
|
192
|
-
/**
|
|
193
|
-
* The text editor should be revealed,
|
|
194
|
-
* otherwise it won't receive the focus.
|
|
195
|
-
*/
|
|
196
|
-
focus(): void;
|
|
197
|
-
blur(): void;
|
|
198
|
-
isFocused(): boolean;
|
|
199
|
-
readonly onFocusChanged: Event<boolean>;
|
|
200
|
-
readonly onMouseDown: Event<EditorMouseEvent>;
|
|
201
|
-
readonly onScrollChanged: Event<void>;
|
|
202
|
-
getVisibleRanges(): Range[];
|
|
203
|
-
revealPosition(position: Position, options?: RevealPositionOptions): void;
|
|
204
|
-
revealRange(range: Range, options?: RevealRangeOptions): void;
|
|
205
|
-
/**
|
|
206
|
-
* Rerender the editor.
|
|
207
|
-
*/
|
|
208
|
-
refresh(): void;
|
|
209
|
-
/**
|
|
210
|
-
* Resize the editor to fit its node.
|
|
211
|
-
*/
|
|
212
|
-
resizeToFit(): void;
|
|
213
|
-
setSize(size: Dimension): void;
|
|
214
|
-
/**
|
|
215
|
-
* Applies given new decorations, and removes old decorations identified by ids.
|
|
216
|
-
*
|
|
217
|
-
* @returns identifiers of applied decorations, which can be removed in next call.
|
|
218
|
-
*/
|
|
219
|
-
deltaDecorations(params: DeltaDecorationParams): string[];
|
|
220
|
-
/**
|
|
221
|
-
* Gets all the decorations for the lines between `startLineNumber` and `endLineNumber` as an array.
|
|
222
|
-
* @param startLineNumber The start line number.
|
|
223
|
-
* @param endLineNumber The end line number.
|
|
224
|
-
* @return An array with the decorations.
|
|
225
|
-
*/
|
|
226
|
-
getLinesDecorations(startLineNumber: number, endLineNumber: number): EditorDecoration[];
|
|
227
|
-
getVisibleColumn(position: Position): number;
|
|
228
|
-
/**
|
|
229
|
-
* Replaces the text of source given in ReplaceTextParams.
|
|
230
|
-
* @param params: ReplaceTextParams
|
|
231
|
-
*/
|
|
232
|
-
replaceText(params: ReplaceTextParams): Promise<boolean>;
|
|
233
|
-
/**
|
|
234
|
-
* Execute edits on the editor.
|
|
235
|
-
* @param edits: edits created with `lsp.TextEdit.replace`, `lsp.TextEdit.insert`, `lsp.TextEdit.del`
|
|
236
|
-
*/
|
|
237
|
-
executeEdits(edits: lsp.TextEdit[]): boolean;
|
|
238
|
-
storeViewState(): object;
|
|
239
|
-
restoreViewState(state: object): void;
|
|
240
|
-
detectLanguage(): void;
|
|
241
|
-
setLanguage(languageId: string): void;
|
|
242
|
-
readonly onLanguageChanged: Event<string>;
|
|
243
|
-
/**
|
|
244
|
-
* Gets the encoding of the input if known.
|
|
245
|
-
*/
|
|
246
|
-
getEncoding(): string;
|
|
247
|
-
/**
|
|
248
|
-
* Sets the encoding for the input for saving.
|
|
249
|
-
*/
|
|
250
|
-
setEncoding(encoding: string, mode: EncodingMode): void;
|
|
251
|
-
readonly onEncodingChanged: Event<string>;
|
|
252
|
-
shouldDisplayDirtyDiff(): boolean;
|
|
253
|
-
/**
|
|
254
|
-
* This event is optional iff {@link shouldDisplayDirtyDiff} always returns the same result for this editor instance.
|
|
255
|
-
*/
|
|
256
|
-
readonly onShouldDisplayDirtyDiffChanged?: Event<boolean>;
|
|
257
|
-
handleVisibilityChanged(nowVisible: boolean): void;
|
|
258
|
-
}
|
|
259
|
-
export interface Selection extends Range {
|
|
260
|
-
direction: 'ltr' | 'rtl';
|
|
261
|
-
}
|
|
262
|
-
export interface Dimension {
|
|
263
|
-
width: number;
|
|
264
|
-
height: number;
|
|
265
|
-
}
|
|
266
|
-
export interface TextEditorSelection {
|
|
267
|
-
uri: URI;
|
|
268
|
-
cursor?: Position;
|
|
269
|
-
selection?: Range;
|
|
270
|
-
}
|
|
271
|
-
export interface RevealPositionOptions {
|
|
272
|
-
vertical: 'auto' | 'center' | 'centerIfOutsideViewport';
|
|
273
|
-
horizontal?: boolean;
|
|
274
|
-
}
|
|
275
|
-
export interface RevealRangeOptions {
|
|
276
|
-
at: 'auto' | 'center' | 'top' | 'centerIfOutsideViewport';
|
|
277
|
-
}
|
|
278
|
-
export interface DeltaDecorationParams {
|
|
279
|
-
oldDecorations: string[];
|
|
280
|
-
newDecorations: EditorDecoration[];
|
|
281
|
-
}
|
|
282
|
-
export interface ReplaceTextParams {
|
|
283
|
-
/**
|
|
284
|
-
* the source to edit
|
|
285
|
-
*/
|
|
286
|
-
source: string;
|
|
287
|
-
/**
|
|
288
|
-
* the replace operations
|
|
289
|
-
*/
|
|
290
|
-
replaceOperations: ReplaceOperation[];
|
|
291
|
-
}
|
|
292
|
-
export interface ReplaceOperation {
|
|
293
|
-
/**
|
|
294
|
-
* the position that shall be replaced
|
|
295
|
-
*/
|
|
296
|
-
range: Range;
|
|
297
|
-
/**
|
|
298
|
-
* the text to replace with
|
|
299
|
-
*/
|
|
300
|
-
text: string;
|
|
301
|
-
}
|
|
302
|
-
export declare namespace TextEditorSelection {
|
|
303
|
-
function is(arg: unknown): arg is TextEditorSelection;
|
|
304
|
-
}
|
|
305
|
-
export declare namespace CustomEditorWidget {
|
|
306
|
-
function is(arg: Widget | undefined): arg is CustomEditorWidget;
|
|
307
|
-
}
|
|
308
|
-
export interface CustomEditorWidget extends Widget {
|
|
309
|
-
readonly modelRef: Reference<any>;
|
|
310
|
-
}
|
|
311
|
-
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../src/browser/editor.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC9F,OAAO,KAAK,GAAG,MAAM,mDAAmD,CAAC;AACzE,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,8BAA8B,EAAE,SAAS,EAAY,MAAM,wBAAwB,CAAC;AAChH,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAE3E,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;AAErC,eAAO,MAAM,kBAAkB,eAA+B,CAAC;AAC/D,MAAM,MAAM,kBAAkB,GAAG,CAAC,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC;AAEnE,MAAM,WAAW,kBAAmB,SAAQ,GAAG,CAAC,YAAY,EAAE,QAAQ,EAAE,UAAU;IAC9E;;OAEG;IACH,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3C;;OAEG;IACH,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7C;;OAE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WAAW,gBAAgB;IAC7B;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,yBAAiB,mBAAmB,CAAC;IACjC,SAAgB,EAAE,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,mBAAmB,CAE3D;CACJ;AAED,yBAAiB,kBAAkB,CAAC;IAChC,SAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,GAAG,IAAI,kBAAkB,CAErE;CACJ;AAED,MAAM,WAAW,kBAAmB,SAAQ,MAAM;IAE9C,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;CACrC"}
|
package/lib/browser/editor.js
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.CustomEditorWidget = exports.TextEditorSelection = exports.MouseTargetType = exports.TextDocumentContentChangeDelta = exports.TextEditorProvider = exports.Location = exports.Range = exports.Position = void 0;
|
|
19
|
-
const vscode_languageserver_protocol_1 = require("@theia/core/shared/vscode-languageserver-protocol");
|
|
20
|
-
Object.defineProperty(exports, "Position", { enumerable: true, get: function () { return vscode_languageserver_protocol_1.Position; } });
|
|
21
|
-
Object.defineProperty(exports, "Range", { enumerable: true, get: function () { return vscode_languageserver_protocol_1.Range; } });
|
|
22
|
-
Object.defineProperty(exports, "Location", { enumerable: true, get: function () { return vscode_languageserver_protocol_1.Location; } });
|
|
23
|
-
const uri_1 = require("@theia/core/lib/common/uri");
|
|
24
|
-
const common_1 = require("@theia/core/lib/common");
|
|
25
|
-
Object.defineProperty(exports, "TextDocumentContentChangeDelta", { enumerable: true, get: function () { return common_1.TextDocumentContentChangeDelta; } });
|
|
26
|
-
exports.TextEditorProvider = Symbol('TextEditorProvider');
|
|
27
|
-
/**
|
|
28
|
-
* Type of hit element with the mouse in the editor.
|
|
29
|
-
* Copied from monaco editor.
|
|
30
|
-
*/
|
|
31
|
-
var MouseTargetType;
|
|
32
|
-
(function (MouseTargetType) {
|
|
33
|
-
/**
|
|
34
|
-
* Mouse is on top of an unknown element.
|
|
35
|
-
*/
|
|
36
|
-
MouseTargetType[MouseTargetType["UNKNOWN"] = 0] = "UNKNOWN";
|
|
37
|
-
/**
|
|
38
|
-
* Mouse is on top of the textarea used for input.
|
|
39
|
-
*/
|
|
40
|
-
MouseTargetType[MouseTargetType["TEXTAREA"] = 1] = "TEXTAREA";
|
|
41
|
-
/**
|
|
42
|
-
* Mouse is on top of the glyph margin
|
|
43
|
-
*/
|
|
44
|
-
MouseTargetType[MouseTargetType["GUTTER_GLYPH_MARGIN"] = 2] = "GUTTER_GLYPH_MARGIN";
|
|
45
|
-
/**
|
|
46
|
-
* Mouse is on top of the line numbers
|
|
47
|
-
*/
|
|
48
|
-
MouseTargetType[MouseTargetType["GUTTER_LINE_NUMBERS"] = 3] = "GUTTER_LINE_NUMBERS";
|
|
49
|
-
/**
|
|
50
|
-
* Mouse is on top of the line decorations
|
|
51
|
-
*/
|
|
52
|
-
MouseTargetType[MouseTargetType["GUTTER_LINE_DECORATIONS"] = 4] = "GUTTER_LINE_DECORATIONS";
|
|
53
|
-
/**
|
|
54
|
-
* Mouse is on top of the whitespace left in the gutter by a view zone.
|
|
55
|
-
*/
|
|
56
|
-
MouseTargetType[MouseTargetType["GUTTER_VIEW_ZONE"] = 5] = "GUTTER_VIEW_ZONE";
|
|
57
|
-
/**
|
|
58
|
-
* Mouse is on top of text in the content.
|
|
59
|
-
*/
|
|
60
|
-
MouseTargetType[MouseTargetType["CONTENT_TEXT"] = 6] = "CONTENT_TEXT";
|
|
61
|
-
/**
|
|
62
|
-
* Mouse is on top of empty space in the content (e.g. after line text or below last line)
|
|
63
|
-
*/
|
|
64
|
-
MouseTargetType[MouseTargetType["CONTENT_EMPTY"] = 7] = "CONTENT_EMPTY";
|
|
65
|
-
/**
|
|
66
|
-
* Mouse is on top of a view zone in the content.
|
|
67
|
-
*/
|
|
68
|
-
MouseTargetType[MouseTargetType["CONTENT_VIEW_ZONE"] = 8] = "CONTENT_VIEW_ZONE";
|
|
69
|
-
/**
|
|
70
|
-
* Mouse is on top of a content widget.
|
|
71
|
-
*/
|
|
72
|
-
MouseTargetType[MouseTargetType["CONTENT_WIDGET"] = 9] = "CONTENT_WIDGET";
|
|
73
|
-
/**
|
|
74
|
-
* Mouse is on top of the decorations overview ruler.
|
|
75
|
-
*/
|
|
76
|
-
MouseTargetType[MouseTargetType["OVERVIEW_RULER"] = 10] = "OVERVIEW_RULER";
|
|
77
|
-
/**
|
|
78
|
-
* Mouse is on top of a scrollbar.
|
|
79
|
-
*/
|
|
80
|
-
MouseTargetType[MouseTargetType["SCROLLBAR"] = 11] = "SCROLLBAR";
|
|
81
|
-
/**
|
|
82
|
-
* Mouse is on top of an overlay widget.
|
|
83
|
-
*/
|
|
84
|
-
MouseTargetType[MouseTargetType["OVERLAY_WIDGET"] = 12] = "OVERLAY_WIDGET";
|
|
85
|
-
/**
|
|
86
|
-
* Mouse is outside of the editor.
|
|
87
|
-
*/
|
|
88
|
-
MouseTargetType[MouseTargetType["OUTSIDE_EDITOR"] = 13] = "OUTSIDE_EDITOR";
|
|
89
|
-
})(MouseTargetType || (exports.MouseTargetType = MouseTargetType = {}));
|
|
90
|
-
var TextEditorSelection;
|
|
91
|
-
(function (TextEditorSelection) {
|
|
92
|
-
function is(arg) {
|
|
93
|
-
return (0, common_1.isObject)(arg) && arg.uri instanceof uri_1.default;
|
|
94
|
-
}
|
|
95
|
-
TextEditorSelection.is = is;
|
|
96
|
-
})(TextEditorSelection || (exports.TextEditorSelection = TextEditorSelection = {}));
|
|
97
|
-
var CustomEditorWidget;
|
|
98
|
-
(function (CustomEditorWidget) {
|
|
99
|
-
function is(arg) {
|
|
100
|
-
return !!arg && 'modelRef' in arg;
|
|
101
|
-
}
|
|
102
|
-
CustomEditorWidget.is = is;
|
|
103
|
-
})(CustomEditorWidget || (exports.CustomEditorWidget = CustomEditorWidget = {}));
|
|
104
|
-
//# sourceMappingURL=editor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editor.js","sourceRoot":"","sources":["../../src/browser/editor.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,sGAA8F;AAQrF,yFARA,yCAAQ,OAQA;AAAE,sFARA,sCAAK,OAQA;AAAE,yFARA,yCAAQ,OAQA;AANlC,oDAA6C;AAC7C,mDAAgH;AAqCvG,+GArCmB,uCAA8B,OAqCnB;AA9B1B,QAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAC;AAqC/D;;;GAGG;AACH,IAAY,eAyDX;AAzDD,WAAY,eAAe;IACvB;;OAEG;IACH,2DAAW,CAAA;IACX;;OAEG;IACH,6DAAY,CAAA;IACZ;;OAEG;IACH,mFAAuB,CAAA;IACvB;;OAEG;IACH,mFAAuB,CAAA;IACvB;;OAEG;IACH,2FAA2B,CAAA;IAC3B;;OAEG;IACH,6EAAoB,CAAA;IACpB;;OAEG;IACH,qEAAgB,CAAA;IAChB;;OAEG;IACH,uEAAiB,CAAA;IACjB;;OAEG;IACH,+EAAqB,CAAA;IACrB;;OAEG;IACH,yEAAkB,CAAA;IAClB;;OAEG;IACH,0EAAmB,CAAA;IACnB;;OAEG;IACH,gEAAc,CAAA;IACd;;OAEG;IACH,0EAAmB,CAAA;IACnB;;OAEG;IACH,0EAAmB,CAAA;AACvB,CAAC,EAzDW,eAAe,+BAAf,eAAe,QAyD1B;AA8OD,IAAiB,mBAAmB,CAInC;AAJD,WAAiB,mBAAmB;IAChC,SAAgB,EAAE,CAAC,GAAY;QAC3B,OAAO,IAAA,iBAAQ,EAAsB,GAAG,CAAC,IAAI,GAAG,CAAC,GAAG,YAAY,aAAG,CAAC;IACxE,CAAC;IAFe,sBAAE,KAEjB,CAAA;AACL,CAAC,EAJgB,mBAAmB,mCAAnB,mBAAmB,QAInC;AAED,IAAiB,kBAAkB,CAIlC;AAJD,WAAiB,kBAAkB;IAC/B,SAAgB,EAAE,CAAC,GAAuB;QACtC,OAAO,CAAC,CAAC,GAAG,IAAI,UAAU,IAAI,GAAG,CAAC;IACtC,CAAC;IAFe,qBAAE,KAEjB,CAAA;AACL,CAAC,EAJgB,kBAAkB,kCAAlB,kBAAkB,QAIlC"}
|
package/lib/browser/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './diff-navigator';
|
|
2
|
-
export * from './editor';
|
|
3
|
-
export * from './editor-widget';
|
|
4
|
-
export * from './editor-manager';
|
|
5
|
-
export * from './editor-command';
|
|
6
|
-
export * from './editor-menu';
|
|
7
|
-
export * from './editor-frontend-module';
|
|
8
|
-
export * from './decorations';
|
|
9
|
-
export * from './editor-linenumber-contribution';
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAgBA,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,kCAAkC,CAAC"}
|
package/lib/browser/index.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const tslib_1 = require("tslib");
|
|
19
|
-
tslib_1.__exportStar(require("./diff-navigator"), exports);
|
|
20
|
-
tslib_1.__exportStar(require("./editor"), exports);
|
|
21
|
-
tslib_1.__exportStar(require("./editor-widget"), exports);
|
|
22
|
-
tslib_1.__exportStar(require("./editor-manager"), exports);
|
|
23
|
-
tslib_1.__exportStar(require("./editor-command"), exports);
|
|
24
|
-
tslib_1.__exportStar(require("./editor-menu"), exports);
|
|
25
|
-
tslib_1.__exportStar(require("./editor-frontend-module"), exports);
|
|
26
|
-
tslib_1.__exportStar(require("./decorations"), exports);
|
|
27
|
-
tslib_1.__exportStar(require("./editor-linenumber-contribution"), exports);
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
package/lib/browser/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.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,2DAAiC;AACjC,mDAAyB;AACzB,0DAAgC;AAChC,2DAAiC;AACjC,2DAAiC;AACjC,wDAA8B;AAC9B,mEAAyC;AACzC,wDAA8B;AAC9B,2EAAiD"}
|