Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Commit 4f2753e

Browse files
committed
0.1.75
1 parent c6cdcfd commit 4f2753e

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aws/awsgluenotebooks-extensions",
3-
"version": "0.1.74",
3+
"version": "0.1.75",
44
"description": "A JupyterLab extension.",
55
"keywords": [
66
"amazon",

src/index.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { ICommandPalette, IThemeManager } from '@jupyterlab/apputils';
77
import { IDocumentManager } from '@jupyterlab/docmanager';
88
import { INotebookTracker, NotebookPanel } from '@jupyterlab/notebook';
99
import { ITranslator } from '@jupyterlab/translation';
10+
import { IStateDB } from '@jupyterlab/statedb';
1011
import {
1112
NotebookEventType,
1213
onNotebookChange,
@@ -24,10 +25,12 @@ const activate = (
2425
notebookTracker: INotebookTracker,
2526
commandPalette: ICommandPalette,
2627
themeManager: IThemeManager,
27-
translator: ITranslator
28+
translator: ITranslator,
29+
state: IStateDB
2830
): void => {
2931
const trans = translator.load('jupyterlab');
3032
const style = '@amzn/awsgluenotebooks-extensions/style/index.css';
33+
const PLUGIN_ID = '@aws/amazon-codeguru-extension';
3134

3235
themeManager.register({
3336
name: 'Glue Studio UI Light',
@@ -37,6 +40,10 @@ const activate = (
3740
unload: () => Promise.resolve(undefined)
3841
});
3942

43+
state.save(`${PLUGIN_ID}:plugin`, {
44+
isFirstTime: false
45+
});
46+
4047
// TODO: The script name should be coming from iFrame communication; so we need to populate that here.
4148
const temporaryScriptName = '/Untitled.ipynb';
4249
labShell.mode = 'single-document';
@@ -49,10 +56,10 @@ const activate = (
4956
const body = document.querySelector('body');
5057

5158
// Ensuring extension loads in an iframe within the AWS console context; otherwise do early return
52-
if (window.location === window.parent.location) {
53-
body.innerHTML = '';
54-
return;
55-
}
59+
// if (window.location === window.parent.location) {
60+
// body.innerHTML = '';
61+
// return;
62+
// }
5663

5764
body?.setAttribute('id', 'glue-base');
5865
body?.classList.add('aws-fake-loader');

0 commit comments

Comments
 (0)