Skip to content

Commit ab6edfb

Browse files
committed
Check build
1 parent 1550593 commit ab6edfb

File tree

5 files changed

+4
-21
lines changed

5 files changed

+4
-21
lines changed

src/CodeSnippetDisplay.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,8 @@ export class CodeSnippetDisplay extends React.Component<
12311231
// this is why state doesn't change
12321232
if (prevState.searchValue === '' && prevState.filterTags.length === 0) {
12331233
return {
1234-
codeSnippets: nextProps.codeSnippetManager.snippets,
1234+
// codeSnippets: nextProps.codeSnippetManager.snippets,
1235+
codeSnippets: nextProps.codeSnippets,
12351236
matchIndices: [],
12361237
searchValue: '',
12371238
filterTags: [],

src/CodeSnippetInputDialog.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export function CodeSnippetInputDialog(
5959
): Promise<Contents.IModel | null> {
6060
const tags: string[] = [];
6161
const codeSnippetManager = CodeSnippetService.getCodeSnippetService();
62+
6263
const snippets = codeSnippetManager.snippets;
6364

6465
for (const snippet of snippets) {
@@ -143,14 +144,6 @@ export function showInputDialog(
143144
}
144145
}
145146
);
146-
// console.log('uh reached here');
147-
// result
148-
// .then(newSnippets => {
149-
// codeSnippetWidget.renderCodeSnippetsSignal.emit(newSnippets);
150-
// })
151-
// .catch(_ => {
152-
// console.log('cancelling overwrite!');
153-
// });
154147
return;
155148
}
156149
}

src/CodeSnippetService.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ export class CodeSnippetService {
2121

2222
// just in case when user changes the snippets using settingsEditor
2323
this.settingManager.changed.connect((plugin) => {
24-
console.log('changed');
2524
const newCodeSnippetList = plugin.get('snippets').user;
26-
console.log(newCodeSnippetList);
2725
this.codeSnippetList = this.convertToICodeSnippetList(
2826
newCodeSnippetList as JSONArray
2927
);

src/CodeSnippetWidget.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ export class CodeSnippetWidget extends ReactWidget {
330330
}
331331
});
332332
const newSnippets = this.codeSnippetManager.snippets;
333-
console.log(newSnippets);
334333
this.renderCodeSnippetsSignal.emit(newSnippets);
335334
}
336335

src/index.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,7 @@ const codeSnippetIcon = new LabIcon({
6868
const code_snippet_extension: JupyterFrontEndPlugin<void> = {
6969
id: CODE_SNIPPET_EXTENSION_ID,
7070
autoStart: true,
71-
requires: [
72-
ICommandPalette,
73-
ILayoutRestorer,
74-
IEditorServices,
75-
ISettingRegistry,
76-
],
71+
requires: [ICommandPalette, ILayoutRestorer, IEditorServices],
7772
activate: activateCodeSnippet,
7873
};
7974

@@ -258,9 +253,6 @@ const codeSnippetExtensionSetting: JupyterFrontEndPlugin<void> = {
258253
autoStart: true,
259254
requires: [ISettingRegistry],
260255
activate: (app: JupyterFrontEnd, settingRegistry: ISettingRegistry) => {
261-
// settingRegistry
262-
// .get(CODE_SNIPPET_SETTING_ID, 'snippets')
263-
// .then(value => console.log(value));
264256
void settingRegistry
265257
.load(CODE_SNIPPET_SETTING_ID)
266258
.then((settings) => {

0 commit comments

Comments
 (0)