generator-code 1.9.0 → 1.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,19 +7,19 @@
7
7
  "@types/mocha": "^10.0.6",
8
8
  "@types/node": "18.x",
9
9
  "@types/assert": "^1.5.10",
10
- "@typescript-eslint/eslint-plugin": "^7.7.1",
11
- "@typescript-eslint/parser": "^7.7.1",
10
+ "@typescript-eslint/eslint-plugin": "^7.11.0",
11
+ "@typescript-eslint/parser": "^7.11.0",
12
12
  "eslint": "^8.57.0",
13
- "glob": "^10.3.12",
13
+ "glob": "^10.4.1",
14
14
  "mocha": "^10.4.0",
15
15
  "typescript": "^5.4.5",
16
16
  "@vscode/test-cli": "^0.0.9",
17
- "@vscode/test-electron": "^2.3.9",
17
+ "@vscode/test-electron": "^2.4.0",
18
18
  "@vscode/test-web": "^0.0.54",
19
- "@types/webpack-env": "^1.18.4",
19
+ "@types/webpack-env": "^1.18.5",
20
20
  "@types/vscode-notebook-renderer": "^1.72.3",
21
21
  "concurrently": "^8.2.2",
22
- "css-loader": "^7.1.1",
22
+ "css-loader": "^7.1.2",
23
23
  "fork-ts-checker-webpack-plugin": "^9.0.2",
24
24
  "style-loader": "^4.0.0",
25
25
  "ts-loader": "^9.5.1",
@@ -32,7 +32,7 @@
32
32
  "assert": "^2.1.0",
33
33
  "process": "^0.11.10",
34
34
  "npm-run-all": "^4.1.5",
35
- "esbuild": "^0.20.2",
35
+ "esbuild": "^0.21.4",
36
36
  "@esbuild-plugins/node-globals-polyfill": "^0.2.3"
37
37
  }
38
38
  }
@@ -44,7 +44,7 @@ export default class extends Generator {
44
44
  this.option('extensionDescription', { type: String, description: 'Description of the extension' });
45
45
 
46
46
  this.option('pkgManager', { type: String, description: `'npm', 'yarn' or 'pnpm'` });
47
- this.option('bundler', { type: String, default: 'none', description: `Bundle the extension: 'webpack', 'esbuild', 'none` });
47
+ this.option('bundler', { type: String, description: `Bundle the extension: 'webpack', 'esbuild'` });
48
48
  this.option('gitInit', { type: Boolean, description: `Initialize a git repo` });
49
49
 
50
50
  this.option('snippetFolder', { type: String, description: `Snippet folder location` });
@@ -161,7 +161,7 @@ export function askForPackageManager(generator, extensionConfig) {
161
161
  * @param {Generator} generator
162
162
  * @param {Object} extensionConfig
163
163
  */
164
- export function askForBundler(generator, extensionConfig, allowNone = true, defaultBundler = 'none') {
164
+ export function askForBundler(generator, extensionConfig, allowNone = true, defaultBundler = 'unbundled') {
165
165
  const bundler = generator.options['bundler'];
166
166
  if (bundler === 'webpack' || bundler === 'esbuild') {
167
167
  extensionConfig.bundler = bundler;
@@ -177,7 +177,7 @@ export function askForBundler(generator, extensionConfig, allowNone = true, defa
177
177
  return Promise.resolve();
178
178
  }
179
179
 
180
- const choices = allowNone ? [{ name: 'none', value: 'none' }] : [];
180
+ const choices = allowNone ? [{ name: 'unbundled', value: 'unbundled' }] : [];
181
181
 
182
182
  return generator.prompt({
183
183
  type: 'list',
@@ -17,7 +17,7 @@ function activate(context) {
17
17
  // The command has been defined in the package.json file
18
18
  // Now provide the implementation of the command with registerCommand
19
19
  // The commandId parameter must match the command field in package.json
20
- let disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', function () {
20
+ const disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', function () {
21
21
  // The code you place here will be executed every time your command is executed
22
22
 
23
23
  // Display a message box to the user
@@ -13,7 +13,7 @@ export function activate(context: vscode.ExtensionContext) {
13
13
  // The command has been defined in the package.json file
14
14
  // Now provide the implementation of the command with registerCommand
15
15
  // The commandId parameter must match the command field in package.json
16
- let disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', () => {
16
+ const disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', () => {
17
17
  // The code you place here will be executed every time your command is executed
18
18
  // Display a message box to the user
19
19
  vscode.window.showInformationMessage('Hello World from <%= displayName %>!');
@@ -38,6 +38,6 @@
38
38
  ## Go further
39
39
 
40
40
  * [Follow UX guidelines](https://code.visualstudio.com/api/ux-guidelines/overview) to create extensions that seamlessly integrate with VS Code's native interface and patterns.
41
- * Reduce the extension size and improve the startup time by [bundling your extension](https://code.visualstudio.com/api/working-with-extensions/bundling-extension).
42
- * [Publish your extension](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) on the VS Code extension marketplace.
43
- * Automate builds by setting up [Continuous Integration](https://code.visualstudio.com/api/working-with-extensions/continuous-integration).
41
+ * Reduce the extension size and improve the startup time by [bundling your extension](https://code.visualstudio.com/api/working-with-extensions/bundling-extension).
42
+ * [Publish your extension](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) on the VS Code extension marketplace.
43
+ * Automate builds by setting up [Continuous Integration](https://code.visualstudio.com/api/working-with-extensions/continuous-integration).
@@ -7,6 +7,7 @@ src/**
7
7
  .yarnrc
8
8
  esbuild.js
9
9
  vsc-extension-quickstart.md
10
+ **/tsconfig.json
10
11
  **/.eslintrc.json
11
12
  **/*.map
12
13
  **/*.ts
@@ -15,9 +15,6 @@
15
15
  "group": {
16
16
  "kind": "build",
17
17
  "isDefault": true
18
- },
19
- "runOptions": {
20
- "runOn": "folderOpen"
21
18
  }
22
19
  },
23
20
  {
@@ -3,6 +3,7 @@
3
3
  src/**
4
4
  out/**
5
5
  node_modules/**
6
+ dist/test/**
6
7
  .gitignore
7
8
  vsc-extension-quickstart.md
8
9
  webpack.config.js
@@ -13,7 +13,7 @@ export function activate(context: vscode.ExtensionContext) {
13
13
  // The command has been defined in the package.json file
14
14
  // Now provide the implementation of the command with registerCommand
15
15
  // The commandId parameter must match the command field in package.json
16
- let disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', () => {
16
+ const disposable = vscode.commands.registerCommand('<%= name %>.helloWorld', () => {
17
17
  // The code you place here will be executed every time your command is executed
18
18
 
19
19
  // Display a message box to the user
@@ -15,9 +15,6 @@
15
15
  "group": {
16
16
  "kind": "build",
17
17
  "isDefault": true
18
- },
19
- "runOptions": {
20
- "runOn": "folderOpen"
21
18
  }
22
19
  },
23
20
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-code",
3
- "version": "1.9.0",
3
+ "version": "1.10.1",
4
4
  "description": "Yeoman generator for Visual Studio Code extensions.",
5
5
  "keywords": [
6
6
  "yeoman-generator",
@@ -39,14 +39,14 @@
39
39
  "fast-plist": "^0.1.3",
40
40
  "request-light": "^0.7.0",
41
41
  "which": "^4.0.0",
42
- "yeoman-generator": "^6.0.1",
42
+ "yeoman-generator": "^7.2.0",
43
43
  "yosay": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/mocha": "^10.0.6",
47
47
  "@types/node": "^16.18.82",
48
48
  "mocha": "^10.4.0",
49
- "yeoman-environment": "^3.19.3",
50
- "yeoman-test": "^8.2.0"
49
+ "yeoman-environment": "^4.4.0",
50
+ "yeoman-test": "^8.3.0"
51
51
  }
52
52
  }