Compare commits

...
3 Commits
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "vscodestat",
"version": "1.8.7",
"version": "1.8.8",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "vscodestat",
"version": "1.8.7",
"version": "1.8.8",
"license": "ISC",
"devDependencies": {
"@eslint/js": "^10.0.1",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "vscodestat",
"displayName": "vscodestat",
"version": "1.8.7",
"version": "1.8.8",
"description": "",
"categories": [
"Other"
+5 -5
View File
@@ -4,21 +4,21 @@ export function activate(context: vscode.ExtensionContext) {
console.log('Congratulations, your extension "vscodestat" is now active!');
// commande pour definir l'url
const disposable2 = vscode.commands.registerCommand('vscodestat.setUrl', async () => {
const setUrlCommand = vscode.commands.registerCommand('vscodestat.setUrl', async () => {
const url = await vscode.window.showInputBox({
prompt: 'Enter the URL:',
placeHolder: '',
});
if (url) {
vscode.workspace.getConfiguration().update('vscodestat.url', url, vscode.ConfigurationTarget.Global);
await vscode.workspace.getConfiguration().update('vscodestat.url', url, vscode.ConfigurationTarget.Global);
vscode.window.showInformationMessage('URL set successfully.');
}
});
context.subscriptions.push(disposable2);
context.subscriptions.push(setUrlCommand);
// commande pour tester l'url
const disposable3 = vscode.commands.registerCommand('vscodestat.callUrl', async () => {
const callUrlCommand = vscode.commands.registerCommand('vscodestat.callUrl', async () => {
const storedUrl = vscode.workspace.getConfiguration().get('vscodestat.url') as string;
if (!storedUrl) {
vscode.window.showWarningMessage('URL is not set. Please set the URL first.');
@@ -27,7 +27,7 @@ export function activate(context: vscode.ExtensionContext) {
await makeHttpRequest({ event: 'ping' });
vscode.window.showInformationMessage('callUrl done');
});
context.subscriptions.push(disposable3);
context.subscriptions.push(callUrlCommand);
// detecte une ouverture de fichier / nouvel onglet
vscode.window.onDidChangeActiveTextEditor(async (editor) => {