@theia/editor 1.18.0 → 1.19.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 (36) hide show
  1. package/lib/browser/editor-command.d.ts +2 -0
  2. package/lib/browser/editor-command.d.ts.map +1 -1
  3. package/lib/browser/editor-command.js +80 -65
  4. package/lib/browser/editor-command.js.map +1 -1
  5. package/lib/browser/editor-contribution.d.ts +1 -2
  6. package/lib/browser/editor-contribution.d.ts.map +1 -1
  7. package/lib/browser/editor-contribution.js +6 -5
  8. package/lib/browser/editor-contribution.js.map +1 -1
  9. package/lib/browser/editor-manager.d.ts +1 -2
  10. package/lib/browser/editor-manager.d.ts.map +1 -1
  11. package/lib/browser/editor-manager.js.map +1 -1
  12. package/lib/browser/editor-menu.d.ts +13 -1
  13. package/lib/browser/editor-menu.d.ts.map +1 -1
  14. package/lib/browser/editor-menu.js +32 -7
  15. package/lib/browser/editor-menu.js.map +1 -1
  16. package/lib/browser/editor-preferences.d.ts +2 -0
  17. package/lib/browser/editor-preferences.d.ts.map +1 -1
  18. package/lib/browser/editor-preferences.js +302 -291
  19. package/lib/browser/editor-preferences.js.map +1 -1
  20. package/lib/browser/editor-widget-factory.js +1 -1
  21. package/lib/browser/editor-widget-factory.js.map +1 -1
  22. package/lib/browser/editor.d.ts +1 -2
  23. package/lib/browser/editor.d.ts.map +1 -1
  24. package/lib/browser/editor.js.map +1 -1
  25. package/lib/browser/quick-editor-service.d.ts +1 -2
  26. package/lib/browser/quick-editor-service.d.ts.map +1 -1
  27. package/lib/browser/quick-editor-service.js.map +1 -1
  28. package/package.json +5 -5
  29. package/src/browser/editor-command.ts +80 -65
  30. package/src/browser/editor-contribution.ts +7 -7
  31. package/src/browser/editor-manager.ts +1 -2
  32. package/src/browser/editor-menu.ts +35 -7
  33. package/src/browser/editor-preferences.ts +302 -291
  34. package/src/browser/editor-widget-factory.ts +2 -2
  35. package/src/browser/editor.ts +1 -2
  36. package/src/browser/quick-editor-service.ts +1 -2
@@ -14,7 +14,7 @@
14
14
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15
15
  ********************************************************************************/
16
16
 
17
- import { injectable, inject, } from '@theia/core/shared/inversify';
17
+ import { injectable, inject } from '@theia/core/shared/inversify';
18
18
  import URI from '@theia/core/lib/common/uri';
19
19
  import { SelectionService } from '@theia/core/lib/common';
20
20
  import { NavigatableWidgetOptions, WidgetFactory, LabelProvider } from '@theia/core/lib/browser';
@@ -71,7 +71,7 @@ export class EditorWidgetFactory implements WidgetFactory {
71
71
  }
72
72
 
73
73
  private setLabels(editor: EditorWidget, uri: URI): void {
74
- editor.title.caption = this.labelProvider.getLongName(uri);
74
+ editor.title.caption = uri.path.toString();
75
75
  const icon = this.labelProvider.getIcon(uri);
76
76
  editor.title.label = this.labelProvider.getName(uri);
77
77
  editor.title.iconClass = icon + ' file-icon';
@@ -17,10 +17,9 @@
17
17
  import { Position, Range, Location } from '@theia/core/shared/vscode-languageserver-types';
18
18
  import * as lsp from '@theia/core/shared/vscode-languageserver-types';
19
19
  import URI from '@theia/core/lib/common/uri';
20
- import { Event, Disposable, TextDocumentContentChangeDelta } from '@theia/core/lib/common';
20
+ import { Event, Disposable, TextDocumentContentChangeDelta, Reference } from '@theia/core/lib/common';
21
21
  import { Saveable, Navigatable, Widget } from '@theia/core/lib/browser';
22
22
  import { EditorDecoration } from './decorations';
23
- import { Reference } from '@theia/core/lib/common';
24
23
 
25
24
  export {
26
25
  Position, Range, Location
@@ -19,8 +19,7 @@ import { CancellationToken } from '@theia/core/lib/common';
19
19
  import URI from '@theia/core/lib/common/uri';
20
20
  import { LabelProvider } from '@theia/core/lib/browser/label-provider';
21
21
  import { OpenerService } from '@theia/core/lib/browser/opener-service';
22
- import { QuickAccessProvider, QuickAccessRegistry } from '@theia/core/lib/browser/quick-input/quick-access';
23
- import { QuickAccessContribution } from '@theia/core/lib/browser/quick-input/quick-access';
22
+ import { QuickAccessProvider, QuickAccessRegistry, QuickAccessContribution } from '@theia/core/lib/browser/quick-input/quick-access';
24
23
  import { filterItems, QuickPickItem, QuickPickSeparator } from '@theia/core/lib/browser/quick-input/quick-input-service';
25
24
  import { EditorManager, EditorWidget } from '.';
26
25