generator-code 1.11.7 → 1.11.8

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,15 +7,15 @@
7
7
  "@types/mocha": "^10.0.10",
8
8
  "@types/node": "20.x",
9
9
  "@types/assert": "^1.5.11",
10
- "@typescript-eslint/eslint-plugin": "^8.25.0",
11
- "@typescript-eslint/parser": "^8.25.0",
12
- "eslint": "^9.21.0",
10
+ "@typescript-eslint/eslint-plugin": "^8.28.0",
11
+ "@typescript-eslint/parser": "^8.28.0",
12
+ "eslint": "^9.23.0",
13
13
  "glob": "^11.0.1",
14
14
  "mocha": "^11.1.0",
15
- "typescript": "^5.7.3",
15
+ "typescript": "^5.8.2",
16
16
  "@vscode/test-cli": "^0.0.10",
17
17
  "@vscode/test-electron": "^2.4.1",
18
- "@vscode/test-web": "^0.0.67",
18
+ "@vscode/test-web": "^0.0.68",
19
19
  "@types/webpack-env": "^1.18.8",
20
20
  "@types/vscode-notebook-renderer": "^1.72.3",
21
21
  "concurrently": "^9.1.2",
@@ -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.25.0",
35
+ "esbuild": "^0.25.1",
36
36
  "@esbuild-plugins/node-globals-polyfill": "^0.2.3"
37
37
  }
38
38
  }
@@ -77,7 +77,7 @@ export default class extends Generator {
77
77
  this.option('quick', { type: Boolean, alias: 'q', description: 'Quick mode, skip all optional prompts and use defaults' });
78
78
  this.option('open', { type: Boolean, alias: 'o', description: 'Open the generated extension in Visual Studio Code' });
79
79
  this.option('openInInsiders', { type: Boolean, alias: 'O', description: 'Open the generated extension in Visual Studio Code Insiders' });
80
-
80
+ this.option('skipOpen', { type: Boolean, alias:'s', description: 'Skip opening the generated extension in Visual Studio Code' });
81
81
  this.option('extensionType', { type: String, alias: 't', description: extensionGenerators.slice(0, 6).map(e => e.aliases[0]).join(', ') + '...' });
82
82
  this.option('extensionDisplayName', { type: String, alias: 'n', description: 'Display name of the extension' });
83
83
  this.option('extensionId', { type: String, description: 'Id of the extension' });
@@ -242,7 +242,7 @@ export default class extends Generator {
242
242
 
243
243
  const [codeStableLocation, codeInsidersLocation] = await Promise.all([which('code').catch(() => undefined), which('code-insiders').catch(() => undefined)]);
244
244
 
245
- if (!this.extensionConfig.insiders && !this.options['open'] && !this.options['openInInsiders'] && !this.options['quick']) {
245
+ if (!this.extensionConfig.insiders && !this.options['open'] && !this.options['openInInsiders'] && !this.options['quick'] && !this.options['skipOpen']) {
246
246
  const cdLocation = this.options['destination'] || this.extensionConfig.name;
247
247
 
248
248
  this.log('To start editing with Visual Studio Code, use the following commands:');
@@ -265,6 +265,10 @@ export default class extends Generator {
265
265
  this.log('For more information, also visit http://code.visualstudio.com and follow us @code.');
266
266
  this.log('\r\n');
267
267
 
268
+ if (this.options['skipOpen']) {
269
+ return;
270
+ }
271
+
268
272
  if (this.options["open"]) {
269
273
  if (codeStableLocation) {
270
274
  this.log(`Opening ${this.destinationPath()} in Visual Studio Code...`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-code",
3
- "version": "1.11.7",
3
+ "version": "1.11.8",
4
4
  "description": "Yeoman generator for Visual Studio Code extensions.",
5
5
  "keywords": [
6
6
  "yeoman-generator",
@@ -39,7 +39,7 @@
39
39
  "fast-plist": "^0.1.3",
40
40
  "request-light": "^0.8.0",
41
41
  "which": "^5.0.0",
42
- "yeoman-generator": "^7.4.0",
42
+ "yeoman-generator": "^7.5.1",
43
43
  "yosay": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
@@ -47,7 +47,7 @@
47
47
  "@types/node": "^18.19.57",
48
48
  "mocha": "^11.1.0",
49
49
  "yeoman-environment": "^4.4.3",
50
- "yeoman-test": "^10.0.1",
50
+ "yeoman-test": "^10.1.0",
51
51
  "jsonc-parser": "^3.3.1"
52
52
  }
53
53
  }