Skip to content

Commit

Permalink
Fix capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed May 18, 2020
1 parent 0169c2a commit 3b3b915
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
16 changes: 13 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ import {
} from '@jupyterlab/application';
import { IChangedArgs } from '@jupyterlab/coreutils';
import { ISettingRegistry } from '@jupyterlab/settingregistry';
import { IStatusBar } from '@jupyterlab/statusbar';
import {
FileBrowser,
FileBrowserModel,
IFileBrowserFactory
} from '@jupyterlab/filebrowser';
import { IMainMenu } from '@jupyterlab/mainmenu';
import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
import { Menu } from '@lumino/widgets';
import { Menu, Widget } from '@lumino/widgets';
import { addCommands, CommandIDs } from './gitMenuCommands';
import { GitExtension } from './model';
import { IGitExtension } from './tokens';
Expand Down Expand Up @@ -43,7 +44,8 @@ const plugin: JupyterFrontEndPlugin<IGitExtension> = {
ILayoutRestorer,
IFileBrowserFactory,
IRenderMimeRegistry,
ISettingRegistry
ISettingRegistry,
IStatusBar
],
provides: IGitExtension,
activate,
Expand All @@ -64,7 +66,8 @@ async function activate(
restorer: ILayoutRestorer,
factory: IFileBrowserFactory,
renderMime: IRenderMimeRegistry,
settingRegistry: ISettingRegistry
settingRegistry: ISettingRegistry,
statusBar: IStatusBar
): Promise<IGitExtension> {
let settings: ISettingRegistry.ISettings;

Expand Down Expand Up @@ -120,6 +123,13 @@ async function activate(
// Add a clone button to the file browser extension toolbar
addCloneButton(gitExtension, factory.defaultBrowser);

const statusWidget = new Widget();
statusBar.registerStatusItem('git-status', {
align: 'left',
item: statusWidget
});
statusWidget.node.textContent = 'beep boop';

return gitExtension;
}

Expand Down
4 changes: 2 additions & 2 deletions src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class GitExtension implements IGitExtension {
}
})
.catch(reason => {
console.error(`Fail to find git top level for path ${v}.\n${reason}`);
console.error(`Fail to find Git top level for path ${v}.\n${reason}`);
});

void this._readyPromise.then(() => {
Expand Down Expand Up @@ -220,7 +220,7 @@ export class GitExtension implements IGitExtension {
new Response(
JSON.stringify({
code: -1,
message: 'Not in a git repository.'
message: 'Not in a Git repository.'
})
)
);
Expand Down

0 comments on commit 3b3b915

Please sign in to comment.