Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Small code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Apr 19, 2018
1 parent 805374e commit f710e41
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,13 @@
*
* - Hook up as an abstract editor? Or at least as another default editor
* - `monaco.languages.getLanguages()` contains all of the highlighting modes -
* use it to intelligently select a highlighter.
*
*/

import {
JupyterLab, JupyterLabPlugin
} from '@jupyterlab/application';

/*
import {
CodeEditor
} from '@jupyterlab/codeeditor';
*/
import {
ICommandPalette
} from '@jupyterlab/apputils';
Expand All @@ -35,7 +29,6 @@ import {
PromiseDelegate
} from '@phosphor/coreutils';


import {
Widget
} from '@phosphor/widgets';
Expand Down Expand Up @@ -77,8 +70,7 @@ class MonacoWidget extends Widget implements DocumentRegistry.IReadyWidget {
constructor(context: DocumentRegistry.CodeContext) {
super();
this.id = uuid();
const localPath = context.localPath;
this.title.label = PathExt.basename(localPath);
this.title.label = PathExt.basename(context.localPath);
this.title.closable = true;
this.context = context;

Expand Down

0 comments on commit f710e41

Please sign in to comment.