@jupyterlab/fileeditor-extension 4.0.0-alpha.2 → 4.0.0-alpha.21
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 +18 -5
- package/lib/commands.js +279 -116
- package/lib/commands.js.map +1 -1
- package/lib/index.js +253 -26
- 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 -22
- package/schema/completer.json +14 -0
- package/schema/plugin.json +48 -103
- package/src/commands.ts +1388 -0
- package/src/index.ts +672 -0
- package/src/syntaxstatus.ts +64 -0
- package/style/index.css +6 -2
- package/style/index.js +6 -2
package/lib/commands.d.ts
CHANGED
|
@@ -1,12 +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, IEditorThemeRegistry } from '@jupyterlab/codemirror';
|
|
5
|
+
import { ICompletionProviderManager } from '@jupyterlab/completer';
|
|
2
6
|
import { IConsoleTracker } from '@jupyterlab/console';
|
|
3
7
|
import { IDocumentWidget } from '@jupyterlab/docregistry';
|
|
4
|
-
import {
|
|
5
|
-
import { FileEditor } from '@jupyterlab/fileeditor';
|
|
8
|
+
import { IDefaultFileBrowser } from '@jupyterlab/filebrowser';
|
|
9
|
+
import { FileEditor, IEditorTracker } from '@jupyterlab/fileeditor';
|
|
6
10
|
import { ILauncher } from '@jupyterlab/launcher';
|
|
7
11
|
import { IMainMenu } from '@jupyterlab/mainmenu';
|
|
8
12
|
import { ISettingRegistry } from '@jupyterlab/settingregistry';
|
|
9
|
-
import { TranslationBundle } from '@jupyterlab/translation';
|
|
13
|
+
import { ITranslator, TranslationBundle } from '@jupyterlab/translation';
|
|
10
14
|
import { CommandRegistry } from '@lumino/commands';
|
|
11
15
|
import { ReadonlyJSONObject } from '@lumino/coreutils';
|
|
12
16
|
/**
|
|
@@ -37,6 +41,13 @@ export declare namespace CommandIDs {
|
|
|
37
41
|
const copy = "fileeditor:copy";
|
|
38
42
|
const paste = "fileeditor:paste";
|
|
39
43
|
const selectAll = "fileeditor:select-all";
|
|
44
|
+
const invokeCompleter = "completer:invoke-file";
|
|
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";
|
|
40
51
|
}
|
|
41
52
|
export interface IFileTypeData extends ReadonlyJSONObject {
|
|
42
53
|
fileExt: string;
|
|
@@ -70,7 +81,8 @@ export declare namespace Commands {
|
|
|
70
81
|
/**
|
|
71
82
|
* Wrapper function for adding the default File Editor commands
|
|
72
83
|
*/
|
|
73
|
-
function addCommands(commands: CommandRegistry, settingRegistry: ISettingRegistry, trans: TranslationBundle, id: string, isEnabled: () => boolean, tracker: WidgetTracker<IDocumentWidget<FileEditor>>,
|
|
84
|
+
function addCommands(commands: CommandRegistry, settingRegistry: ISettingRegistry, trans: TranslationBundle, id: string, isEnabled: () => boolean, tracker: WidgetTracker<IDocumentWidget<FileEditor>>, defaultBrowser: IDefaultFileBrowser, extensions: IEditorExtensionRegistry, languages: IEditorLanguageRegistry, themes: IEditorThemeRegistry, consoleTracker: IConsoleTracker | null, sessionDialogs: ISessionContextDialogs | null, mainMenu: IMainMenu | null): void;
|
|
85
|
+
function addCompleterCommands(commands: CommandRegistry, editorTracker: IEditorTracker, manager: ICompletionProviderManager, translator: ITranslator | null): void;
|
|
74
86
|
/**
|
|
75
87
|
* Wrapper function for adding the default launcher items for File Editor
|
|
76
88
|
*/
|
|
@@ -123,4 +135,5 @@ export declare namespace Commands {
|
|
|
123
135
|
* Add a File Editor code runner to the Run menu
|
|
124
136
|
*/
|
|
125
137
|
function addCodeRunnersToRunMenu(menu: IMainMenu, consoleTracker: IConsoleTracker): void;
|
|
138
|
+
function addOpenCodeViewerCommand(app: JupyterFrontEnd, editorServices: IEditorServices, tracker: WidgetTracker<MainAreaWidget<CodeViewerWidget>>, trans: TranslationBundle): void;
|
|
126
139
|
}
|