@theia/editor 1.77.0-next.95 → 1.77.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/lib/browser/decorations/editor-decoration-style.js +4 -8
  2. package/lib/browser/decorations/editor-decoration-style.js.map +1 -1
  3. package/lib/browser/decorations/editor-decoration.js +6 -9
  4. package/lib/browser/decorations/editor-decoration.js.map +1 -1
  5. package/lib/browser/decorations/editor-decorator.d.ts +2 -2
  6. package/lib/browser/decorations/editor-decorator.d.ts.map +1 -1
  7. package/lib/browser/decorations/editor-decorator.js +5 -8
  8. package/lib/browser/decorations/editor-decorator.js.map +1 -1
  9. package/lib/browser/decorations/index.d.ts +3 -3
  10. package/lib/browser/decorations/index.d.ts.map +1 -1
  11. package/lib/browser/decorations/index.js +3 -6
  12. package/lib/browser/decorations/index.js.map +1 -1
  13. package/lib/browser/diff-navigator.d.ts +1 -1
  14. package/lib/browser/diff-navigator.d.ts.map +1 -1
  15. package/lib/browser/diff-navigator.js +1 -4
  16. package/lib/browser/diff-navigator.js.map +1 -1
  17. package/lib/browser/editor-command.d.ts +2 -2
  18. package/lib/browser/editor-command.d.ts.map +1 -1
  19. package/lib/browser/editor-command.js +89 -105
  20. package/lib/browser/editor-command.js.map +1 -1
  21. package/lib/browser/editor-contribution.d.ts +5 -5
  22. package/lib/browser/editor-contribution.d.ts.map +1 -1
  23. package/lib/browser/editor-contribution.js +71 -81
  24. package/lib/browser/editor-contribution.js.map +1 -1
  25. package/lib/browser/editor-formatter-service.d.ts +1 -1
  26. package/lib/browser/editor-formatter-service.d.ts.map +1 -1
  27. package/lib/browser/editor-formatter-service.js +1 -4
  28. package/lib/browser/editor-formatter-service.js.map +1 -1
  29. package/lib/browser/editor-frontend-module.js +68 -70
  30. package/lib/browser/editor-frontend-module.js.map +1 -1
  31. package/lib/browser/editor-keybinding.js +16 -19
  32. package/lib/browser/editor-keybinding.js.map +1 -1
  33. package/lib/browser/editor-language-quick-pick-service.js +21 -27
  34. package/lib/browser/editor-language-quick-pick-service.js.map +1 -1
  35. package/lib/browser/editor-linenumber-contribution.d.ts +3 -3
  36. package/lib/browser/editor-linenumber-contribution.d.ts.map +1 -1
  37. package/lib/browser/editor-linenumber-contribution.js +22 -28
  38. package/lib/browser/editor-linenumber-contribution.js.map +1 -1
  39. package/lib/browser/editor-manager.d.ts +3 -3
  40. package/lib/browser/editor-manager.d.ts.map +1 -1
  41. package/lib/browser/editor-manager.js +58 -70
  42. package/lib/browser/editor-manager.js.map +1 -1
  43. package/lib/browser/editor-menu.js +76 -79
  44. package/lib/browser/editor-menu.js.map +1 -1
  45. package/lib/browser/editor-navigation-contribution.d.ts +4 -4
  46. package/lib/browser/editor-navigation-contribution.d.ts.map +1 -1
  47. package/lib/browser/editor-navigation-contribution.js +60 -72
  48. package/lib/browser/editor-navigation-contribution.js.map +1 -1
  49. package/lib/browser/editor-variable-contribution.d.ts +2 -2
  50. package/lib/browser/editor-variable-contribution.d.ts.map +1 -1
  51. package/lib/browser/editor-variable-contribution.js +8 -12
  52. package/lib/browser/editor-variable-contribution.js.map +1 -1
  53. package/lib/browser/editor-widget-factory.d.ts +2 -2
  54. package/lib/browser/editor-widget-factory.d.ts.map +1 -1
  55. package/lib/browser/editor-widget-factory.js +19 -25
  56. package/lib/browser/editor-widget-factory.js.map +1 -1
  57. package/lib/browser/editor-widget.d.ts +1 -1
  58. package/lib/browser/editor-widget.d.ts.map +1 -1
  59. package/lib/browser/editor-widget.js +11 -15
  60. package/lib/browser/editor-widget.js.map +1 -1
  61. package/lib/browser/editor.d.ts +1 -1
  62. package/lib/browser/editor.d.ts.map +1 -1
  63. package/lib/browser/editor.js +14 -19
  64. package/lib/browser/editor.js.map +1 -1
  65. package/lib/browser/index.d.ts +12 -12
  66. package/lib/browser/index.d.ts.map +1 -1
  67. package/lib/browser/index.js +12 -15
  68. package/lib/browser/index.js.map +1 -1
  69. package/lib/browser/language-status/editor-formatter-status-contribution.d.ts +3 -3
  70. package/lib/browser/language-status/editor-formatter-status-contribution.d.ts.map +1 -1
  71. package/lib/browser/language-status/editor-formatter-status-contribution.js +55 -60
  72. package/lib/browser/language-status/editor-formatter-status-contribution.js.map +1 -1
  73. package/lib/browser/language-status/editor-language-status-service.d.ts +5 -5
  74. package/lib/browser/language-status/editor-language-status-service.d.ts.map +1 -1
  75. package/lib/browser/language-status/editor-language-status-service.js +66 -78
  76. package/lib/browser/language-status/editor-language-status-service.js.map +1 -1
  77. package/lib/browser/navigation/navigation-location-service.d.ts +3 -3
  78. package/lib/browser/navigation/navigation-location-service.d.ts.map +1 -1
  79. package/lib/browser/navigation/navigation-location-service.js +33 -40
  80. package/lib/browser/navigation/navigation-location-service.js.map +1 -1
  81. package/lib/browser/navigation/navigation-location-service.spec.js +65 -68
  82. package/lib/browser/navigation/navigation-location-service.spec.js.map +1 -1
  83. package/lib/browser/navigation/navigation-location-similarity.d.ts +1 -1
  84. package/lib/browser/navigation/navigation-location-similarity.d.ts.map +1 -1
  85. package/lib/browser/navigation/navigation-location-similarity.js +8 -11
  86. package/lib/browser/navigation/navigation-location-similarity.js.map +1 -1
  87. package/lib/browser/navigation/navigation-location-similarity.spec.js +7 -9
  88. package/lib/browser/navigation/navigation-location-similarity.spec.js.map +1 -1
  89. package/lib/browser/navigation/navigation-location-updater.d.ts +1 -1
  90. package/lib/browser/navigation/navigation-location-updater.d.ts.map +1 -1
  91. package/lib/browser/navigation/navigation-location-updater.js +20 -23
  92. package/lib/browser/navigation/navigation-location-updater.js.map +1 -1
  93. package/lib/browser/navigation/navigation-location-updater.spec.js +11 -13
  94. package/lib/browser/navigation/navigation-location-updater.spec.js.map +1 -1
  95. package/lib/browser/navigation/navigation-location.d.ts +1 -1
  96. package/lib/browser/navigation/navigation-location.d.ts.map +1 -1
  97. package/lib/browser/navigation/navigation-location.js +20 -25
  98. package/lib/browser/navigation/navigation-location.js.map +1 -1
  99. package/lib/browser/navigation/test/mock-navigation-location-updater.d.ts +2 -2
  100. package/lib/browser/navigation/test/mock-navigation-location-updater.d.ts.map +1 -1
  101. package/lib/browser/navigation/test/mock-navigation-location-updater.js +3 -8
  102. package/lib/browser/navigation/test/mock-navigation-location-updater.js.map +1 -1
  103. package/lib/browser/quick-editor-service.js +23 -29
  104. package/lib/browser/quick-editor-service.js.map +1 -1
  105. package/lib/browser/split-editor-contribution.js +1 -4
  106. package/lib/browser/split-editor-contribution.js.map +1 -1
  107. package/lib/browser/text-editor-split-contribution.d.ts +3 -3
  108. package/lib/browser/text-editor-split-contribution.d.ts.map +1 -1
  109. package/lib/browser/text-editor-split-contribution.js +10 -14
  110. package/lib/browser/text-editor-split-contribution.js.map +1 -1
  111. package/lib/browser/undo-redo-service.js +6 -10
  112. package/lib/browser/undo-redo-service.js.map +1 -1
  113. package/lib/common/editor-generated-preference-schema.js +726 -729
  114. package/lib/common/editor-generated-preference-schema.js.map +1 -1
  115. package/lib/common/editor-preferences.d.ts +1 -1
  116. package/lib/common/editor-preferences.d.ts.map +1 -1
  117. package/lib/common/editor-preferences.js +44 -49
  118. package/lib/common/editor-preferences.js.map +1 -1
  119. package/lib/common/language-selector.js +3 -6
  120. package/lib/common/language-selector.js.map +1 -1
  121. package/lib/node/editor-backend-module.js +4 -6
  122. package/lib/node/editor-backend-module.js.map +1 -1
  123. package/lib/package.spec.d.ts +1 -0
  124. package/lib/package.spec.js +1 -1
  125. package/lib/package.spec.js.map +1 -1
  126. package/package.json +15 -5
  127. package/src/browser/decorations/editor-decorator.ts +2 -2
  128. package/src/browser/decorations/index.ts +3 -3
  129. package/src/browser/diff-navigator.ts +1 -1
  130. package/src/browser/editor-command.ts +4 -4
  131. package/src/browser/editor-contribution.ts +7 -7
  132. package/src/browser/editor-formatter-service.ts +1 -1
  133. package/src/browser/editor-frontend-module.ts +20 -20
  134. package/src/browser/editor-keybinding.ts +1 -1
  135. package/src/browser/editor-linenumber-contribution.ts +3 -3
  136. package/src/browser/editor-manager.ts +4 -4
  137. package/src/browser/editor-menu.ts +1 -1
  138. package/src/browser/editor-navigation-contribution.ts +6 -6
  139. package/src/browser/editor-variable-contribution.ts +2 -2
  140. package/src/browser/editor-widget-factory.ts +2 -2
  141. package/src/browser/editor-widget.ts +1 -1
  142. package/src/browser/editor.ts +1 -1
  143. package/src/browser/index.ts +12 -12
  144. package/src/browser/language-status/editor-formatter-status-contribution.ts +3 -3
  145. package/src/browser/language-status/editor-language-status-service.ts +6 -6
  146. package/src/browser/navigation/navigation-location-service.spec.ts +5 -5
  147. package/src/browser/navigation/navigation-location-service.ts +4 -4
  148. package/src/browser/navigation/navigation-location-similarity.spec.ts +2 -2
  149. package/src/browser/navigation/navigation-location-similarity.ts +1 -1
  150. package/src/browser/navigation/navigation-location-updater.spec.ts +3 -3
  151. package/src/browser/navigation/navigation-location-updater.ts +1 -1
  152. package/src/browser/navigation/navigation-location.ts +1 -1
  153. package/src/browser/navigation/test/mock-navigation-location-updater.ts +2 -2
  154. package/src/browser/text-editor-split-contribution.ts +3 -3
  155. package/src/common/editor-generated-preference-schema.ts +2 -2
  156. package/src/common/editor-preferences.ts +1 -1
  157. 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.95+2e6065588",
3
+ "version": "1.77.0",
4
4
  "description": "Theia - Editor Extension",
5
+ "type": "module",
5
6
  "dependencies": {
6
- "@theia/core": "1.77.0-next.95+2e6065588",
7
- "@theia/variable-resolver": "1.77.0-next.95+2e6065588",
7
+ "@theia/core": "1.77.0",
8
+ "@theia/variable-resolver": "1.77.0",
8
9
  "tslib": "^2.8.1"
9
10
  },
10
11
  "publishConfig": {
@@ -42,10 +43,19 @@
42
43
  "watch": "theiaext watch"
43
44
  },
44
45
  "devDependencies": {
45
- "@theia/ext-scripts": "1.76.0"
46
+ "@theia/ext-scripts": "1.77.0"
46
47
  },
47
48
  "nyc": {
48
49
  "extends": "../../configs/nyc.json"
49
50
  },
50
- "gitHead": "2e6065588d8cf4fc82a79b992f3680fd4cd5e809"
51
+ "gitHead": "9c6d81590b559ee8a78a7808203674f3127411f1",
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 {
@@ -339,7 +339,7 @@ export class EditorCommandContribution implements CommandContribution {
339
339
  }
340
340
  const isReopenWithEncoding = (selectedEncoding.value === reopenWithEncodingPick.value);
341
341
 
342
- const configuredEncoding = this.preferencesService.get<string>('files.encoding', 'utf8', editor.uri.toString());
342
+ const configuredEncoding = this.preferencesService.get<string>('files.encoding', { fallback: 'utf8', resource: editor.uri.toString() });
343
343
 
344
344
  const resource = await this.resourceProvider(editor.uri);
345
345
  const guessedEncoding = resource.guessEncoding ? await resource.guessEncoding() : undefined;
@@ -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,
@@ -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
 
@@ -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
 
@@ -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 };
@@ -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).
@@ -1667,10 +1667,10 @@ export const editorGeneratedPreferenceProperties: PreferenceSchema['properties']
1667
1667
  },
1668
1668
  "editor.multiCursorPaste": {
1669
1669
  "markdownEnumDescriptions": [
1670
- nls.localizeByDefault("Each cursor pastes a single line of the text."),
1670
+ nls.localize("theia/editor/editor.multiCursorPaste/spread", "Each cursor pastes a single line of the text."),
1671
1671
  nls.localizeByDefault("Each cursor pastes the full text.")
1672
1672
  ],
1673
- "markdownDescription": nls.localizeByDefault("Controls pasting when the line count of the pasted text matches the cursor count."),
1673
+ "markdownDescription": nls.localize("theia/editor/editor.multiCursorPaste/description", "Controls pasting when the line count of the pasted text matches the cursor count."),
1674
1674
  "type": "string",
1675
1675
  "enum": [
1676
1676
  "spread",
@@ -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);