diff --git a/src/cellTags.ts b/src/cellTags.ts index ac26397..c4cf88b 100644 --- a/src/cellTags.ts +++ b/src/cellTags.ts @@ -184,31 +184,6 @@ export function register(context: vscode.ExtensionContext) { } const disposables: vscode.Disposable[] = []; try { - // const knownTags = activeCells.map(cell => cell.metadata.custom?.metadata?.tags ?? []).flat().sort(); - // const knownTagsLowerCased = new Set(knownTags.map(tag => tag.toLowerCase())); - // const knownTagQuickPickItems = Array.from(new Set(knownTags)).map(tag => ({ label: tag })); - // // const quickPick = vscode.window.createQuickPick(); - // // disposables.push(quickPick); - // // quickPick.placeholder = 'Type to select or create a cell tag'; - // // quickPick.items = knownTagQuickPickItems; - // // quickPick.show(); - // // quickPick.onDidChangeValue(e => { - // // e = e.trim().toLowerCase(); - // // if (!e || knownTagsLowerCased.has(e)) { - // // return; - // // } - // // quickPick.items = knownTagQuickPickItems.concat({ label: e }).sort(); - // // }, undefined, disposables); - // const tag = await new Promise(resolve => { - // quickPick.onDidHide(() => resolve(''), undefined, disposables); - // quickPick.onDidAccept(() => { - // if (quickPick.selectedItems.length) { - // resolve(quickPick.selectedItems[0].label); - // quickPick.hide(); - // } - // }, undefined, disposables); - // }); - const tag = await vscode.window.showInputBox({ placeHolder: 'Type to create a cell tag' }); @@ -220,8 +195,8 @@ export function register(context: vscode.ExtensionContext) { disposables.forEach(d => d.dispose()); } })); - - + + context.subscriptions.push( vscode.commands.registerCommand( 'jupyter-cell-tags.paramaterize', diff --git a/src/extension.ts b/src/extension.ts index 5ed7991..510de5f 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -13,7 +13,6 @@ export function activate(context: vscode.ExtensionContext) { vscode.window.onDidChangeActiveNotebookEditor(updateContext); vscode.window.onDidChangeNotebookEditorSelection(updateContext); - // Initialize the status bar updateContext(); }