Update all of our samples to target VSCode 1.100 or newer

This makes sure that if folks get a relatively recent `vscode.d.ts`. It also lets us safely bump up the target to es2024 so you can use all the latest lib additions
This commit is contained in:
Matt Bierner
2025-08-07 07:57:14 -07:00
parent 0b0bb2b6b8
commit 2ee6b0b7b9
258 changed files with 14028 additions and 15244 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,38 +1,38 @@
{
"name": "uri-handler-sample",
"publisher": "vscode-samples",
"description": "Uri Handler Sample",
"version": "0.0.1",
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Other"
],
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "uri-handler-sample.start",
"title": "Start handling Uris"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@eslint/js": "^9.13.0",
"@stylistic/eslint-plugin": "^2.9.0",
"@types/vscode": "^1.73.0",
"eslint": "^9.13.0",
"typescript": "^5.9.2",
"typescript-eslint": "^8.39.0"
}
}
"name": "uri-handler-sample",
"publisher": "vscode-samples",
"description": "Uri Handler Sample",
"version": "0.0.1",
"engines": {
"vscode": "^1.100.0"
},
"categories": [
"Other"
],
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "uri-handler-sample.start",
"title": "Start handling Uris"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@eslint/js": "^9.13.0",
"@stylistic/eslint-plugin": "^2.9.0",
"@types/vscode": "^1.100.0",
"eslint": "^9.13.0",
"typescript": "^5.9.2",
"typescript-eslint": "^8.39.0"
}
}

View File

@ -1,14 +1,14 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2020",
"target": "ES2024",
"outDir": "out",
"lib": [
"es6"
"ES2024"
],
"sourceMap": true,
"rootDir": "src",
"strict": true /* enable all strict type-checking options */
"strict": true /* enable all strict type-checking options */
/* Additional Checks */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
@ -18,4 +18,4 @@
"node_modules",
".vscode-test"
]
}
}