@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 +14 -5
- package/lib/commands.js +255 -115
- package/lib/commands.js.map +1 -1
- package/lib/index.js +168 -36
- package/lib/index.js.map +1 -1
- package/lib/syntaxstatus.d.ts +5 -0
- package/lib/syntaxstatus.js +44 -0
- package/lib/syntaxstatus.js.map +1 -0
- package/package.json +33 -26
- package/schema/plugin.json +48 -119
- package/src/commands.ts +1382 -0
- package/src/index.ts +673 -0
- package/src/syntaxstatus.ts +64 -0
- package/style/index.css +4 -1
- package/style/index.js +4 -1
package/lib/commands.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
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>>,
|
|
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
|
}
|