bump minimum vscode version so I can remove the activationevents

This commit is contained in:
nyanotech 2024-02-15 22:43:47 -08:00
parent de5fd886e0
commit 1449af6587
Signed by: nyanotech
GPG Key ID: D2D0A9E8F160472B
3 changed files with 10 additions and 23 deletions

View File

@ -1,20 +1,13 @@
# recombobulator # 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, those things are:
Currently available functions:
* (un)base64 * (un)base64
* generate uuid
* rot13 * rot13
This extension should properly support these vscode features:
* virtual workspaces
* untrusted workspaces
* multiple selections/cursors
## Release Notes ## Release Notes
### 0.0.1 ### 0.0.1

View File

@ -9,7 +9,7 @@
"url": "https://github.com/nyanotech/recombobulator.git" "url": "https://github.com/nyanotech/recombobulator.git"
}, },
"engines": { "engines": {
"vscode": "^1.65.0" "vscode": "^1.75.0"
}, },
"categories": [ "categories": [
"Other" "Other"
@ -21,12 +21,6 @@
"supported": true "supported": true
} }
}, },
"activationEvents": [
"onCommand:recombobulator.generate-uuid",
"onCommand:recombobulator.base64",
"onCommand:recombobulator.unbase64",
"onCommand:recombobulator.rot13"
],
"contributes": { "contributes": {
"commands": [ "commands": [
{ {

View File

@ -38,16 +38,16 @@ function applyEdit(transform: Function) {
export function activate(context: vscode.ExtensionContext) { export function activate(context: vscode.ExtensionContext) {
console.log('Recombobulator is activated!'); console.log('Recombobulator is activated!');
context.subscriptions.push(vscode.commands.registerCommand('recombobulator.generate-uuid', () => {
applyEdit(generateUUID);
}));
context.subscriptions.push(vscode.commands.registerCommand('recombobulator.base64', () => { context.subscriptions.push(vscode.commands.registerCommand('recombobulator.base64', () => {
applyEdit(base64); applyEdit(base64);
})); }));
context.subscriptions.push(vscode.commands.registerCommand('recombobulator.rot13', () => {
applyEdit(rot13);
}));
context.subscriptions.push(vscode.commands.registerCommand('recombobulator.unbase64', () => { context.subscriptions.push(vscode.commands.registerCommand('recombobulator.unbase64', () => {
applyEdit(unbase64); applyEdit(unbase64);
})); }));
context.subscriptions.push(vscode.commands.registerCommand('recombobulator.generate-uuid', () => {
applyEdit(generateUUID);
}));
context.subscriptions.push(vscode.commands.registerCommand('recombobulator.rot13', () => {
applyEdit(rot13);
}));
} }