Skip to content

Commit a0b6ba5

Browse files
committed
Fix lint
1 parent 8eb73f2 commit a0b6ba5

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

src/index.ts

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,24 @@ async function fetchContents(
5151
}
5252

5353
/**
54-
* Shows files nested under directories in the root notebooks directory
55-
* configured on the server.
54+
* Shows files nested under directories in the root notebooks directory configured on the server.
5655
*/
5756
class QuickOpenWidget extends CommandPalette {
5857
private _pathSelected = new Signal<this, string>(this);
5958
private _settings: ReadonlyPartialJSONObject;
6059
private _fileBrowser: FileBrowser;
6160

62-
constructor(factory: IFileBrowserFactory, settings: ReadonlyPartialJSONObject, options: CommandPalette.IOptions) {
61+
constructor(
62+
factory: IFileBrowserFactory,
63+
settings: ReadonlyPartialJSONObject,
64+
options: CommandPalette.IOptions
65+
) {
6366
super(options);
6467

6568
this.id = 'jupyterlab-quickopen';
6669
this.title.iconClass = 'jp-SideBar-tabIcon jp-SearchIcon';
6770
this.title.caption = 'Quick Open';
68-
71+
6972
this._settings = settings;
7073
this._fileBrowser = factory.defaultBrowser;
7174
}
@@ -103,8 +106,8 @@ class QuickOpenWidget extends CommandPalette {
103106
// Creates commands that are relative file paths on the server
104107
const command = `${category}/${fn}`;
105108
if (!this.commands.hasCommand(command)) {
106-
// Only add the command to the registry if it does not yet exist
107-
// TODO: Track disposables and remove
109+
// Only add the command to the registry if it does not yet exist TODO: Track disposables
110+
// and remove
108111
this.commands.addCommand(command, {
109112
label: fn,
110113
execute: () => {
@@ -146,12 +149,16 @@ const extension: JupyterFrontEndPlugin<void> = {
146149
const settings: ISettingRegistry.ISettings = await settingRegistry.load(
147150
extension.id
148151
);
149-
const widget: QuickOpenWidget = new QuickOpenWidget(fileBrowserFactory, settings.composite, {
150-
commands
151-
});
152+
const widget: QuickOpenWidget = new QuickOpenWidget(
153+
fileBrowserFactory,
154+
settings.composite,
155+
{
156+
commands
157+
}
158+
);
152159

153-
// Listen for path selection signals and show the selected files in the
154-
// appropriate editor/viewer
160+
// Listen for path selection signals and show the selected files in the appropriate
161+
// editor/viewer
155162
widget.pathSelected.connect((sender: QuickOpenWidget, path: string) => {
156163
labShell.collapseLeft();
157164
docManager.openOrReveal(PathExt.normalize(path));
@@ -162,8 +169,8 @@ const extension: JupyterFrontEndPlugin<void> = {
162169
widget.settings = settings.composite;
163170
});
164171

165-
// Add a command to activate the quickopen sidebar so that the user can
166-
// find it in the command palette, assign a hotkey, etc.
172+
// Add a command to activate the quickopen sidebar so that the user can find it in the command
173+
// palette, assign a hotkey, etc.
167174
const command = 'quickopen:activate';
168175
app.commands.addCommand(command, {
169176
label: 'Quick Open',

0 commit comments

Comments
 (0)