From 1449af658769c01d0c84be4267c358b61086a337 Mon Sep 17 00:00:00 2001 From: nyanotech Date: Thu, 15 Feb 2024 22:43:47 -0800 Subject: [PATCH] bump minimum vscode version so I can remove the activationevents --- README.md | 13 +++---------- package.json | 8 +------- src/extension.ts | 12 ++++++------ 3 files changed, 10 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index e7c9eb8..cda2d06 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,13 @@ # recombobulator -vscode extension to add various text functions and encodings. +This is a vscode extension in which I add small things that I wish vscode could do. -## Features - -Currently available functions: +Currently, those things are: * (un)base64 +* generate uuid * rot13 -This extension should properly support these vscode features: - -* virtual workspaces -* untrusted workspaces -* multiple selections/cursors - ## Release Notes ### 0.0.1 diff --git a/package.json b/package.json index 6aec684..d0a1977 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/nyanotech/recombobulator.git" }, "engines": { - "vscode": "^1.65.0" + "vscode": "^1.75.0" }, "categories": [ "Other" @@ -21,12 +21,6 @@ "supported": true } }, - "activationEvents": [ - "onCommand:recombobulator.generate-uuid", - "onCommand:recombobulator.base64", - "onCommand:recombobulator.unbase64", - "onCommand:recombobulator.rot13" - ], "contributes": { "commands": [ { diff --git a/src/extension.ts b/src/extension.ts index 8e1fb25..dcbc80b 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -38,16 +38,16 @@ function applyEdit(transform: Function) { export function activate(context: vscode.ExtensionContext) { console.log('Recombobulator is activated!'); - context.subscriptions.push(vscode.commands.registerCommand('recombobulator.generate-uuid', () => { - applyEdit(generateUUID); - })); context.subscriptions.push(vscode.commands.registerCommand('recombobulator.base64', () => { applyEdit(base64); })); - context.subscriptions.push(vscode.commands.registerCommand('recombobulator.rot13', () => { - applyEdit(rot13); - })); context.subscriptions.push(vscode.commands.registerCommand('recombobulator.unbase64', () => { applyEdit(unbase64); })); + context.subscriptions.push(vscode.commands.registerCommand('recombobulator.generate-uuid', () => { + applyEdit(generateUUID); + })); + context.subscriptions.push(vscode.commands.registerCommand('recombobulator.rot13', () => { + applyEdit(rot13); + })); }