Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
834322cb6a | ||
|
|
349f5e1ff8 | ||
|
|
fc674d3e0d | ||
|
|
e6b404f009 | ||
|
|
30b87d515f | ||
|
|
087dc3dad1 | ||
|
|
8fb2196e67 | ||
|
|
fe4e5393e0 | ||
|
|
437f07ccc1 | ||
|
|
afa57178d9 | ||
|
|
f9824e1523 | ||
|
|
9fa19fe316 | ||
|
|
1e8b682afc | ||
|
|
7ee9dd2a49 | ||
|
|
9535565349 | ||
|
|
bcabfe6db1 | ||
|
|
b67d12ecdd | ||
|
|
2d865f87dd | ||
|
|
9403710c8a | ||
|
|
cb5b4478e5 |
@@ -2,6 +2,7 @@ import js from '@eslint/js';
|
||||
import tsparser from '@typescript-eslint/parser';
|
||||
import tsplugin from '@typescript-eslint/eslint-plugin';
|
||||
import globals from 'globals';
|
||||
import prettierConfig from 'eslint-config-prettier';
|
||||
|
||||
export default [
|
||||
// remonte (et --fix supprime) tout eslint-disable inutile : regle deja off, inactive, ou qui ne tire pas
|
||||
@@ -65,4 +66,8 @@ export default [
|
||||
{
|
||||
ignores: ['legacy/', 'out/', 'dist/', '.vscode-test/', '**/*.d.ts'],
|
||||
},
|
||||
// EN DERNIER : prettier est seul juge du formatage. Neutralise les regles de formatage des presets
|
||||
// (unicorn/number-literal-case, no-confusing-arrow, no-multi-spaces...) que le cron `eslint --fix`
|
||||
// reecrivait en sens inverse du cron `prettier --write` sur les memes octets (ticket 4152).
|
||||
prettierConfig,
|
||||
];
|
||||
|
||||
Generated
+182
-472
File diff suppressed because it is too large
Load Diff
+8
-7
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "vscodestat",
|
||||
"displayName": "vscodestat",
|
||||
"version": "1.8.0",
|
||||
"version": "1.8.9",
|
||||
"description": "",
|
||||
"categories": [
|
||||
"Other"
|
||||
@@ -53,15 +53,16 @@
|
||||
"@types/mocha": "^10.0.10",
|
||||
"@types/node": "26.x",
|
||||
"@types/vscode": "^1.125.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.64.0",
|
||||
"@typescript-eslint/parser": "^8.64.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.65.0",
|
||||
"@typescript-eslint/parser": "^8.65.0",
|
||||
"@vscode/test-cli": "^0.0.15",
|
||||
"@vscode/test-electron": "^3.0.0",
|
||||
"@vscode/test-electron": "^3.1.0",
|
||||
"eslint": "^10.1.0",
|
||||
"globals": "^17.7.0",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"globals": "^17.8.0",
|
||||
"husky": "^9.1.7",
|
||||
"lint-staged": "^17.0.8",
|
||||
"prettier": "^3.9.5",
|
||||
"lint-staged": "^17.3.0",
|
||||
"prettier": "^3.9.6",
|
||||
"ts-api-utils": "^2.5.0",
|
||||
"typescript": "^6.0.3"
|
||||
},
|
||||
|
||||
+5
-5
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user