@theia/editor 1.77.0-next.0 → 1.77.0-next.101
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/decorations/editor-decoration-style.js +4 -8
- package/lib/browser/decorations/editor-decoration-style.js.map +1 -1
- package/lib/browser/decorations/editor-decoration.js +6 -9
- package/lib/browser/decorations/editor-decoration.js.map +1 -1
- package/lib/browser/decorations/editor-decorator.d.ts +2 -2
- package/lib/browser/decorations/editor-decorator.d.ts.map +1 -1
- package/lib/browser/decorations/editor-decorator.js +5 -8
- package/lib/browser/decorations/editor-decorator.js.map +1 -1
- package/lib/browser/decorations/index.d.ts +3 -3
- package/lib/browser/decorations/index.d.ts.map +1 -1
- package/lib/browser/decorations/index.js +3 -6
- package/lib/browser/decorations/index.js.map +1 -1
- package/lib/browser/diff-navigator.d.ts +1 -1
- package/lib/browser/diff-navigator.d.ts.map +1 -1
- package/lib/browser/diff-navigator.js +1 -4
- package/lib/browser/diff-navigator.js.map +1 -1
- package/lib/browser/editor-command.d.ts +2 -2
- package/lib/browser/editor-command.d.ts.map +1 -1
- package/lib/browser/editor-command.js +88 -104
- package/lib/browser/editor-command.js.map +1 -1
- package/lib/browser/editor-contribution.d.ts +5 -5
- package/lib/browser/editor-contribution.d.ts.map +1 -1
- package/lib/browser/editor-contribution.js +72 -81
- package/lib/browser/editor-contribution.js.map +1 -1
- package/lib/browser/editor-formatter-service.d.ts +1 -1
- package/lib/browser/editor-formatter-service.d.ts.map +1 -1
- package/lib/browser/editor-formatter-service.js +1 -4
- package/lib/browser/editor-formatter-service.js.map +1 -1
- package/lib/browser/editor-frontend-module.js +68 -70
- package/lib/browser/editor-frontend-module.js.map +1 -1
- package/lib/browser/editor-keybinding.js +16 -19
- package/lib/browser/editor-keybinding.js.map +1 -1
- package/lib/browser/editor-language-quick-pick-service.js +21 -27
- package/lib/browser/editor-language-quick-pick-service.js.map +1 -1
- package/lib/browser/editor-linenumber-contribution.d.ts +3 -3
- package/lib/browser/editor-linenumber-contribution.d.ts.map +1 -1
- package/lib/browser/editor-linenumber-contribution.js +22 -28
- package/lib/browser/editor-linenumber-contribution.js.map +1 -1
- package/lib/browser/editor-manager.d.ts +3 -3
- package/lib/browser/editor-manager.d.ts.map +1 -1
- package/lib/browser/editor-manager.js +59 -71
- package/lib/browser/editor-manager.js.map +1 -1
- package/lib/browser/editor-menu.js +76 -79
- package/lib/browser/editor-menu.js.map +1 -1
- package/lib/browser/editor-navigation-contribution.d.ts +4 -4
- package/lib/browser/editor-navigation-contribution.d.ts.map +1 -1
- package/lib/browser/editor-navigation-contribution.js +60 -72
- package/lib/browser/editor-navigation-contribution.js.map +1 -1
- package/lib/browser/editor-variable-contribution.d.ts +2 -2
- package/lib/browser/editor-variable-contribution.d.ts.map +1 -1
- package/lib/browser/editor-variable-contribution.js +8 -12
- package/lib/browser/editor-variable-contribution.js.map +1 -1
- package/lib/browser/editor-widget-factory.d.ts +2 -2
- package/lib/browser/editor-widget-factory.d.ts.map +1 -1
- package/lib/browser/editor-widget-factory.js +19 -25
- package/lib/browser/editor-widget-factory.js.map +1 -1
- package/lib/browser/editor-widget.d.ts +1 -1
- package/lib/browser/editor-widget.d.ts.map +1 -1
- package/lib/browser/editor-widget.js +11 -15
- package/lib/browser/editor-widget.js.map +1 -1
- package/lib/browser/editor.d.ts +1 -1
- package/lib/browser/editor.d.ts.map +1 -1
- package/lib/browser/editor.js +14 -18
- package/lib/browser/editor.js.map +1 -1
- package/lib/browser/index.d.ts +12 -12
- package/lib/browser/index.d.ts.map +1 -1
- package/lib/browser/index.js +12 -15
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/language-status/editor-formatter-status-contribution.d.ts +3 -3
- package/lib/browser/language-status/editor-formatter-status-contribution.d.ts.map +1 -1
- package/lib/browser/language-status/editor-formatter-status-contribution.js +55 -60
- package/lib/browser/language-status/editor-formatter-status-contribution.js.map +1 -1
- package/lib/browser/language-status/editor-language-status-service.d.ts +5 -5
- package/lib/browser/language-status/editor-language-status-service.d.ts.map +1 -1
- package/lib/browser/language-status/editor-language-status-service.js +66 -78
- package/lib/browser/language-status/editor-language-status-service.js.map +1 -1
- package/lib/browser/navigation/navigation-location-service.d.ts +3 -3
- package/lib/browser/navigation/navigation-location-service.d.ts.map +1 -1
- package/lib/browser/navigation/navigation-location-service.js +33 -40
- package/lib/browser/navigation/navigation-location-service.js.map +1 -1
- package/lib/browser/navigation/navigation-location-service.spec.js +65 -67
- package/lib/browser/navigation/navigation-location-service.spec.js.map +1 -1
- package/lib/browser/navigation/navigation-location-similarity.d.ts +1 -1
- package/lib/browser/navigation/navigation-location-similarity.d.ts.map +1 -1
- package/lib/browser/navigation/navigation-location-similarity.js +8 -11
- package/lib/browser/navigation/navigation-location-similarity.js.map +1 -1
- package/lib/browser/navigation/navigation-location-similarity.spec.js +7 -9
- package/lib/browser/navigation/navigation-location-similarity.spec.js.map +1 -1
- package/lib/browser/navigation/navigation-location-updater.d.ts +1 -1
- package/lib/browser/navigation/navigation-location-updater.d.ts.map +1 -1
- package/lib/browser/navigation/navigation-location-updater.js +20 -23
- package/lib/browser/navigation/navigation-location-updater.js.map +1 -1
- package/lib/browser/navigation/navigation-location-updater.spec.js +11 -13
- package/lib/browser/navigation/navigation-location-updater.spec.js.map +1 -1
- package/lib/browser/navigation/navigation-location.d.ts +1 -1
- package/lib/browser/navigation/navigation-location.d.ts.map +1 -1
- package/lib/browser/navigation/navigation-location.js +20 -24
- package/lib/browser/navigation/navigation-location.js.map +1 -1
- package/lib/browser/navigation/test/mock-navigation-location-updater.d.ts +2 -2
- package/lib/browser/navigation/test/mock-navigation-location-updater.d.ts.map +1 -1
- package/lib/browser/navigation/test/mock-navigation-location-updater.js +3 -8
- package/lib/browser/navigation/test/mock-navigation-location-updater.js.map +1 -1
- package/lib/browser/quick-editor-service.js +23 -29
- package/lib/browser/quick-editor-service.js.map +1 -1
- package/lib/browser/split-editor-contribution.js +1 -4
- package/lib/browser/split-editor-contribution.js.map +1 -1
- package/lib/browser/text-editor-split-contribution.d.ts +3 -3
- package/lib/browser/text-editor-split-contribution.d.ts.map +1 -1
- package/lib/browser/text-editor-split-contribution.js +10 -14
- package/lib/browser/text-editor-split-contribution.js.map +1 -1
- package/lib/browser/undo-redo-service.js +6 -10
- package/lib/browser/undo-redo-service.js.map +1 -1
- package/lib/common/editor-generated-preference-schema.js +727 -730
- package/lib/common/editor-generated-preference-schema.js.map +1 -1
- package/lib/common/editor-preferences.d.ts +1 -1
- package/lib/common/editor-preferences.d.ts.map +1 -1
- package/lib/common/editor-preferences.js +44 -49
- package/lib/common/editor-preferences.js.map +1 -1
- package/lib/common/language-selector.js +3 -6
- package/lib/common/language-selector.js.map +1 -1
- package/lib/node/editor-backend-module.js +4 -6
- package/lib/node/editor-backend-module.js.map +1 -1
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.js +1 -0
- package/package.json +14 -4
- package/src/browser/decorations/editor-decorator.ts +2 -2
- package/src/browser/decorations/index.ts +3 -3
- package/src/browser/diff-navigator.ts +1 -1
- package/src/browser/editor-command.ts +3 -3
- package/src/browser/editor-contribution.ts +9 -8
- package/src/browser/editor-formatter-service.ts +1 -1
- package/src/browser/editor-frontend-module.ts +20 -20
- package/src/browser/editor-keybinding.ts +1 -1
- package/src/browser/editor-linenumber-contribution.ts +3 -3
- package/src/browser/editor-manager.ts +5 -5
- package/src/browser/editor-menu.ts +1 -1
- package/src/browser/editor-navigation-contribution.ts +6 -6
- package/src/browser/editor-variable-contribution.ts +2 -2
- package/src/browser/editor-widget-factory.ts +2 -2
- package/src/browser/editor-widget.ts +1 -1
- package/src/browser/editor.ts +1 -1
- package/src/browser/index.ts +12 -12
- package/src/browser/language-status/editor-formatter-status-contribution.ts +3 -3
- package/src/browser/language-status/editor-language-status-service.ts +6 -6
- package/src/browser/navigation/navigation-location-service.spec.ts +5 -5
- package/src/browser/navigation/navigation-location-service.ts +4 -4
- package/src/browser/navigation/navigation-location-similarity.spec.ts +2 -2
- package/src/browser/navigation/navigation-location-similarity.ts +1 -1
- package/src/browser/navigation/navigation-location-updater.spec.ts +3 -3
- package/src/browser/navigation/navigation-location-updater.ts +1 -1
- package/src/browser/navigation/navigation-location.ts +1 -1
- package/src/browser/navigation/test/mock-navigation-location-updater.ts +2 -2
- package/src/browser/text-editor-split-contribution.ts +3 -3
- package/src/common/editor-generated-preference-schema.ts +1 -1
- package/src/common/editor-preferences.ts +1 -1
- package/src/node/editor-backend-module.ts +1 -1
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/editor",
|
|
3
|
-
"version": "1.77.0-next.
|
|
3
|
+
"version": "1.77.0-next.101+8308c936b",
|
|
4
4
|
"description": "Theia - Editor Extension",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"dependencies": {
|
|
6
|
-
"@theia/core": "1.77.0-next.
|
|
7
|
-
"@theia/variable-resolver": "1.77.0-next.
|
|
7
|
+
"@theia/core": "1.77.0-next.101+8308c936b",
|
|
8
|
+
"@theia/variable-resolver": "1.77.0-next.101+8308c936b",
|
|
8
9
|
"tslib": "^2.8.1"
|
|
9
10
|
},
|
|
10
11
|
"publishConfig": {
|
|
@@ -47,5 +48,14 @@
|
|
|
47
48
|
"nyc": {
|
|
48
49
|
"extends": "../../configs/nyc.json"
|
|
49
50
|
},
|
|
50
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "8308c936be596c357a51fc815ef30022aa62b3d5",
|
|
52
|
+
"exports": {
|
|
53
|
+
"./package.json": "./package.json",
|
|
54
|
+
"./lib/browser": "./lib/browser/index.js",
|
|
55
|
+
"./lib/browser/decorations": "./lib/browser/decorations/index.js",
|
|
56
|
+
"./lib/*.json": "./lib/*.json",
|
|
57
|
+
"./lib/*.js": "./lib/*.js",
|
|
58
|
+
"./lib/*": "./lib/*.js",
|
|
59
|
+
"./*": "./*"
|
|
60
|
+
}
|
|
51
61
|
}
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { injectable } from '@theia/core/shared/inversify';
|
|
18
|
-
import { TextEditor } from '../editor';
|
|
19
|
-
import { EditorDecoration } from './editor-decoration';
|
|
18
|
+
import { TextEditor } from '../editor.js';
|
|
19
|
+
import { EditorDecoration } from './editor-decoration.js';
|
|
20
20
|
|
|
21
21
|
@injectable()
|
|
22
22
|
export abstract class EditorDecorator {
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
export * from './editor-decoration';
|
|
18
|
-
export * from './editor-decoration-style';
|
|
19
|
-
export * from './editor-decorator';
|
|
17
|
+
export * from './editor-decoration.js';
|
|
18
|
+
export * from './editor-decoration-style.js';
|
|
19
|
+
export * from './editor-decorator.js';
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { TextEditor } from './editor';
|
|
17
|
+
import { TextEditor } from './editor.js';
|
|
18
18
|
|
|
19
19
|
export interface DiffNavigator {
|
|
20
20
|
hasNext(): boolean;
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
|
|
17
17
|
import { inject, injectable, optional, postConstruct } from '@theia/core/shared/inversify';
|
|
18
18
|
import { CommonCommands, LabelProvider, ApplicationShell, QuickInputService, QuickPickValue, SaveableService } from '@theia/core/lib/browser';
|
|
19
|
-
import { EditorManager } from './editor-manager';
|
|
19
|
+
import { EditorManager } from './editor-manager.js';
|
|
20
20
|
import { CommandContribution, CommandRegistry, Command, ResourceProvider, MessageService, nls } from '@theia/core';
|
|
21
21
|
import { LanguageService } from '@theia/core/lib/browser/language-service';
|
|
22
22
|
import { SUPPORTED_ENCODINGS } from '@theia/core/lib/common/supported-encodings';
|
|
23
|
-
import { EncodingMode } from './editor';
|
|
24
|
-
import { EditorLanguageQuickPickService } from './editor-language-quick-pick-service';
|
|
23
|
+
import { EncodingMode } from './editor.js';
|
|
24
|
+
import { EditorLanguageQuickPickService } from './editor-language-quick-pick-service.js';
|
|
25
25
|
import { PreferenceService } from '@theia/core/lib/common/preferences';
|
|
26
26
|
|
|
27
27
|
export namespace EditorCommands {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { EditorManager } from './editor-manager';
|
|
18
|
-
import { TextEditor } from './editor';
|
|
17
|
+
import { EditorManager } from './editor-manager.js';
|
|
18
|
+
import { TextEditor } from './editor.js';
|
|
19
19
|
import { injectable, inject, optional, named } from '@theia/core/shared/inversify';
|
|
20
20
|
import { StatusBarAlignment, StatusBar } from '@theia/core/lib/browser/status-bar/status-bar';
|
|
21
21
|
import {
|
|
@@ -27,15 +27,15 @@ import {
|
|
|
27
27
|
} from '@theia/core/lib/browser';
|
|
28
28
|
import { ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
29
29
|
import { CommandHandler, DisposableCollection, MenuContribution, MenuModelRegistry, ContributionProvider, Prioritizeable } from '@theia/core';
|
|
30
|
-
import { EditorCommands } from './editor-command';
|
|
30
|
+
import { EditorCommands } from './editor-command.js';
|
|
31
31
|
import { CommandRegistry, CommandContribution } from '@theia/core/lib/common';
|
|
32
32
|
import { SUPPORTED_ENCODINGS } from '@theia/core/lib/common/supported-encodings';
|
|
33
33
|
import { nls } from '@theia/core/lib/common/nls';
|
|
34
34
|
import { CurrentWidgetCommandAdapter } from '@theia/core/lib/browser/shell/current-widget-command-adapter';
|
|
35
|
-
import { EditorWidget } from './editor-widget';
|
|
36
|
-
import { EditorLanguageStatusService } from './language-status/editor-language-status-service';
|
|
37
|
-
import { QuickEditorService } from './quick-editor-service';
|
|
38
|
-
import { SplitEditorContribution } from './split-editor-contribution';
|
|
35
|
+
import { EditorWidget } from './editor-widget.js';
|
|
36
|
+
import { EditorLanguageStatusService } from './language-status/editor-language-status-service.js';
|
|
37
|
+
import { QuickEditorService } from './quick-editor-service.js';
|
|
38
|
+
import { SplitEditorContribution } from './split-editor-contribution.js';
|
|
39
39
|
|
|
40
40
|
@injectable()
|
|
41
41
|
export class EditorContribution implements FrontendApplicationContribution,
|
|
@@ -122,8 +122,9 @@ export class EditorContribution implements FrontendApplicationContribution,
|
|
|
122
122
|
statusBar.removeElement('editor-status-encoding');
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
125
|
+
const rawEncoding = editor.getEncoding();
|
|
125
126
|
statusBar.setElement('editor-status-encoding', {
|
|
126
|
-
text: SUPPORTED_ENCODINGS[
|
|
127
|
+
text: (typeof rawEncoding === 'string' ? SUPPORTED_ENCODINGS[rawEncoding]?.labelShort : undefined) ?? rawEncoding,
|
|
127
128
|
alignment: StatusBarAlignment.RIGHT,
|
|
128
129
|
priority: 10,
|
|
129
130
|
command: EditorCommands.CHANGE_ENCODING.id,
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { Event, PreferenceScope } from '@theia/core';
|
|
18
|
-
import { TextEditor } from './editor';
|
|
18
|
+
import { TextEditor } from './editor.js';
|
|
19
19
|
|
|
20
20
|
export const FormatterService = Symbol('FormatterService');
|
|
21
21
|
|
|
@@ -21,27 +21,27 @@ import { ContainerModule } from '@theia/core/shared/inversify';
|
|
|
21
21
|
import { bindRootContributionProvider, CommandContribution, MenuContribution } from '@theia/core/lib/common';
|
|
22
22
|
import { OpenHandler, WidgetFactory, FrontendApplicationContribution, KeybindingContribution, WidgetStatusBarContribution } from '@theia/core/lib/browser';
|
|
23
23
|
import { VariableContribution } from '@theia/variable-resolver/lib/browser';
|
|
24
|
-
import { EditorManager, EditorAccess, ActiveEditorAccess, CurrentEditorAccess, EditorSelectionResolver } from './editor-manager';
|
|
25
|
-
import { EditorContribution } from './editor-contribution';
|
|
26
|
-
import { EditorMenuContribution } from './editor-menu';
|
|
27
|
-
import { EditorCommandContribution } from './editor-command';
|
|
28
|
-
import { EditorKeybindingContribution } from './editor-keybinding';
|
|
29
|
-
import { bindEditorPreferences } from '../common/editor-preferences';
|
|
30
|
-
import { EditorWidgetFactory } from './editor-widget-factory';
|
|
31
|
-
import { EditorNavigationContribution } from './editor-navigation-contribution';
|
|
32
|
-
import { NavigationLocationUpdater } from './navigation/navigation-location-updater';
|
|
33
|
-
import { NavigationLocationService } from './navigation/navigation-location-service';
|
|
34
|
-
import { NavigationLocationSimilarity } from './navigation/navigation-location-similarity';
|
|
35
|
-
import { EditorVariableContribution } from './editor-variable-contribution';
|
|
24
|
+
import { EditorManager, EditorAccess, ActiveEditorAccess, CurrentEditorAccess, EditorSelectionResolver } from './editor-manager.js';
|
|
25
|
+
import { EditorContribution } from './editor-contribution.js';
|
|
26
|
+
import { EditorMenuContribution } from './editor-menu.js';
|
|
27
|
+
import { EditorCommandContribution } from './editor-command.js';
|
|
28
|
+
import { EditorKeybindingContribution } from './editor-keybinding.js';
|
|
29
|
+
import { bindEditorPreferences } from '../common/editor-preferences.js';
|
|
30
|
+
import { EditorWidgetFactory } from './editor-widget-factory.js';
|
|
31
|
+
import { EditorNavigationContribution } from './editor-navigation-contribution.js';
|
|
32
|
+
import { NavigationLocationUpdater } from './navigation/navigation-location-updater.js';
|
|
33
|
+
import { NavigationLocationService } from './navigation/navigation-location-service.js';
|
|
34
|
+
import { NavigationLocationSimilarity } from './navigation/navigation-location-similarity.js';
|
|
35
|
+
import { EditorVariableContribution } from './editor-variable-contribution.js';
|
|
36
36
|
import { QuickAccessContribution } from '@theia/core/lib/browser/quick-input/quick-access';
|
|
37
|
-
import { QuickEditorService } from './quick-editor-service';
|
|
38
|
-
import { EditorLanguageStatusService } from './language-status/editor-language-status-service';
|
|
39
|
-
import { EditorFormatterStatusContribution } from './language-status/editor-formatter-status-contribution';
|
|
40
|
-
import { EditorLineNumberContribution } from './editor-linenumber-contribution';
|
|
41
|
-
import { UndoRedoService } from './undo-redo-service';
|
|
42
|
-
import { EditorLanguageQuickPickService } from './editor-language-quick-pick-service';
|
|
43
|
-
import { SplitEditorContribution } from './split-editor-contribution';
|
|
44
|
-
import { TextEditorSplitContribution } from './text-editor-split-contribution';
|
|
37
|
+
import { QuickEditorService } from './quick-editor-service.js';
|
|
38
|
+
import { EditorLanguageStatusService } from './language-status/editor-language-status-service.js';
|
|
39
|
+
import { EditorFormatterStatusContribution } from './language-status/editor-formatter-status-contribution.js';
|
|
40
|
+
import { EditorLineNumberContribution } from './editor-linenumber-contribution.js';
|
|
41
|
+
import { UndoRedoService } from './undo-redo-service.js';
|
|
42
|
+
import { EditorLanguageQuickPickService } from './editor-language-quick-pick-service.js';
|
|
43
|
+
import { SplitEditorContribution } from './split-editor-contribution.js';
|
|
44
|
+
import { TextEditorSplitContribution } from './text-editor-split-contribution.js';
|
|
45
45
|
|
|
46
46
|
export default new ContainerModule(bind => {
|
|
47
47
|
bindEditorPreferences(bind);
|
|
@@ -18,7 +18,7 @@ import { injectable } from '@theia/core/shared/inversify';
|
|
|
18
18
|
import { environment } from '@theia/core/shared/@theia/application-package/lib/environment';
|
|
19
19
|
import { isOSX, isWindows } from '@theia/core/lib/common/os';
|
|
20
20
|
import { KeybindingContribution, KeybindingRegistry } from '@theia/core/lib/browser/keybinding';
|
|
21
|
-
import { EditorCommands } from './editor-command';
|
|
21
|
+
import { EditorCommands } from './editor-command.js';
|
|
22
22
|
|
|
23
23
|
@injectable()
|
|
24
24
|
export class EditorKeybindingContribution implements KeybindingContribution {
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { EditorManager } from './editor-manager';
|
|
18
|
-
import { EditorMouseEvent, MouseTargetType, Position, TextEditor } from './editor';
|
|
17
|
+
import { EditorManager } from './editor-manager.js';
|
|
18
|
+
import { EditorMouseEvent, MouseTargetType, Position, TextEditor } from './editor.js';
|
|
19
19
|
import { injectable, inject } from '@theia/core/shared/inversify';
|
|
20
20
|
import { FrontendApplicationContribution, ContextMenuRenderer, isContextMenuEvent } from '@theia/core/lib/browser';
|
|
21
21
|
import { ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
22
22
|
import { Disposable, DisposableCollection, MenuPath } from '@theia/core';
|
|
23
|
-
import { EditorWidget } from './editor-widget';
|
|
23
|
+
import { EditorWidget } from './editor-widget.js';
|
|
24
24
|
|
|
25
25
|
export const EDITOR_LINENUMBER_CONTEXT_MENU: MenuPath = ['editor_linenumber_context_menu'];
|
|
26
26
|
|
|
@@ -20,10 +20,10 @@ import { RecursivePartial, Emitter, Event, CommandService, nls, ContributionProv
|
|
|
20
20
|
import {
|
|
21
21
|
WidgetOpenerOptions, NavigatableWidgetOpenHandler, NavigatableWidgetOptions, CommonCommands, getDefaultHandler, defaultHandlerPriority, DiffUris
|
|
22
22
|
} from '@theia/core/lib/browser';
|
|
23
|
-
import { EditorWidget } from './editor-widget';
|
|
24
|
-
import { Range, Position, Location, TextEditor } from './editor';
|
|
25
|
-
import { EditorWidgetFactory } from './editor-widget-factory';
|
|
26
|
-
import { NavigationLocationService } from './navigation/navigation-location-service';
|
|
23
|
+
import { EditorWidget } from './editor-widget.js';
|
|
24
|
+
import { Range, Position, Location, TextEditor } from './editor.js';
|
|
25
|
+
import { EditorWidgetFactory } from './editor-widget-factory.js';
|
|
26
|
+
import { NavigationLocationService } from './navigation/navigation-location-service.js';
|
|
27
27
|
import { PreferenceService } from '@theia/core/lib/common/preferences';
|
|
28
28
|
import { ILogger } from '@theia/core';
|
|
29
29
|
|
|
@@ -227,7 +227,7 @@ export class EditorManager extends NavigatableWidgetOpenHandler<EditorWidget> {
|
|
|
227
227
|
this.navigationLocationService.startNavigation();
|
|
228
228
|
try {
|
|
229
229
|
if (options?.counter === undefined) {
|
|
230
|
-
const insertionOptions = this.shell.getInsertionOptions(options?.widgetOptions);
|
|
230
|
+
const insertionOptions = this.shell.getInsertionOptions(options?.widgetOptions ?? this.getDefaultWidgetOptions());
|
|
231
231
|
// Definitely creating a new tabbar - no widget can match.
|
|
232
232
|
if (insertionOptions.addOptions.mode?.startsWith('split')) {
|
|
233
233
|
return await super.open(uri, { counter: this.nextCounter(), ...options });
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { injectable } from '@theia/core/shared/inversify';
|
|
18
18
|
import { MenuContribution, MenuModelRegistry, MenuPath, MAIN_MENU_BAR } from '@theia/core';
|
|
19
19
|
import { CommonCommands, CommonMenus } from '@theia/core/lib/browser';
|
|
20
|
-
import { EditorCommands } from './editor-command';
|
|
20
|
+
import { EditorCommands } from './editor-command.js';
|
|
21
21
|
import { nls } from '@theia/core/lib/common/nls';
|
|
22
22
|
|
|
23
23
|
export const EDITOR_CONTEXT_MENU: MenuPath = ['editor_context_menu'];
|
|
@@ -20,12 +20,12 @@ import { StorageService } from '@theia/core/lib/browser/storage-service';
|
|
|
20
20
|
import { Disposable, DisposableCollection } from '@theia/core/lib/common/disposable';
|
|
21
21
|
import { FrontendApplicationContribution } from '@theia/core/lib/browser/frontend-application-contribution';
|
|
22
22
|
import { CommandRegistry } from '@theia/core/lib/common/command';
|
|
23
|
-
import { EditorCommands } from './editor-command';
|
|
24
|
-
import { EditorWidget } from './editor-widget';
|
|
25
|
-
import { EditorManager } from './editor-manager';
|
|
26
|
-
import { TextEditor, Position, Range, TextDocumentChangeEvent } from './editor';
|
|
27
|
-
import { NavigationLocation, RecentlyClosedEditor } from './navigation/navigation-location';
|
|
28
|
-
import { NavigationLocationService } from './navigation/navigation-location-service';
|
|
23
|
+
import { EditorCommands } from './editor-command.js';
|
|
24
|
+
import { EditorWidget } from './editor-widget.js';
|
|
25
|
+
import { EditorManager } from './editor-manager.js';
|
|
26
|
+
import { TextEditor, Position, Range, TextDocumentChangeEvent } from './editor.js';
|
|
27
|
+
import { NavigationLocation, RecentlyClosedEditor } from './navigation/navigation-location.js';
|
|
28
|
+
import { NavigationLocationService } from './navigation/navigation-location-service.js';
|
|
29
29
|
import { addEventListener } from '@theia/core/lib/browser';
|
|
30
30
|
import { ConfirmDialog, Dialog } from '@theia/core/lib/browser/dialogs';
|
|
31
31
|
import { nls } from '@theia/core';
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
import { injectable, inject } from '@theia/core/shared/inversify';
|
|
18
18
|
import { VariableRegistry, VariableContribution } from '@theia/variable-resolver/lib/browser';
|
|
19
|
-
import { TextEditor } from './editor';
|
|
20
|
-
import { EditorManager } from './editor-manager';
|
|
19
|
+
import { TextEditor } from './editor.js';
|
|
20
|
+
import { EditorManager } from './editor-manager.js';
|
|
21
21
|
|
|
22
22
|
@injectable()
|
|
23
23
|
export class EditorVariableContribution implements VariableContribution {
|
|
@@ -18,8 +18,8 @@ import { injectable, inject } from '@theia/core/shared/inversify';
|
|
|
18
18
|
import URI from '@theia/core/lib/common/uri';
|
|
19
19
|
import { nls, SelectionService } from '@theia/core/lib/common';
|
|
20
20
|
import { NavigatableWidgetOptions, WidgetFactory, LabelProvider } from '@theia/core/lib/browser';
|
|
21
|
-
import { EditorWidget } from './editor-widget';
|
|
22
|
-
import { TextEditorProvider } from './editor';
|
|
21
|
+
import { EditorWidget } from './editor-widget.js';
|
|
22
|
+
import { TextEditorProvider } from './editor.js';
|
|
23
23
|
|
|
24
24
|
@injectable()
|
|
25
25
|
export class EditorWidgetFactory implements WidgetFactory {
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
Widget, BaseWidget, Message, Saveable, SaveableSource, Navigatable, StatefulWidget, lock, TabBar, TabBarTracker, unlock, ExtractableWidget
|
|
20
20
|
} from '@theia/core/lib/browser';
|
|
21
21
|
import URI from '@theia/core/lib/common/uri';
|
|
22
|
-
import { TextEditor } from './editor';
|
|
22
|
+
import { TextEditor } from './editor.js';
|
|
23
23
|
|
|
24
24
|
export class EditorWidget extends BaseWidget implements SaveableSource, Navigatable, StatefulWidget, ExtractableWidget {
|
|
25
25
|
|
package/src/browser/editor.ts
CHANGED
|
@@ -19,7 +19,7 @@ import * as lsp from '@theia/core/shared/vscode-languageserver-protocol';
|
|
|
19
19
|
import URI from '@theia/core/lib/common/uri';
|
|
20
20
|
import { Event, Disposable, TextDocumentContentChangeDelta, Reference, isObject } from '@theia/core/lib/common';
|
|
21
21
|
import { Saveable, Navigatable, Widget } from '@theia/core/lib/browser';
|
|
22
|
-
import { EditorDecoration } from './decorations/editor-decoration';
|
|
22
|
+
import { EditorDecoration } from './decorations/editor-decoration.js';
|
|
23
23
|
import { MarkdownString } from '@theia/core/lib/common/markdown-rendering';
|
|
24
24
|
|
|
25
25
|
export { Position, Range, Location };
|
package/src/browser/index.ts
CHANGED
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
export * from './diff-navigator';
|
|
18
|
-
export * from './editor';
|
|
19
|
-
export * from './editor-widget';
|
|
20
|
-
export * from './editor-manager';
|
|
21
|
-
export * from './editor-command';
|
|
22
|
-
export * from './editor-menu';
|
|
23
|
-
export * from './editor-frontend-module';
|
|
24
|
-
export * from './decorations';
|
|
25
|
-
export * from './editor-linenumber-contribution';
|
|
26
|
-
export * from './split-editor-contribution';
|
|
27
|
-
export * from './text-editor-split-contribution';
|
|
28
|
-
export * from './editor-formatter-service';
|
|
17
|
+
export * from './diff-navigator.js';
|
|
18
|
+
export * from './editor.js';
|
|
19
|
+
export * from './editor-widget.js';
|
|
20
|
+
export * from './editor-manager.js';
|
|
21
|
+
export * from './editor-command.js';
|
|
22
|
+
export * from './editor-menu.js';
|
|
23
|
+
export * from './editor-frontend-module.js';
|
|
24
|
+
export * from './decorations/index.js';
|
|
25
|
+
export * from './editor-linenumber-contribution.js';
|
|
26
|
+
export * from './split-editor-contribution.js';
|
|
27
|
+
export * from './text-editor-split-contribution.js';
|
|
28
|
+
export * from './editor-formatter-service.js';
|
|
@@ -18,9 +18,9 @@ import { injectable, inject, optional } from '@theia/core/shared/inversify';
|
|
|
18
18
|
import { QuickInputService, QuickPickItem, StatusBarEntry, StatusBarAlignment } from '@theia/core/lib/browser';
|
|
19
19
|
import { nls, PreferenceScope } from '@theia/core';
|
|
20
20
|
import { Severity } from '@theia/core/lib/common/severity';
|
|
21
|
-
import { TextEditor } from '../editor';
|
|
22
|
-
import { FormatterService, FormatterSettingScope, FormatterStatus, FormatterInfo } from '../editor-formatter-service';
|
|
23
|
-
import { LanguageStatus } from './editor-language-status-service';
|
|
21
|
+
import { TextEditor } from '../editor.js';
|
|
22
|
+
import { FormatterService, FormatterSettingScope, FormatterStatus, FormatterInfo } from '../editor-formatter-service.js';
|
|
23
|
+
import { LanguageStatus } from './editor-language-status-service.js';
|
|
24
24
|
|
|
25
25
|
interface ScopeDisplayInfo {
|
|
26
26
|
icon: string;
|
|
@@ -18,16 +18,16 @@ import { injectable, inject, optional } from '@theia/core/shared/inversify';
|
|
|
18
18
|
import { codicon, HoverService, StatusBar, StatusBarAlignment, StatusBarEntry } from '@theia/core/lib/browser';
|
|
19
19
|
import { LanguageService } from '@theia/core/lib/browser/language-service';
|
|
20
20
|
import { CommandRegistry, DisposableCollection, MessageService, nls } from '@theia/core';
|
|
21
|
-
import { TextEditor } from '../editor';
|
|
22
|
-
import { EditorCommands } from '../editor-command';
|
|
23
|
-
import { LanguageSelector, score } from '../../common/language-selector';
|
|
21
|
+
import { TextEditor } from '../editor.js';
|
|
22
|
+
import { EditorCommands } from '../editor-command.js';
|
|
23
|
+
import { LanguageSelector, score } from '../../common/language-selector.js';
|
|
24
24
|
import { AccessibilityInformation } from '@theia/core/lib/common/accessibility';
|
|
25
25
|
import URI from '@theia/core/lib/common/uri';
|
|
26
|
-
import { CurrentEditorAccess } from '../editor-manager';
|
|
26
|
+
import { CurrentEditorAccess } from '../editor-manager.js';
|
|
27
27
|
import { Severity } from '@theia/core/lib/common/severity';
|
|
28
28
|
import { LabelParser } from '@theia/core/lib/browser/label-parser';
|
|
29
|
-
import { FormatterService } from '../editor-formatter-service';
|
|
30
|
-
import { EditorFormatterStatusContribution } from './editor-formatter-status-contribution';
|
|
29
|
+
import { FormatterService } from '../editor-formatter-service.js';
|
|
30
|
+
import { EditorFormatterStatusContribution } from './editor-formatter-status-contribution.js';
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Represents the severity of a language status item.
|
|
@@ -24,11 +24,11 @@ import { ILogger } from '@theia/core/lib/common/logger';
|
|
|
24
24
|
import { MockLogger } from '@theia/core/lib/common/test/mock-logger';
|
|
25
25
|
import { OpenerService } from '@theia/core/lib/browser/opener-service';
|
|
26
26
|
import { MockOpenerService } from '@theia/core/lib/browser/test/mock-opener-service';
|
|
27
|
-
import { NavigationLocationUpdater } from './navigation-location-updater';
|
|
28
|
-
import { NoopNavigationLocationUpdater } from './test/mock-navigation-location-updater';
|
|
29
|
-
import { NavigationLocationSimilarity } from './navigation-location-similarity';
|
|
30
|
-
import { CursorLocation, Position, NavigationLocation, RecentlyClosedEditor } from './navigation-location';
|
|
31
|
-
import { NavigationLocationService } from './navigation-location-service';
|
|
27
|
+
import { NavigationLocationUpdater } from './navigation-location-updater.js';
|
|
28
|
+
import { NoopNavigationLocationUpdater } from './test/mock-navigation-location-updater.js';
|
|
29
|
+
import { NavigationLocationSimilarity } from './navigation-location-similarity.js';
|
|
30
|
+
import { CursorLocation, Position, NavigationLocation, RecentlyClosedEditor } from './navigation-location.js';
|
|
31
|
+
import { NavigationLocationService } from './navigation-location-service.js';
|
|
32
32
|
|
|
33
33
|
disableJSDOM();
|
|
34
34
|
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
import { inject, injectable, named } from '@theia/core/shared/inversify';
|
|
18
18
|
import { ILogger } from '@theia/core/lib/common/logger';
|
|
19
19
|
import { OpenerService, OpenerOptions, open } from '@theia/core/lib/browser/opener-service';
|
|
20
|
-
import { EditorOpenerOptions } from '../editor-manager';
|
|
21
|
-
import { NavigationLocationUpdater } from './navigation-location-updater';
|
|
22
|
-
import { NavigationLocationSimilarity } from './navigation-location-similarity';
|
|
23
|
-
import { NavigationLocation, Range, ContentChangeLocation, RecentlyClosedEditor } from './navigation-location';
|
|
20
|
+
import { EditorOpenerOptions } from '../editor-manager.js';
|
|
21
|
+
import { NavigationLocationUpdater } from './navigation-location-updater.js';
|
|
22
|
+
import { NavigationLocationSimilarity } from './navigation-location-similarity.js';
|
|
23
|
+
import { NavigationLocation, Range, ContentChangeLocation, RecentlyClosedEditor } from './navigation-location.js';
|
|
24
24
|
import URI from '@theia/core/lib/common/uri';
|
|
25
25
|
|
|
26
26
|
/**
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { expect } from 'chai';
|
|
18
|
-
import { NavigationLocation } from './navigation-location';
|
|
19
|
-
import { NavigationLocationSimilarity } from './navigation-location-similarity';
|
|
18
|
+
import { NavigationLocation } from './navigation-location.js';
|
|
19
|
+
import { NavigationLocationSimilarity } from './navigation-location-similarity.js';
|
|
20
20
|
|
|
21
21
|
describe('navigation-location-similarity', () => {
|
|
22
22
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { injectable } from '@theia/core/shared/inversify';
|
|
18
|
-
import { NavigationLocation } from './navigation-location';
|
|
18
|
+
import { NavigationLocation } from './navigation-location.js';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Service for checking whether two navigation locations are similar or not.
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { expect } from 'chai';
|
|
18
|
-
import { NavigationLocation, Range } from './navigation-location';
|
|
19
|
-
import { TextDocumentContentChangeDelta } from '../editor';
|
|
20
|
-
import { MockNavigationLocationUpdater } from './test/mock-navigation-location-updater';
|
|
18
|
+
import { NavigationLocation, Range } from './navigation-location.js';
|
|
19
|
+
import { TextDocumentContentChangeDelta } from '../editor.js';
|
|
20
|
+
import { MockNavigationLocationUpdater } from './test/mock-navigation-location-updater.js';
|
|
21
21
|
|
|
22
22
|
describe('navigation-location-updater', () => {
|
|
23
23
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { injectable } from '@theia/core/shared/inversify';
|
|
18
|
-
import { NavigationLocation, ContentChangeLocation, CursorLocation, SelectionLocation, Position, Range } from './navigation-location';
|
|
18
|
+
import { NavigationLocation, ContentChangeLocation, CursorLocation, SelectionLocation, Position, Range } from './navigation-location.js';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* A navigation location updater that is responsible for adapting editor navigation locations.
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import URI from '@theia/core/lib/common/uri';
|
|
18
|
-
import { Position, Range, TextDocumentContentChangeDelta } from '../editor';
|
|
18
|
+
import { Position, Range, TextDocumentContentChangeDelta } from '../editor.js';
|
|
19
19
|
export { Position, Range };
|
|
20
20
|
|
|
21
21
|
export namespace NavigationLocation {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { Range } from '../navigation-location';
|
|
18
|
-
import { NavigationLocationUpdater } from '../navigation-location-updater';
|
|
17
|
+
import { Range } from '../navigation-location.js';
|
|
18
|
+
import { NavigationLocationUpdater } from '../navigation-location-updater.js';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Navigation location updater with increased method visibility for testing.
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
18
18
|
import { Widget, DockLayout } from '@theia/core/lib/browser';
|
|
19
|
-
import { SplitEditorContribution } from './split-editor-contribution';
|
|
20
|
-
import { EditorWidget } from './editor-widget';
|
|
21
|
-
import { EditorManager } from './editor-manager';
|
|
19
|
+
import { SplitEditorContribution } from './split-editor-contribution.js';
|
|
20
|
+
import { EditorWidget } from './editor-widget.js';
|
|
21
|
+
import { EditorManager } from './editor-manager.js';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Implementation of SplitEditorContribution for text editors (EditorWidget).
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { isOSX, isWindows, nls } from '@theia/core';
|
|
18
18
|
import { PreferenceSchema, PreferenceScope } from '@theia/core/lib/common/preferences';
|
|
19
19
|
|
|
20
|
-
/* eslint-disable @
|
|
20
|
+
/* eslint-disable @stylistic/quotes,max-len,no-null/no-null */
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Please do not modify this file by hand. It should be generated automatically
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from '@theia/core/lib/common/preferences';
|
|
28
28
|
import { nls } from '@theia/core/lib/common/nls';
|
|
29
29
|
import { environment } from '@theia/core';
|
|
30
|
-
import { editorGeneratedPreferenceProperties, GeneratedEditorPreferences } from './editor-generated-preference-schema';
|
|
30
|
+
import { editorGeneratedPreferenceProperties, GeneratedEditorPreferences } from './editor-generated-preference-schema.js';
|
|
31
31
|
|
|
32
32
|
/* eslint-disable max-len,no-null/no-null */
|
|
33
33
|
// #region src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.ts
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
18
|
-
import { bindEditorPreferences } from '../common/editor-preferences';
|
|
18
|
+
import { bindEditorPreferences } from '../common/editor-preferences.js';
|
|
19
19
|
|
|
20
20
|
export default new ContainerModule(bind => {
|
|
21
21
|
bindEditorPreferences(bind);
|