@theia/editor 1.34.2 → 1.34.3

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 (100) hide show
  1. package/LICENSE +641 -641
  2. package/README.md +30 -30
  3. package/lib/browser/decorations/editor-decoration-style.d.ts +8 -8
  4. package/lib/browser/decorations/editor-decoration-style.js +36 -36
  5. package/lib/browser/decorations/editor-decoration.d.ts +106 -106
  6. package/lib/browser/decorations/editor-decoration.js +37 -37
  7. package/lib/browser/decorations/editor-decorator.d.ts +6 -6
  8. package/lib/browser/decorations/editor-decorator.js +43 -43
  9. package/lib/browser/decorations/index.d.ts +3 -3
  10. package/lib/browser/decorations/index.js +30 -30
  11. package/lib/browser/diff-navigator.d.ts +10 -10
  12. package/lib/browser/diff-navigator.js +19 -19
  13. package/lib/browser/editor-command.d.ts +102 -102
  14. package/lib/browser/editor-command.js +426 -426
  15. package/lib/browser/editor-contribution.d.ts +26 -26
  16. package/lib/browser/editor-contribution.js +198 -198
  17. package/lib/browser/editor-frontend-module.d.ts +5 -5
  18. package/lib/browser/editor-frontend-module.js +74 -74
  19. package/lib/browser/editor-generated-preference-schema.d.ts +249 -249
  20. package/lib/browser/editor-generated-preference-schema.js +2316 -2316
  21. package/lib/browser/editor-keybinding-contexts.d.ts +35 -35
  22. package/lib/browser/editor-keybinding-contexts.js +98 -98
  23. package/lib/browser/editor-keybinding.d.ts +5 -5
  24. package/lib/browser/editor-keybinding.js +55 -55
  25. package/lib/browser/editor-manager.d.ts +113 -113
  26. package/lib/browser/editor-manager.js +412 -412
  27. package/lib/browser/editor-menu.d.ts +48 -48
  28. package/lib/browser/editor-menu.js +210 -210
  29. package/lib/browser/editor-navigation-contribution.d.ts +67 -67
  30. package/lib/browser/editor-navigation-contribution.js +331 -331
  31. package/lib/browser/editor-preferences.d.ts +40 -40
  32. package/lib/browser/editor-preferences.js +165 -165
  33. package/lib/browser/editor-variable-contribution.d.ts +8 -8
  34. package/lib/browser/editor-variable-contribution.js +64 -64
  35. package/lib/browser/editor-widget-factory.d.ts +17 -17
  36. package/lib/browser/editor-widget-factory.js +91 -91
  37. package/lib/browser/editor-widget.d.ts +20 -20
  38. package/lib/browser/editor-widget.js +87 -87
  39. package/lib/browser/editor.d.ts +293 -293
  40. package/lib/browser/editor.js +103 -103
  41. package/lib/browser/index.d.ts +10 -10
  42. package/lib/browser/index.js +37 -37
  43. package/lib/browser/language-status/editor-language-status-service.d.ts +77 -77
  44. package/lib/browser/language-status/editor-language-status-service.js +251 -251
  45. package/lib/browser/navigation/navigation-location-service.d.ts +103 -103
  46. package/lib/browser/navigation/navigation-location-service.js +281 -281
  47. package/lib/browser/navigation/navigation-location-service.spec.d.ts +1 -1
  48. package/lib/browser/navigation/navigation-location-service.spec.js +184 -184
  49. package/lib/browser/navigation/navigation-location-similarity.d.ts +15 -15
  50. package/lib/browser/navigation/navigation-location-similarity.js +62 -62
  51. package/lib/browser/navigation/navigation-location-similarity.spec.d.ts +1 -1
  52. package/lib/browser/navigation/navigation-location-similarity.spec.js +32 -32
  53. package/lib/browser/navigation/navigation-location-updater.d.ts +35 -35
  54. package/lib/browser/navigation/navigation-location-updater.js +210 -210
  55. package/lib/browser/navigation/navigation-location-updater.spec.d.ts +1 -1
  56. package/lib/browser/navigation/navigation-location-updater.spec.js +177 -177
  57. package/lib/browser/navigation/navigation-location.d.ts +191 -191
  58. package/lib/browser/navigation/navigation-location.js +300 -300
  59. package/lib/browser/navigation/test/mock-navigation-location-updater.d.ts +15 -15
  60. package/lib/browser/navigation/test/mock-navigation-location-updater.js +38 -38
  61. package/lib/browser/quick-editor-service.d.ts +16 -16
  62. package/lib/browser/quick-editor-service.js +109 -109
  63. package/lib/common/language-selector.d.ts +13 -13
  64. package/lib/common/language-selector.js +90 -90
  65. package/lib/package.spec.js +25 -25
  66. package/package.json +5 -5
  67. package/src/browser/decorations/editor-decoration-style.ts +41 -41
  68. package/src/browser/decorations/editor-decoration.ts +127 -127
  69. package/src/browser/decorations/editor-decorator.ts +36 -36
  70. package/src/browser/decorations/index.ts +19 -19
  71. package/src/browser/diff-navigator.ts +28 -28
  72. package/src/browser/editor-command.ts +414 -414
  73. package/src/browser/editor-contribution.ts +185 -185
  74. package/src/browser/editor-frontend-module.ts +85 -85
  75. package/src/browser/editor-generated-preference-schema.ts +2539 -2539
  76. package/src/browser/editor-keybinding-contexts.ts +87 -87
  77. package/src/browser/editor-keybinding.ts +55 -55
  78. package/src/browser/editor-manager.ts +429 -429
  79. package/src/browser/editor-menu.ts +224 -224
  80. package/src/browser/editor-navigation-contribution.ts +331 -331
  81. package/src/browser/editor-preferences.ts +220 -220
  82. package/src/browser/editor-variable-contribution.ts +54 -54
  83. package/src/browser/editor-widget-factory.ts +82 -82
  84. package/src/browser/editor-widget.ts +98 -98
  85. package/src/browser/editor.ts +358 -358
  86. package/src/browser/index.ts +26 -26
  87. package/src/browser/language-status/editor-language-status-service.ts +271 -271
  88. package/src/browser/language-status/editor-language-status.css +98 -98
  89. package/src/browser/navigation/navigation-location-service.spec.ts +245 -245
  90. package/src/browser/navigation/navigation-location-service.ts +284 -284
  91. package/src/browser/navigation/navigation-location-similarity.spec.ts +46 -46
  92. package/src/browser/navigation/navigation-location-similarity.ts +58 -58
  93. package/src/browser/navigation/navigation-location-updater.spec.ts +197 -197
  94. package/src/browser/navigation/navigation-location-updater.ts +220 -220
  95. package/src/browser/navigation/navigation-location.ts +418 -418
  96. package/src/browser/navigation/test/mock-navigation-location-updater.ts +41 -41
  97. package/src/browser/quick-editor-service.ts +94 -94
  98. package/src/browser/style/index.css +19 -19
  99. package/src/common/language-selector.ts +104 -104
  100. package/src/package.spec.ts +28 -28
@@ -1,20 +1,20 @@
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 WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.DiffNavigatorProvider = void 0;
19
- exports.DiffNavigatorProvider = Symbol('DiffNavigatorProvider');
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 WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.DiffNavigatorProvider = void 0;
19
+ exports.DiffNavigatorProvider = Symbol('DiffNavigatorProvider');
20
20
  //# sourceMappingURL=diff-navigator.js.map
@@ -1,103 +1,103 @@
1
- import { CommandContribution, CommandRegistry, Command } from '@theia/core/lib/common';
2
- import URI from '@theia/core/lib/common/uri';
3
- import { PreferenceService, LabelProvider, ApplicationShell, QuickInputService, QuickPickValue } from '@theia/core/lib/browser';
4
- import { EditorManager } from './editor-manager';
5
- import { EditorPreferences } from './editor-preferences';
6
- import { ResourceProvider, MessageService } from '@theia/core';
7
- import { LanguageService, Language } from '@theia/core/lib/browser/language-service';
8
- export declare namespace EditorCommands {
9
- const GOTO_LINE_COLUMN: Command;
10
- /**
11
- * Show editor references
12
- */
13
- const SHOW_REFERENCES: Command;
14
- /**
15
- * Change indentation configuration (i.e., indent using tabs / spaces, and how many spaces per tab)
16
- */
17
- const CONFIG_INDENTATION: Command;
18
- const CONFIG_EOL: Command;
19
- const INDENT_USING_SPACES: Command;
20
- const INDENT_USING_TABS: Command;
21
- const CHANGE_LANGUAGE: Command;
22
- const CHANGE_ENCODING: Command;
23
- const REVERT_EDITOR: Command;
24
- const REVERT_AND_CLOSE: Command;
25
- /**
26
- * Command for going back to the last editor navigation location.
27
- */
28
- const GO_BACK: Command;
29
- /**
30
- * Command for going to the forthcoming editor navigation location.
31
- */
32
- const GO_FORWARD: Command;
33
- /**
34
- * Command that reveals the last text edit location, if any.
35
- */
36
- const GO_LAST_EDIT: Command;
37
- /**
38
- * Command that clears the editor navigation history.
39
- */
40
- const CLEAR_EDITOR_HISTORY: Command;
41
- /**
42
- * Command that displays all editors that are currently opened.
43
- */
44
- const SHOW_ALL_OPENED_EDITORS: Command;
45
- /**
46
- * Command that toggles the minimap.
47
- */
48
- const TOGGLE_MINIMAP: Command;
49
- /**
50
- * Command that toggles the rendering of whitespace characters in the editor.
51
- */
52
- const TOGGLE_RENDER_WHITESPACE: Command;
53
- /**
54
- * Command that toggles the word wrap.
55
- */
56
- const TOGGLE_WORD_WRAP: Command;
57
- /**
58
- * Command that toggles sticky scroll.
59
- */
60
- const TOGGLE_STICKY_SCROLL: Command;
61
- /**
62
- * Command that re-opens the last closed editor.
63
- */
64
- const REOPEN_CLOSED_EDITOR: Command;
65
- /**
66
- * Opens a second instance of the current editor, splitting the view in the direction specified.
67
- */
68
- const SPLIT_EDITOR_RIGHT: Command;
69
- const SPLIT_EDITOR_DOWN: Command;
70
- const SPLIT_EDITOR_UP: Command;
71
- const SPLIT_EDITOR_LEFT: Command;
72
- /**
73
- * Default horizontal split: right.
74
- */
75
- const SPLIT_EDITOR_HORIZONTAL: Command;
76
- /**
77
- * Default vertical split: down.
78
- */
79
- const SPLIT_EDITOR_VERTICAL: Command;
80
- }
81
- export declare class EditorCommandContribution implements CommandContribution {
82
- static readonly AUTOSAVE_PREFERENCE: string;
83
- protected readonly shell: ApplicationShell;
84
- protected readonly preferencesService: PreferenceService;
85
- protected readonly editorPreferences: EditorPreferences;
86
- protected readonly quickInputService: QuickInputService;
87
- protected readonly messageService: MessageService;
88
- protected readonly labelProvider: LabelProvider;
89
- protected readonly languages: LanguageService;
90
- protected readonly editorManager: EditorManager;
91
- protected readonly resourceProvider: ResourceProvider;
92
- protected init(): void;
93
- registerCommands(registry: CommandRegistry): void;
94
- protected canConfigureLanguage(): boolean;
95
- protected configureLanguage(): Promise<void>;
96
- protected canConfigureEncoding(): boolean;
97
- protected configureEncoding(): Promise<void>;
98
- protected toQuickPickLanguage(value: Language, current: string): QuickPickValue<Language>;
99
- protected toLanguageUri(language: Language): URI;
100
- protected isAutoSaveOn(): boolean;
101
- protected toggleAutoSave(): Promise<void>;
102
- }
1
+ import { CommandContribution, CommandRegistry, Command } from '@theia/core/lib/common';
2
+ import URI from '@theia/core/lib/common/uri';
3
+ import { PreferenceService, LabelProvider, ApplicationShell, QuickInputService, QuickPickValue } from '@theia/core/lib/browser';
4
+ import { EditorManager } from './editor-manager';
5
+ import { EditorPreferences } from './editor-preferences';
6
+ import { ResourceProvider, MessageService } from '@theia/core';
7
+ import { LanguageService, Language } from '@theia/core/lib/browser/language-service';
8
+ export declare namespace EditorCommands {
9
+ const GOTO_LINE_COLUMN: Command;
10
+ /**
11
+ * Show editor references
12
+ */
13
+ const SHOW_REFERENCES: Command;
14
+ /**
15
+ * Change indentation configuration (i.e., indent using tabs / spaces, and how many spaces per tab)
16
+ */
17
+ const CONFIG_INDENTATION: Command;
18
+ const CONFIG_EOL: Command;
19
+ const INDENT_USING_SPACES: Command;
20
+ const INDENT_USING_TABS: Command;
21
+ const CHANGE_LANGUAGE: Command;
22
+ const CHANGE_ENCODING: Command;
23
+ const REVERT_EDITOR: Command;
24
+ const REVERT_AND_CLOSE: Command;
25
+ /**
26
+ * Command for going back to the last editor navigation location.
27
+ */
28
+ const GO_BACK: Command;
29
+ /**
30
+ * Command for going to the forthcoming editor navigation location.
31
+ */
32
+ const GO_FORWARD: Command;
33
+ /**
34
+ * Command that reveals the last text edit location, if any.
35
+ */
36
+ const GO_LAST_EDIT: Command;
37
+ /**
38
+ * Command that clears the editor navigation history.
39
+ */
40
+ const CLEAR_EDITOR_HISTORY: Command;
41
+ /**
42
+ * Command that displays all editors that are currently opened.
43
+ */
44
+ const SHOW_ALL_OPENED_EDITORS: Command;
45
+ /**
46
+ * Command that toggles the minimap.
47
+ */
48
+ const TOGGLE_MINIMAP: Command;
49
+ /**
50
+ * Command that toggles the rendering of whitespace characters in the editor.
51
+ */
52
+ const TOGGLE_RENDER_WHITESPACE: Command;
53
+ /**
54
+ * Command that toggles the word wrap.
55
+ */
56
+ const TOGGLE_WORD_WRAP: Command;
57
+ /**
58
+ * Command that toggles sticky scroll.
59
+ */
60
+ const TOGGLE_STICKY_SCROLL: Command;
61
+ /**
62
+ * Command that re-opens the last closed editor.
63
+ */
64
+ const REOPEN_CLOSED_EDITOR: Command;
65
+ /**
66
+ * Opens a second instance of the current editor, splitting the view in the direction specified.
67
+ */
68
+ const SPLIT_EDITOR_RIGHT: Command;
69
+ const SPLIT_EDITOR_DOWN: Command;
70
+ const SPLIT_EDITOR_UP: Command;
71
+ const SPLIT_EDITOR_LEFT: Command;
72
+ /**
73
+ * Default horizontal split: right.
74
+ */
75
+ const SPLIT_EDITOR_HORIZONTAL: Command;
76
+ /**
77
+ * Default vertical split: down.
78
+ */
79
+ const SPLIT_EDITOR_VERTICAL: Command;
80
+ }
81
+ export declare class EditorCommandContribution implements CommandContribution {
82
+ static readonly AUTOSAVE_PREFERENCE: string;
83
+ protected readonly shell: ApplicationShell;
84
+ protected readonly preferencesService: PreferenceService;
85
+ protected readonly editorPreferences: EditorPreferences;
86
+ protected readonly quickInputService: QuickInputService;
87
+ protected readonly messageService: MessageService;
88
+ protected readonly labelProvider: LabelProvider;
89
+ protected readonly languages: LanguageService;
90
+ protected readonly editorManager: EditorManager;
91
+ protected readonly resourceProvider: ResourceProvider;
92
+ protected init(): void;
93
+ registerCommands(registry: CommandRegistry): void;
94
+ protected canConfigureLanguage(): boolean;
95
+ protected configureLanguage(): Promise<void>;
96
+ protected canConfigureEncoding(): boolean;
97
+ protected configureEncoding(): Promise<void>;
98
+ protected toQuickPickLanguage(value: Language, current: string): QuickPickValue<Language>;
99
+ protected toLanguageUri(language: Language): URI;
100
+ protected isAutoSaveOn(): boolean;
101
+ protected toggleAutoSave(): Promise<void>;
102
+ }
103
103
  //# sourceMappingURL=editor-command.d.ts.map