Work towards getting isolated built-in extension compiles

For #271167

This makes it so our built-in extensions can mostly be built using `tsc` on the command line. Previously the extensions were picking up a lot of typing info from the root `node_modules` that meant they weren't truly independent
This commit is contained in:
Matt Bierner
2025-10-13 11:03:20 -07:00
parent bb0294ffca
commit 98b069c041
59 changed files with 295 additions and 126 deletions

View File

@@ -4,6 +4,9 @@
"outDir": "./out", "outDir": "./out",
"types": [ "types": [
"node" "node"
],
"typeRoots": [
"./node_modules/@types"
] ]
}, },
"include": [ "include": [

View File

@@ -6,6 +6,9 @@
"webworker" "webworker"
], ],
"module": "Node16", "module": "Node16",
"typeRoots": [
"../node_modules/@types"
]
}, },
"include": [ "include": [
"src/**/*", "src/**/*",

View File

@@ -16,7 +16,7 @@
"vscode-uri": "^3.1.0" "vscode-uri": "^3.1.0"
}, },
"devDependencies": { "devDependencies": {
"@types/mocha": "^9.1.1", "@types/mocha": "^10.0.10",
"@types/node": "22.x" "@types/node": "22.x"
}, },
"scripts": { "scripts": {

View File

@@ -7,6 +7,9 @@
"WebWorker" "WebWorker"
], ],
"module": "Node16", "module": "Node16",
"typeRoots": [
"../node_modules/@types"
]
}, },
"include": [ "include": [
"src/**/*" "src/**/*"

View File

@@ -5,6 +5,9 @@
"downlevelIteration": true, "downlevelIteration": true,
"types": [ "types": [
"node" "node"
],
"typeRoots": [
"./node_modules/@types"
] ]
}, },
"include": [ "include": [

View File

@@ -5,6 +5,9 @@
"downlevelIteration": true, "downlevelIteration": true,
"types": [ "types": [
"node" "node"
],
"typeRoots": [
"./node_modules/@types"
] ]
}, },
"include": [ "include": [

View File

@@ -1,7 +1,11 @@
{ {
"extends": "../tsconfig.base.json", "extends": "../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./out" "outDir": "./out",
"typeRoots": [
"./node_modules/@types"
],
"skipLibCheck": true
}, },
"exclude": [ "exclude": [
"node_modules", "node_modules",

View File

@@ -3,7 +3,7 @@
"compilerOptions": { "compilerOptions": {
"outDir": "./out", "outDir": "./out",
"typeRoots": [ "typeRoots": [
"node_modules/@types" "./node_modules/@types"
] ]
}, },
"include": [ "include": [

View File

@@ -3732,7 +3732,7 @@
}, },
"devDependencies": { "devDependencies": {
"@types/byline": "4.2.31", "@types/byline": "4.2.31",
"@types/mocha": "^9.1.1", "@types/mocha": "^10.0.10",
"@types/node": "22.x", "@types/node": "22.x",
"@types/picomatch": "2.3.0", "@types/picomatch": "2.3.0",
"@types/which": "3.0.0" "@types/which": "3.0.0"

View File

@@ -4,7 +4,8 @@
"outDir": "./out", "outDir": "./out",
"typeRoots": [ "typeRoots": [
"./node_modules/@types" "./node_modules/@types"
] ],
"skipLibCheck": true
}, },
"include": [ "include": [
"src/**/*", "src/**/*",

View File

@@ -48,23 +48,24 @@
] ]
} }
], ],
"configuration": [{ "configuration": [
"title": "%config.github-enterprise.title%", {
"properties": { "title": "%config.github-enterprise.title%",
"github-enterprise.uri": { "properties": {
"type": "string", "github-enterprise.uri": {
"markdownDescription": "%config.github-enterprise.uri.description%", "type": "string",
"pattern": "^(?:$|(https?)://(?!github\\.com).*)" "markdownDescription": "%config.github-enterprise.uri.description%",
}, "pattern": "^(?:$|(https?)://(?!github\\.com).*)"
"github-authentication.useElectronFetch": { },
"type": "boolean", "github-authentication.useElectronFetch": {
"default": true, "type": "boolean",
"scope": "application", "default": true,
"markdownDescription": "%config.github-authentication.useElectronFetch.description%" "scope": "application",
"markdownDescription": "%config.github-authentication.useElectronFetch.description%"
}
} }
} }
} ]
]
}, },
"aiKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255", "aiKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",
"main": "./out/extension.js", "main": "./out/extension.js",
@@ -82,7 +83,7 @@
"vscode-tas-client": "^0.1.84" "vscode-tas-client": "^0.1.84"
}, },
"devDependencies": { "devDependencies": {
"@types/mocha": "^9.1.1", "@types/mocha": "^10.0.10",
"@types/node": "22.x", "@types/node": "22.x",
"@types/node-fetch": "^2.5.7" "@types/node-fetch": "^2.5.7"
}, },

View File

@@ -4,6 +4,9 @@
"outDir": "./out", "outDir": "./out",
"types": [ "types": [
"node" "node"
],
"typeRoots": [
"./node_modules/@types"
] ]
}, },
"include": [ "include": [

View File

@@ -4,6 +4,9 @@
"outDir": "./out", "outDir": "./out",
"types": [ "types": [
"node" "node"
],
"typeRoots": [
"./node_modules/@types"
] ]
}, },
"include": [ "include": [

View File

@@ -6,6 +6,9 @@
"webworker" "webworker"
], ],
"module": "Node16", "module": "Node16",
"typeRoots": [
"../node_modules/@types"
]
}, },
"include": [ "include": [
"src/**/*", "src/**/*",

View File

@@ -17,7 +17,7 @@
"vscode-uri": "^3.1.0" "vscode-uri": "^3.1.0"
}, },
"devDependencies": { "devDependencies": {
"@types/mocha": "^9.1.1", "@types/mocha": "^10.0.10",
"@types/node": "22.x" "@types/node": "22.x"
}, },
"scripts": { "scripts": {

View File

@@ -7,6 +7,9 @@
"WebWorker" "WebWorker"
], ],
"module": "Node16", "module": "Node16",
"typeRoots": [
"../node_modules/@types"
]
}, },
"include": [ "include": [
"src/**/*" "src/**/*"

View File

@@ -14,7 +14,8 @@
}, },
"devDependencies": { "devDependencies": {
"@jupyterlab/nbformat": "^3.2.9", "@jupyterlab/nbformat": "^3.2.9",
"@types/markdown-it": "12.2.3" "@types/markdown-it": "12.2.3",
"@types/node": "^22.18.10"
}, },
"engines": { "engines": {
"vscode": "^1.57.0" "vscode": "^1.57.0"
@@ -65,6 +66,16 @@
"integrity": "sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==", "integrity": "sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==",
"dev": true "dev": true
}, },
"node_modules/@types/node": {
"version": "22.18.10",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.10.tgz",
"integrity": "sha512-anNG/V/Efn/YZY4pRzbACnKxNKoBng2VTFydVu8RRs5hQjikP8CQfaeAV59VFSCzKNp90mXiVXW2QzV56rwMrg==",
"dev": true,
"license": "MIT",
"dependencies": {
"undici-types": "~6.21.0"
}
},
"node_modules/detect-indent": { "node_modules/detect-indent": {
"version": "6.1.0", "version": "6.1.0",
"resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz", "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz",
@@ -72,6 +83,13 @@
"engines": { "engines": {
"node": ">=8" "node": ">=8"
} }
},
"node_modules/undici-types": {
"version": "6.21.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
"dev": true,
"license": "MIT"
} }
} }
} }

View File

@@ -166,7 +166,8 @@
}, },
"devDependencies": { "devDependencies": {
"@jupyterlab/nbformat": "^3.2.9", "@jupyterlab/nbformat": "^3.2.9",
"@types/markdown-it": "12.2.3" "@types/markdown-it": "12.2.3",
"@types/node": "^22.18.10"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

View File

@@ -2,7 +2,13 @@
"extends": "../tsconfig.base.json", "extends": "../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./out", "outDir": "./out",
"lib": ["dom"] "lib": [
"ES2024",
"DOM"
],
"typeRoots": [
"./node_modules/@types"
]
}, },
"include": [ "include": [
"src/**/*", "src/**/*",

View File

@@ -4,6 +4,9 @@
"outDir": "./out", "outDir": "./out",
"types": [ "types": [
"node" "node"
],
"typeRoots": [
"./node_modules/@types"
] ]
}, },
"include": [ "include": [

View File

@@ -6,6 +6,9 @@
"webworker" "webworker"
], ],
"module": "Node16", "module": "Node16",
"typeRoots": [
"../node_modules/@types"
]
}, },
"include": [ "include": [
"src/**/*", "src/**/*",

View File

@@ -20,7 +20,7 @@
"vscode-uri": "^3.1.0" "vscode-uri": "^3.1.0"
}, },
"devDependencies": { "devDependencies": {
"@types/mocha": "^9.1.1", "@types/mocha": "^10.0.10",
"@types/node": "22.x" "@types/node": "22.x"
}, },
"scripts": { "scripts": {

View File

@@ -9,6 +9,9 @@
"WebWorker" "WebWorker"
], ],
"module": "Node16", "module": "Node16",
"typeRoots": [
"../node_modules/@types"
]
}, },
"include": [ "include": [
"src/**/*" "src/**/*"

View File

@@ -9,6 +9,11 @@
"ES2024", "ES2024",
"DOM", "DOM",
"DOM.Iterable" "DOM.Iterable"
] ],
"types": [],
"typeRoots": [
"../node_modules/@types"
],
"skipLibCheck": true
} }
} }

View File

@@ -24,7 +24,7 @@
}, },
"devDependencies": { "devDependencies": {
"@types/dompurify": "^3.0.5", "@types/dompurify": "^3.0.5",
"@types/lodash.throttle": "^4.1.3", "@types/lodash.throttle": "^4.1.9",
"@types/markdown-it": "12.2.3", "@types/markdown-it": "12.2.3",
"@types/picomatch": "^2.3.0", "@types/picomatch": "^2.3.0",
"@types/vscode-notebook-renderer": "^1.60.0", "@types/vscode-notebook-renderer": "^1.60.0",
@@ -184,10 +184,11 @@
"dev": true "dev": true
}, },
"node_modules/@types/lodash.throttle": { "node_modules/@types/lodash.throttle": {
"version": "4.1.3", "version": "4.1.9",
"resolved": "https://registry.npmjs.org/@types/lodash.throttle/-/lodash.throttle-4.1.3.tgz", "resolved": "https://registry.npmjs.org/@types/lodash.throttle/-/lodash.throttle-4.1.9.tgz",
"integrity": "sha512-FUm7uMuYRX7dzqmgX02bxdBwC75owUxGA4dDKtFePDLJ6N1ofXxkRX3NhJV8wOrNs/wCjaY6sDVJrD1lbyERoQ==", "integrity": "sha512-PCPVfpfueguWZQB7pJQK890F2scYKoDUL3iM522AptHWn7d5NQmeS/LTEHIcLr5PaTzl3dK2Z0xSUHHTHwaL5g==",
"dev": true, "dev": true,
"license": "MIT",
"dependencies": { "dependencies": {
"@types/lodash": "*" "@types/lodash": "*"
} }

View File

@@ -781,7 +781,7 @@
}, },
"devDependencies": { "devDependencies": {
"@types/dompurify": "^3.0.5", "@types/dompurify": "^3.0.5",
"@types/lodash.throttle": "^4.1.3", "@types/lodash.throttle": "^4.1.9",
"@types/markdown-it": "12.2.3", "@types/markdown-it": "12.2.3",
"@types/picomatch": "^2.3.0", "@types/picomatch": "^2.3.0",
"@types/vscode-notebook-renderer": "^1.60.0", "@types/vscode-notebook-renderer": "^1.60.0",

View File

@@ -8,7 +8,14 @@
"es2024", "es2024",
"DOM", "DOM",
"DOM.Iterable" "DOM.Iterable"
] ],
"types": [
"vscode-webview"
],
"typeRoots": [
"../node_modules/@types"
],
"skipLibCheck": true
}, },
"typeAcquisition": { "typeAcquisition": {
"include": [ "include": [

View File

@@ -1,7 +1,11 @@
{ {
"extends": "../tsconfig.base.json", "extends": "../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./out" "outDir": "./out",
"typeRoots": [
"./node_modules/@types"
],
"skipLibCheck": true
}, },
"include": [ "include": [
"src/**/*", "src/**/*",

View File

@@ -8,6 +8,12 @@
"ES2024", "ES2024",
"DOM", "DOM",
"DOM.Iterable" "DOM.Iterable"
],
"types": [
"node"
],
"typeRoots": [
"../node_modules/@types"
] ]
} }
} }

View File

@@ -2,7 +2,10 @@
"extends": "../tsconfig.base.json", "extends": "../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./out", "outDir": "./out",
"types": [] "types": [],
"typeRoots": [
"./node_modules/@types"
]
}, },
"include": [ "include": [
"src/**/*", "src/**/*",

View File

@@ -1,7 +1,10 @@
{ {
"extends": "../tsconfig.base.json", "extends": "../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./out" "outDir": "./out",
"typeRoots": [
"./node_modules/@types"
]
}, },
"include": [ "include": [
"src/**/*", "src/**/*",

View File

@@ -4,6 +4,9 @@
"outDir": "./out", "outDir": "./out",
"types": [ "types": [
"node" "node"
],
"typeRoots": [
"./node_modules/@types"
] ]
}, },
"include": [ "include": [

View File

@@ -7,6 +7,12 @@
"ES2024", "ES2024",
"DOM", "DOM",
"DOM.Iterable" "DOM.Iterable"
],
"types": [
"node"
],
"typeRoots": [
"../node_modules/@types"
] ]
} }
} }

View File

@@ -13,8 +13,7 @@
"mermaid": "^11.11.0" "mermaid": "^11.11.0"
}, },
"devDependencies": { "devDependencies": {
"@types/jsdom": "^21.1.7", "@types/node": "^22.18.10"
"@types/node": "^24"
}, },
"engines": { "engines": {
"vscode": "^1.104.0" "vscode": "^1.104.0"
@@ -389,35 +388,16 @@
"integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==", "integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/@types/jsdom": {
"version": "21.1.7",
"resolved": "https://registry.npmjs.org/@types/jsdom/-/jsdom-21.1.7.tgz",
"integrity": "sha512-yOriVnggzrnQ3a9OKOCxaVuSug3w3/SbOj5i7VwXWZEyUNl3bLF9V3MfxGbZKuwqJOQyRfqXyROBB1CoZLFWzA==",
"dev": true,
"license": "MIT",
"dependencies": {
"@types/node": "*",
"@types/tough-cookie": "*",
"parse5": "^7.0.0"
}
},
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "24.5.0", "version": "22.18.10",
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.5.0.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.10.tgz",
"integrity": "sha512-y1dMvuvJspJiPSDZUQ+WMBvF7dpnEqN4x9DDC9ie5Fs/HUZJA3wFp7EhHoVaKX/iI0cRoECV8X2jL8zi0xrHCg==", "integrity": "sha512-anNG/V/Efn/YZY4pRzbACnKxNKoBng2VTFydVu8RRs5hQjikP8CQfaeAV59VFSCzKNp90mXiVXW2QzV56rwMrg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"undici-types": "~7.12.0" "undici-types": "~6.21.0"
} }
}, },
"node_modules/@types/tough-cookie": {
"version": "4.0.5",
"resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.5.tgz",
"integrity": "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==",
"dev": true,
"license": "MIT"
},
"node_modules/@types/trusted-types": { "node_modules/@types/trusted-types": {
"version": "2.0.7", "version": "2.0.7",
"resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz",
@@ -1036,19 +1016,6 @@
"@types/trusted-types": "^2.0.7" "@types/trusted-types": "^2.0.7"
} }
}, },
"node_modules/entities": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz",
"integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==",
"dev": true,
"license": "BSD-2-Clause",
"engines": {
"node": ">=0.12"
},
"funding": {
"url": "https://github.com/fb55/entities?sponsor=1"
}
},
"node_modules/exsolve": { "node_modules/exsolve": {
"version": "1.0.7", "version": "1.0.7",
"resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.7.tgz", "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.7.tgz",
@@ -1235,19 +1202,6 @@
"integrity": "sha512-ZsEbbZORsyHuO00lY1kV3/t72yp6Ysay6Pd17ZAlNGuGwmWDLCJxFpRs0IzfXfj1o4icJOkUEioexFHzyPurSQ==", "integrity": "sha512-ZsEbbZORsyHuO00lY1kV3/t72yp6Ysay6Pd17ZAlNGuGwmWDLCJxFpRs0IzfXfj1o4icJOkUEioexFHzyPurSQ==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/parse5": {
"version": "7.3.0",
"resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz",
"integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==",
"dev": true,
"license": "MIT",
"dependencies": {
"entities": "^6.0.0"
},
"funding": {
"url": "https://github.com/inikulin/parse5?sponsor=1"
}
},
"node_modules/path-data-parser": { "node_modules/path-data-parser": {
"version": "0.1.0", "version": "0.1.0",
"resolved": "https://registry.npmjs.org/path-data-parser/-/path-data-parser-0.1.0.tgz", "resolved": "https://registry.npmjs.org/path-data-parser/-/path-data-parser-0.1.0.tgz",
@@ -1361,9 +1315,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/undici-types": { "node_modules/undici-types": {
"version": "7.12.0", "version": "6.21.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.12.0.tgz", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
"integrity": "sha512-goOacqME2GYyOZZfb5Lgtu+1IDmAlAEu5xnD3+xTzS10hT0vzpf0SPjkXwAw9Jm+4n/mQGDP3LO8CPbYROeBfQ==", "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
"dev": true, "dev": true,
"license": "MIT" "license": "MIT"
}, },

View File

@@ -79,8 +79,7 @@
"watch-web": "npx webpack-cli --config extension-browser.webpack.config --mode none --watch --info-verbosity verbose" "watch-web": "npx webpack-cli --config extension-browser.webpack.config --mode none --watch --info-verbosity verbose"
}, },
"devDependencies": { "devDependencies": {
"@types/jsdom": "^21.1.7", "@types/node": "^22.18.10"
"@types/node": "^24"
}, },
"dependencies": { "dependencies": {
"dompurify": "^3.2.6", "dompurify": "^3.2.6",

View File

@@ -2,6 +2,12 @@
"extends": "../tsconfig.base.json", "extends": "../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./out", "outDir": "./out",
"types": [
"node"
],
"typeRoots": [
"./node_modules/@types"
]
}, },
"include": [ "include": [
"src/**/*", "src/**/*",

View File

@@ -10,6 +10,7 @@
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"@types/jsdom": "^21.1.0", "@types/jsdom": "^21.1.0",
"@types/node": "^22.18.10",
"@types/vscode-notebook-renderer": "^1.60.0", "@types/vscode-notebook-renderer": "^1.60.0",
"jsdom": "^21.1.1" "jsdom": "^21.1.1"
}, },
@@ -38,10 +39,14 @@
} }
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "18.15.3", "version": "22.18.10",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.3.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.10.tgz",
"integrity": "sha512-p6ua9zBxz5otCmbpb5D3U4B5Nanw6Pk3PPyX05xnxbB/fRv71N7CPmORg7uAD5P70T0xmx1pzAx/FUfa5X+3cw==", "integrity": "sha512-anNG/V/Efn/YZY4pRzbACnKxNKoBng2VTFydVu8RRs5hQjikP8CQfaeAV59VFSCzKNp90mXiVXW2QzV56rwMrg==",
"dev": true "dev": true,
"license": "MIT",
"dependencies": {
"undici-types": "~6.21.0"
}
}, },
"node_modules/@types/tough-cookie": { "node_modules/@types/tough-cookie": {
"version": "4.0.2", "version": "4.0.2",
@@ -577,6 +582,13 @@
"node": ">= 0.8.0" "node": ">= 0.8.0"
} }
}, },
"node_modules/undici-types": {
"version": "6.21.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
"dev": true,
"license": "MIT"
},
"node_modules/universalify": { "node_modules/universalify": {
"version": "0.2.0", "version": "0.2.0",
"resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz",

View File

@@ -5,7 +5,7 @@
"publisher": "vscode", "publisher": "vscode",
"version": "1.0.0", "version": "1.0.0",
"license": "MIT", "license": "MIT",
"icon": "media/icon.png", "icon": "media/icon.png",
"engines": { "engines": {
"vscode": "^1.57.0" "vscode": "^1.57.0"
}, },
@@ -46,9 +46,9 @@
"watch": "npx gulp compile-watch:notebook-renderers", "watch": "npx gulp compile-watch:notebook-renderers",
"build-notebook": "node ./esbuild.mjs" "build-notebook": "node ./esbuild.mjs"
}, },
"dependencies": {},
"devDependencies": { "devDependencies": {
"@types/jsdom": "^21.1.0", "@types/jsdom": "^21.1.0",
"@types/node": "^22.18.10",
"@types/vscode-notebook-renderer": "^1.60.0", "@types/vscode-notebook-renderer": "^1.60.0",
"jsdom": "^21.1.1" "jsdom": "^21.1.1"
}, },

View File

@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/ *--------------------------------------------------------------------------------------------*/
export const ttPolicy = (typeof window !== 'undefined') ? export const ttPolicy = (typeof window !== 'undefined') ?
window.trustedTypes?.createPolicy('notebookRenderer', { (window as Window & { trustedTypes?: any }).trustedTypes?.createPolicy('notebookRenderer', {
createHTML: value => value, createHTML: (value: string) => value,
createScript: value => value, createScript: (value: string) => value,
}) : undefined; }) : undefined;

View File

@@ -3,7 +3,14 @@
"compilerOptions": { "compilerOptions": {
"outDir": "./out", "outDir": "./out",
"lib": [ "lib": [
"es2024",
"dom" "dom"
],
"types": [
"node"
],
"typeRoots": [
"./node_modules/@types"
] ]
}, },
"include": [ "include": [

View File

@@ -4,6 +4,9 @@
"outDir": "./out", "outDir": "./out",
"types": [ "types": [
"node" "node"
],
"typeRoots": [
"./node_modules/@types"
] ]
}, },
"include": [ "include": [

View File

@@ -4,7 +4,10 @@
"outDir": "./out", "outDir": "./out",
"types": [ "types": [
"node" "node"
] ],
"typeRoots": [
"./node_modules/@types"
],
}, },
"include": [ "include": [
"src/**/*", "src/**/*",

View File

@@ -2,6 +2,9 @@
"extends": "../tsconfig.base.json", "extends": "../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./out", "outDir": "./out",
"typeRoots": [
"./node_modules/@types"
]
}, },
"include": [ "include": [
"src/**/*", "src/**/*",

View File

@@ -8,9 +8,29 @@
"name": "search-result", "name": "search-result",
"version": "1.0.0", "version": "1.0.0",
"license": "MIT", "license": "MIT",
"devDependencies": {
"@types/node": "^22.18.10"
},
"engines": { "engines": {
"vscode": "^1.39.0" "vscode": "^1.39.0"
} }
},
"node_modules/@types/node": {
"version": "22.18.10",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.10.tgz",
"integrity": "sha512-anNG/V/Efn/YZY4pRzbACnKxNKoBng2VTFydVu8RRs5hQjikP8CQfaeAV59VFSCzKNp90mXiVXW2QzV56rwMrg==",
"dev": true,
"license": "MIT",
"dependencies": {
"undici-types": "~6.21.0"
}
},
"node_modules/undici-types": {
"version": "6.21.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
"dev": true,
"license": "MIT"
} }
} }
} }

View File

@@ -55,5 +55,8 @@
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/microsoft/vscode.git" "url": "https://github.com/microsoft/vscode.git"
},
"devDependencies": {
"@types/node": "^22.18.10"
} }
} }

View File

@@ -2,6 +2,9 @@
"extends": "../tsconfig.base.json", "extends": "../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./out", "outDir": "./out",
"typeRoots": [
"./node_modules/@types"
]
}, },
"include": [ "include": [
"src/**/*", "src/**/*",

View File

@@ -7,6 +7,9 @@
"ES2024", "ES2024",
"DOM", "DOM",
"DOM.Iterable" "DOM.Iterable"
],
"typeRoots": [
"../node_modules/@types"
] ]
} }
} }

View File

@@ -2,7 +2,10 @@
"extends": "../tsconfig.base.json", "extends": "../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./out", "outDir": "./out",
"types": [] "types": [],
"typeRoots": [
"./node_modules/@types"
]
}, },
"include": [ "include": [
"src/**/*", "src/**/*",

View File

@@ -8,9 +8,29 @@
"name": "terminal-suggest", "name": "terminal-suggest",
"version": "1.0.1", "version": "1.0.1",
"license": "MIT", "license": "MIT",
"devDependencies": {
"@types/node": "^22.18.10"
},
"engines": { "engines": {
"vscode": "^1.95.0" "vscode": "^1.95.0"
} }
},
"node_modules/@types/node": {
"version": "22.18.10",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.10.tgz",
"integrity": "sha512-anNG/V/Efn/YZY4pRzbACnKxNKoBng2VTFydVu8RRs5hQjikP8CQfaeAV59VFSCzKNp90mXiVXW2QzV56rwMrg==",
"dev": true,
"license": "MIT",
"dependencies": {
"undici-types": "~6.21.0"
}
},
"node_modules/undici-types": {
"version": "6.21.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
"integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
"dev": true,
"license": "MIT"
} }
} }
} }

View File

@@ -47,5 +47,8 @@
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/microsoft/vscode.git" "url": "https://github.com/microsoft/vscode.git"
},
"devDependencies": {
"@types/node": "^22.18.10"
} }
} }

View File

@@ -2,13 +2,16 @@
"extends": "../tsconfig.base.json", "extends": "../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./out", "outDir": "./out",
"esModuleInterop": true, "typeRoots": [
"types": [ "./node_modules/@types"
"node"
], ],
"esModuleInterop": true,
// Needed to suppress warnings in upstream completions // Needed to suppress warnings in upstream completions
"noImplicitReturns": false, "noImplicitReturns": false,
"noUnusedParameters": false "noUnusedParameters": false,
"typeRoots": [
"./node_modules/@types"
]
}, },
"include": [ "include": [
"src/**/*", "src/**/*",

View File

@@ -2,6 +2,9 @@
"extends": "../tsconfig.base.json", "extends": "../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./out", "outDir": "./out",
"typeRoots": [
"./node_modules/@types"
],
"downlevelIteration": true, "downlevelIteration": true,
"types": [ "types": [
"node" "node"

View File

@@ -2,6 +2,9 @@
"extends": "../tsconfig.base.json", "extends": "../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./out", "outDir": "./out",
"typeRoots": [
"./node_modules/@types"
],
"esModuleInterop": true, "esModuleInterop": true,
"types": [ "types": [
"node" "node"

View File

@@ -9,7 +9,7 @@
"version": "0.0.1", "version": "0.0.1",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"@types/mocha": "^9.1.1", "@types/mocha": "^10.0.10",
"@types/node": "22.x", "@types/node": "22.x",
"@types/node-forge": "^1.3.11", "@types/node-forge": "^1.3.11",
"node-forge": "^1.3.1", "node-forge": "^1.3.1",
@@ -20,10 +20,11 @@
} }
}, },
"node_modules/@types/mocha": { "node_modules/@types/mocha": {
"version": "9.1.1", "version": "10.0.10",
"resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-9.1.1.tgz", "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.10.tgz",
"integrity": "sha512-Z61JK7DKDtdKTWwLeElSEBcWGRLY8g95ic5FoQqI9CMx0ns/Ghep3B4DfcEimiKMvtamNVULVNKEsiwV3aQmXw==", "integrity": "sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q==",
"dev": true "dev": true,
"license": "MIT"
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "22.13.10", "version": "22.13.10",

View File

@@ -80,7 +80,9 @@
} }
], ],
"modes": [ "modes": [
"agent", "ask", "edit" "agent",
"ask",
"edit"
] ]
}, },
{ {
@@ -91,15 +93,15 @@
} }
], ],
"languageModelTools": [ "languageModelTools": [
{ {
"name": "requires_confirmation_tool", "name": "requires_confirmation_tool",
"toolReferenceName": "requires_confirmation_tool", "toolReferenceName": "requires_confirmation_tool",
"displayName": "Requires Confirmation Tool", "displayName": "Requires Confirmation Tool",
"modelDescription": "A noop tool to trigger confirmation.", "modelDescription": "A noop tool to trigger confirmation.",
"canBeReferencedInPrompt": true, "canBeReferencedInPrompt": true,
"icon": "$(files)", "icon": "$(files)",
"inputSchema": {} "inputSchema": {}
} }
], ],
"configuration": { "configuration": {
"type": "object", "type": "object",
@@ -266,7 +268,7 @@
"vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:vscode-api-tests ./tsconfig.json" "vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:vscode-api-tests ./tsconfig.json"
}, },
"devDependencies": { "devDependencies": {
"@types/mocha": "^9.1.1", "@types/mocha": "^10.0.10",
"@types/node": "22.x", "@types/node": "22.x",
"@types/node-forge": "^1.3.11", "@types/node-forge": "^1.3.11",
"node-forge": "^1.3.1", "node-forge": "^1.3.1",

View File

@@ -2,9 +2,10 @@
"extends": "../tsconfig.base.json", "extends": "../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./out", "outDir": "./out",
"types": [ "typeRoots": [
"node" "./node_modules/@types"
] ],
"skipLibCheck": true
}, },
"include": [ "include": [
"src/**/*", "src/**/*",

View File

@@ -2,6 +2,9 @@
"extends": "../tsconfig.base.json", "extends": "../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./out", "outDir": "./out",
"typeRoots": [
"./node_modules/@types"
],
"types": [ "types": [
"node" "node"
] ]

View File

@@ -2,6 +2,9 @@
"extends": "../tsconfig.base.json", "extends": "../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./out", "outDir": "./out",
"typeRoots": [
"./node_modules/@types"
],
"types": [ "types": [
"node" "node"
] ]

View File

@@ -2,6 +2,9 @@
"extends": "../tsconfig.base.json", "extends": "../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./out", "outDir": "./out",
"typeRoots": [
"./node_modules/@types"
],
"types": [ "types": [
"node" "node"
], ],