Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderPho committed Sep 9, 2024
1 parent 6f0a8bd commit e931203
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
29 changes: 2 additions & 27 deletions src/cellTags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>(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'
});
Expand All @@ -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',
Expand Down
1 change: 0 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export function activate(context: vscode.ExtensionContext) {
vscode.window.onDidChangeActiveNotebookEditor(updateContext);
vscode.window.onDidChangeNotebookEditorSelection(updateContext);

// Initialize the status bar
updateContext();
}

Expand Down

0 comments on commit e931203

Please sign in to comment.