Compare commits
3
Commits
8fb2196e67
...
e6b404f009
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e6b404f009 | ||
|
|
30b87d515f | ||
|
|
087dc3dad1 |
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "vscodestat",
|
"name": "vscodestat",
|
||||||
"version": "1.8.7",
|
"version": "1.8.8",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "vscodestat",
|
"name": "vscodestat",
|
||||||
"version": "1.8.7",
|
"version": "1.8.8",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^10.0.1",
|
"@eslint/js": "^10.0.1",
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "vscodestat",
|
"name": "vscodestat",
|
||||||
"displayName": "vscodestat",
|
"displayName": "vscodestat",
|
||||||
"version": "1.8.7",
|
"version": "1.8.8",
|
||||||
"description": "",
|
"description": "",
|
||||||
"categories": [
|
"categories": [
|
||||||
"Other"
|
"Other"
|
||||||
|
|||||||
+5
-5
@@ -4,21 +4,21 @@ export function activate(context: vscode.ExtensionContext) {
|
|||||||
console.log('Congratulations, your extension "vscodestat" is now active!');
|
console.log('Congratulations, your extension "vscodestat" is now active!');
|
||||||
|
|
||||||
// commande pour definir l'url
|
// 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({
|
const url = await vscode.window.showInputBox({
|
||||||
prompt: 'Enter the URL:',
|
prompt: 'Enter the URL:',
|
||||||
placeHolder: '',
|
placeHolder: '',
|
||||||
});
|
});
|
||||||
|
|
||||||
if (url) {
|
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.');
|
vscode.window.showInformationMessage('URL set successfully.');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
context.subscriptions.push(disposable2);
|
context.subscriptions.push(setUrlCommand);
|
||||||
|
|
||||||
// commande pour tester l'url
|
// 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;
|
const storedUrl = vscode.workspace.getConfiguration().get('vscodestat.url') as string;
|
||||||
if (!storedUrl) {
|
if (!storedUrl) {
|
||||||
vscode.window.showWarningMessage('URL is not set. Please set the URL first.');
|
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' });
|
await makeHttpRequest({ event: 'ping' });
|
||||||
vscode.window.showInformationMessage('callUrl done');
|
vscode.window.showInformationMessage('callUrl done');
|
||||||
});
|
});
|
||||||
context.subscriptions.push(disposable3);
|
context.subscriptions.push(callUrlCommand);
|
||||||
|
|
||||||
// detecte une ouverture de fichier / nouvel onglet
|
// detecte une ouverture de fichier / nouvel onglet
|
||||||
vscode.window.onDidChangeActiveTextEditor(async (editor) => {
|
vscode.window.onDidChangeActiveTextEditor(async (editor) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user