Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
// $ cd vscode-generator-code
// $ npm link
//
// Or use the run-generator.mjs script which registers and runs the generator locally
"type": "node",
"request": "launch",
"name": "yeoman code",
"program": "${workspaceFolder}/node_modules/yeoman-environment/cli/index.js",
"args": [ "run", "code" ],
"program": "${workspaceFolder}/run-generator.mjs",
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
Expand Down
32 changes: 17 additions & 15 deletions generators/app/dependencyVersions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,35 @@
"private": true,
"dependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "22.x",
"@types/node": "24.x",
"@types/assert": "^1.5.11",
"typescript-eslint": "^8.56.1",
"eslint": "^9.39.3",
"typescript-eslint": "^8.61.1",
"eslint": "^10.5.0",
"glob": "^13.0.6",
"mocha": "^11.7.5",
"typescript": "^5.9.3",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2",
"@vscode/test-web": "^0.0.80",
"mocha": "^11.7.6",
"typescript": "^6.0.3",
"@vscode/test-cli": "^0.0.15",
"@vscode/test-electron": "^3.0.0",
"@vscode/test-web": "^0.0.81",
"@types/webpack-env": "^1.18.8",
"@types/vscode-notebook-renderer": "^1.72.4",
"concurrently": "^9.2.1",
"concurrently": "^10.0.3",
"css-loader": "^7.1.4",
"fork-ts-checker-webpack-plugin": "^9.1.0",
"style-loader": "^4.0.0",
"ts-loader": "^9.5.4",
"ts-loader": "^9.6.2",
"vscode-dts": "^0.3.3",
"vscode-notebook-error-overlay": "^1.1.0",
"webpack": "^5.105.3",
"webpack": "^5.107.2",
"util": "^0.12.5",
"webpack-cli": "^6.0.1",
"webpack-dev-server": "^5.2.3",
"webpack-cli": "^7.0.3",
"webpack-dev-server": "^5.2.5",
"assert": "^2.1.0",
"process": "^0.11.10",
"npm-run-all": "^4.1.5",
"esbuild": "^0.27.3",
"@esbuild-plugins/node-globals-polyfill": "^0.2.3"
"esbuild": "^0.28.1",
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"diff": "^8.0.4",
"serialize-javascript": "^7.0.6"
}
}
4 changes: 2 additions & 2 deletions generators/app/generate-command-web.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ export default {
generator.fs.copyTpl(generator.templatePath('README.md'), generator.destinationPath('README.md'), extensionConfig);
generator.fs.copyTpl(generator.templatePath('CHANGELOG.md'), generator.destinationPath('CHANGELOG.md'), extensionConfig);
generator.fs.copyTpl(generator.templatePath('vsc-extension-quickstart.md'), generator.destinationPath('vsc-extension-quickstart.md'), extensionConfig);
generator.fs.copyTpl(generator.templatePath('tsconfig.json'), generator.destinationPath('tsconfig.json'), extensionConfig);

generator.fs.copyTpl(generator.templatePath('src/web/extension.ts'), generator.destinationPath('src/web/extension.ts'), extensionConfig);

generator.fs.copy(generator.templatePath('src/web/test/suite/extension.test.ts'), generator.destinationPath('src/web/test/suite/extension.test.ts'));

if (bundler === 'esbuild') {
generator.fs.copyTpl(generator.templatePath('esbuild-tsconfig.json'), generator.destinationPath('tsconfig.json'), extensionConfig);
generator.fs.copyTpl(generator.templatePath('esbuild.js'), generator.destinationPath('esbuild.js'), extensionConfig);
generator.fs.copyTpl(generator.templatePath('esbuild-package.json'), generator.destinationPath('package.json'), extensionConfig);
generator.fs.copy(generator.templatePath('src/web/test/suite/esbuild-mochaTestRunner.ts'), generator.destinationPath('src/web/test/suite/mochaTestRunner.ts'));
} else {
generator.fs.copyTpl(generator.templatePath('webpack-tsconfig.json'), generator.destinationPath('tsconfig.json'), extensionConfig);
generator.fs.copyTpl(generator.templatePath('webpack.config.js'), generator.destinationPath('webpack.config.js'), extensionConfig);
generator.fs.copyTpl(generator.templatePath('webpack-package.json'), generator.destinationPath('package.json'), extensionConfig);
generator.fs.copy(generator.templatePath('src/web/test/suite/webpack-mochaTestRunner.ts'), generator.destinationPath('src/web/test/suite/index.ts'));
Expand Down
26 changes: 15 additions & 11 deletions generators/app/templates/ext-command-js/jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"compilerOptions": {
"module": "Node16",
"target": "ES2022",
"checkJs": <%- JSON.stringify(checkJavaScript) %>, /* Typecheck .js files. */
"lib": [
"ES2022"
]
},
"exclude": [
"node_modules"
]
"compilerOptions": {
"module": "Node16",
"target": "ES2022",
"checkJs": <%- JSON.stringify(checkJavaScript) %>, /* Typecheck .js files. */
"lib": [
"ES2022"
],
"types": [
"node",
"mocha",
],
},
"exclude": [
"node_modules"
]
}
4 changes: 4 additions & 0 deletions generators/app/templates/ext-command-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,9 @@
<%- dep("eslint") %>,
<%- dep("@vscode/test-cli") %>,
<%- dep("@vscode/test-electron") %>
},
"overrides": {
<%- dep("diff") %>,
<%- dep("serialize-javascript") %>
}
}
4 changes: 4 additions & 0 deletions generators/app/templates/ext-command-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,9 @@
<%- dep("@vscode/test-cli") %>,
<%- dep("@vscode/test-electron") %><% if (insiders) { %>,
<%- dep("vscode-dts") %><% } %>
},
"overrides": {
<%- dep("diff") %>,
<%- dep("serialize-javascript") %>
}
}
34 changes: 19 additions & 15 deletions generators/app/templates/ext-command-ts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
{
"compilerOptions": {
"module": "Node16",
"target": "ES2022",
"outDir": "out",
"lib": [
"ES2022"
],
"sourceMap": true,
"rootDir": "src",
"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. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
}
"compilerOptions": {
"module": "Node16",
"target": "ES2022",
"outDir": "out",
"lib": [
"ES2022"
],
"types": [
"node",
"mocha",
],
"sourceMap": true,
"rootDir": "src",
"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. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,9 @@
<%- dep("@vscode/test-cli") %>,
<%- dep("@vscode/test-electron") %><% if (insiders) { %>,
<%- dep("vscode-dts") %><% } %>
},
"overrides": {
<%- dep("diff") %>,
<%- dep("serialize-javascript") %>
}
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{
"compilerOptions": {
"module": "Node16",
"target": "ES2022",
"lib": [
"ES2022"
],
"sourceMap": true,
"rootDir": "src",
"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. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
}
"compilerOptions": {
"module": "Node16",
"target": "ES2022",
"lib": [
"ES2022"
],
"types": [
"node",
"mocha"
],
"sourceMap": true,
"rootDir": "src",
"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. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,9 @@
<%- dep("@vscode/test-cli") %>,
<%- dep("@vscode/test-electron") %><% if (insiders) { %>,
<%- dep("vscode-dts") %><% } %>
},
"overrides": {
<%- dep("diff") %>,
<%- dep("serialize-javascript") %>
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"lib": [
"ES2022"
],
"types": [
"node",
"mocha"
],
"sourceMap": true,
"rootDir": "src",
"strict": true, /* enable all strict type-checking options */
Expand Down
4 changes: 4 additions & 0 deletions generators/app/templates/ext-command-web/esbuild-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,9 @@
<%- dep("npm-run-all") %>,
<%- dep("@esbuild-plugins/node-globals-polyfill") %>,
<%- dep("assert") %>
},
"overrides": {
<%- dep("diff") %>,
<%- dep("serialize-javascript") %>
}
}
21 changes: 21 additions & 0 deletions generators/app/templates/ext-command-web/esbuild-tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"compilerOptions": {
"module": "Node16",
"target": "ES2020",
"outDir": "dist",
"lib": [
"ES2020",
"WebWorker"
],
"types": [
"mocha"
],
"sourceMap": true,
"rootDir": "src",
"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. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
}
}
17 changes: 0 additions & 17 deletions generators/app/templates/ext-command-web/tsconfig.json

This file was deleted.

4 changes: 4 additions & 0 deletions generators/app/templates/ext-command-web/webpack-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,9 @@
<%- dep("@types/webpack-env") %>,
<%- dep("assert") %>,
<%- dep("process") %>
},
"overrides": {
<%- dep("diff") %>,
<%- dep("serialize-javascript") %>
}
}
22 changes: 22 additions & 0 deletions generators/app/templates/ext-command-web/webpack-tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "Node16",
"target": "ES2020",
"outDir": "dist",
"lib": [
"ES2020",
"WebWorker"
],
"types": [
"mocha",
"webpack-env"
],
"sourceMap": true,
"rootDir": "src",
"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. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
}
}
Loading
Loading