@jupyterlab/fileeditor-extension 4.0.0-alpha.9 → 4.0.0-beta.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.
package/lib/commands.d.ts CHANGED
@@ -1,13 +1,16 @@
1
- import { ICommandPalette, ISessionContextDialogs, WidgetTracker } from '@jupyterlab/apputils';
1
+ import { JupyterFrontEnd } from '@jupyterlab/application';
2
+ import { ICommandPalette, ISessionContextDialogs, MainAreaWidget, WidgetTracker } from '@jupyterlab/apputils';
3
+ import { CodeViewerWidget, IEditorServices } from '@jupyterlab/codeeditor';
4
+ import { IEditorExtensionRegistry, IEditorLanguageRegistry } from '@jupyterlab/codemirror';
2
5
  import { ICompletionProviderManager } from '@jupyterlab/completer';
3
6
  import { IConsoleTracker } from '@jupyterlab/console';
4
7
  import { IDocumentWidget } from '@jupyterlab/docregistry';
5
- import { IFileBrowserFactory } from '@jupyterlab/filebrowser';
8
+ import { IDefaultFileBrowser } from '@jupyterlab/filebrowser';
6
9
  import { FileEditor, IEditorTracker } from '@jupyterlab/fileeditor';
7
10
  import { ILauncher } from '@jupyterlab/launcher';
8
11
  import { IMainMenu } from '@jupyterlab/mainmenu';
9
12
  import { ISettingRegistry } from '@jupyterlab/settingregistry';
10
- import { TranslationBundle } from '@jupyterlab/translation';
13
+ import { ITranslator, TranslationBundle } from '@jupyterlab/translation';
11
14
  import { CommandRegistry } from '@lumino/commands';
12
15
  import { ReadonlyJSONObject } from '@lumino/coreutils';
13
16
  /**
@@ -40,6 +43,11 @@ export declare namespace CommandIDs {
40
43
  const selectAll = "fileeditor:select-all";
41
44
  const invokeCompleter = "completer:invoke-file";
42
45
  const selectCompleter = "completer:select-file";
46
+ const openCodeViewer = "code-viewer:open";
47
+ const changeTheme = "fileeditor:change-theme";
48
+ const changeLanguage = "fileeditor:change-language";
49
+ const find = "fileeditor:find";
50
+ const goToLine = "fileeditor:go-to-line";
43
51
  }
44
52
  export interface IFileTypeData extends ReadonlyJSONObject {
45
53
  fileExt: string;
@@ -73,8 +81,8 @@ export declare namespace Commands {
73
81
  /**
74
82
  * Wrapper function for adding the default File Editor commands
75
83
  */
76
- function addCommands(commands: CommandRegistry, settingRegistry: ISettingRegistry, trans: TranslationBundle, id: string, isEnabled: () => boolean, tracker: WidgetTracker<IDocumentWidget<FileEditor>>, browserFactory: IFileBrowserFactory, consoleTracker: IConsoleTracker | null, sessionDialogs: ISessionContextDialogs | null): void;
77
- function addCompleterCommands(commands: CommandRegistry, editorTracker: IEditorTracker, manager: ICompletionProviderManager): void;
84
+ function addCommands(commands: CommandRegistry, settingRegistry: ISettingRegistry, trans: TranslationBundle, id: string, isEnabled: () => boolean, tracker: WidgetTracker<IDocumentWidget<FileEditor>>, defaultBrowser: IDefaultFileBrowser, extensions: IEditorExtensionRegistry, languages: IEditorLanguageRegistry, consoleTracker: IConsoleTracker | null, sessionDialogs: ISessionContextDialogs): void;
85
+ function addCompleterCommands(commands: CommandRegistry, editorTracker: IEditorTracker, manager: ICompletionProviderManager, translator: ITranslator | null): void;
78
86
  /**
79
87
  * Wrapper function for adding the default launcher items for File Editor
80
88
  */
@@ -127,4 +135,5 @@ export declare namespace Commands {
127
135
  * Add a File Editor code runner to the Run menu
128
136
  */
129
137
  function addCodeRunnersToRunMenu(menu: IMainMenu, consoleTracker: IConsoleTracker): void;
138
+ function addOpenCodeViewerCommand(app: JupyterFrontEnd, editorServices: IEditorServices, tracker: WidgetTracker<MainAreaWidget<CodeViewerWidget>>, trans: TranslationBundle): void;
130
139
  }