generator-code 1.6.10 → 1.6.13

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.
Files changed (78) hide show
  1. package/README.md +14 -7
  2. package/generators/app/dependencyVersions/package.json +14 -14
  3. package/generators/app/generate-colortheme.js +4 -4
  4. package/generators/app/generate-command-js.js +2 -2
  5. package/generators/app/generate-command-ts.js +3 -3
  6. package/generators/app/generate-command-web.js +2 -2
  7. package/generators/app/generate-extensionpack.js +3 -3
  8. package/generators/app/generate-keymap.js +3 -3
  9. package/generators/app/generate-language.js +3 -3
  10. package/generators/app/generate-localization.js +3 -3
  11. package/generators/app/generate-notebook-renderer.js +2 -2
  12. package/generators/app/generate-snippets.js +3 -3
  13. package/generators/app/index.js +1 -1
  14. package/generators/app/prompts.js +5 -1
  15. package/generators/app/templates/{ext-notebook-renderer/gitattributes → ext-colortheme/.gitattributes} +0 -0
  16. package/generators/app/templates/ext-colortheme/{vscodeignore → .vscodeignore} +0 -0
  17. package/generators/app/templates/ext-colortheme/README.md +10 -7
  18. package/generators/app/templates/ext-colortheme/package.json +20 -20
  19. package/generators/app/templates/ext-colortheme/vsc-extension-quickstart.md +1 -1
  20. package/generators/app/templates/ext-command-js/{vscodeignore → .vscodeignore} +0 -0
  21. package/generators/app/templates/ext-command-js/README.md +7 -7
  22. package/generators/app/templates/ext-command-js/package.json +35 -37
  23. package/generators/app/templates/ext-command-js/vsc-extension-quickstart.md +3 -1
  24. package/generators/app/templates/ext-command-ts/{vscodeignore → .vscodeignore} +0 -0
  25. package/generators/app/templates/ext-command-ts/README.md +9 -8
  26. package/generators/app/templates/ext-command-ts/package.json +45 -45
  27. package/generators/app/templates/ext-command-ts/vsc-extension-quickstart.md +2 -2
  28. package/generators/app/templates/ext-command-ts/vscode-webpack/{vscodeignore → .vscodeignore} +0 -0
  29. package/generators/app/templates/ext-command-ts/vscode-webpack/package.json +51 -51
  30. package/generators/app/templates/ext-command-ts/vscode-webpack/vsc-extension-quickstart.md +1 -1
  31. package/generators/app/templates/ext-command-ts/vscode-webpack/vscode/tasks.json +2 -5
  32. package/generators/app/templates/ext-command-ts/vscode-webpack/webpack.config.js +1 -1
  33. package/generators/app/templates/ext-command-web/{vscodeignore → .vscodeignore} +0 -0
  34. package/generators/app/templates/ext-command-web/README.md +8 -8
  35. package/generators/app/templates/ext-command-web/package.json +49 -51
  36. package/generators/app/templates/ext-command-web/vsc-extension-quickstart.md +7 -6
  37. package/generators/app/templates/ext-command-web/webpack.config.js +3 -0
  38. package/generators/app/templates/ext-extensionpack/{gitattributes → .gitattributes} +0 -1
  39. package/generators/app/templates/ext-extensionpack/{vscodeignore → .vscodeignore} +0 -0
  40. package/generators/app/templates/ext-extensionpack/README.md +6 -6
  41. package/generators/app/templates/ext-extensionpack/package.json +15 -15
  42. package/generators/app/templates/ext-keymap/{gitattributes → .gitattributes} +0 -1
  43. package/generators/app/templates/ext-keymap/{vscodeignore → .vscodeignore} +0 -0
  44. package/generators/app/templates/ext-keymap/README.md +10 -7
  45. package/generators/app/templates/ext-keymap/package.json +19 -19
  46. package/generators/app/templates/ext-keymap/vsc-extension-quickstart.md +2 -2
  47. package/generators/app/templates/ext-language/{gitattributes → .gitattributes} +0 -1
  48. package/generators/app/templates/ext-language/{vscodeignore → .vscodeignore} +0 -0
  49. package/generators/app/templates/ext-language/README.md +8 -8
  50. package/generators/app/templates/ext-language/package.json +24 -24
  51. package/generators/app/templates/ext-language/vsc-extension-quickstart.md +1 -1
  52. package/generators/app/templates/ext-localization/.gitattributes +2 -0
  53. package/generators/app/templates/ext-localization/{vscodeignore → .vscodeignore} +0 -0
  54. package/generators/app/templates/ext-localization/README.md +2 -1
  55. package/generators/app/templates/ext-localization/package.json +20 -20
  56. package/generators/app/templates/ext-localization/vsc-extension-quickstart.md +2 -2
  57. package/generators/app/templates/ext-notebook-renderer/.gitattributes +2 -0
  58. package/generators/app/templates/ext-notebook-renderer/README.md +3 -3
  59. package/generators/app/templates/ext-notebook-renderer/package.json +2 -2
  60. package/generators/app/templates/ext-snippets/.gitattributes +2 -0
  61. package/generators/app/templates/ext-snippets/{vscodeignore → .vscodeignore} +0 -0
  62. package/generators/app/templates/ext-snippets/README.md +8 -8
  63. package/generators/app/templates/ext-snippets/package.json +18 -18
  64. package/generators/app/templates/ext-snippets/vsc-extension-quickstart.md +1 -1
  65. package/package.json +4 -4
  66. package/generators/app/templates/ext-colortheme/gitattributes +0 -3
  67. package/generators/app/templates/ext-colortheme/gitignore +0 -2
  68. package/generators/app/templates/ext-command-js/gitignore +0 -3
  69. package/generators/app/templates/ext-command-ts/gitignore +0 -5
  70. package/generators/app/templates/ext-command-web/gitignore +0 -5
  71. package/generators/app/templates/ext-extensionpack/gitignore +0 -2
  72. package/generators/app/templates/ext-keymap/gitignore +0 -2
  73. package/generators/app/templates/ext-language/gitignore +0 -2
  74. package/generators/app/templates/ext-localization/gitattributes +0 -3
  75. package/generators/app/templates/ext-localization/gitignore +0 -2
  76. package/generators/app/templates/ext-notebook-renderer/gitignore +0 -4
  77. package/generators/app/templates/ext-snippets/gitattributes +0 -3
  78. package/generators/app/templates/ext-snippets/gitignore +0 -2
@@ -1,25 +1,25 @@
1
1
  {
2
- "name": <%- JSON.stringify(name) %>,
3
- "displayName": <%- JSON.stringify(displayName) %>,
4
- "description": <%- JSON.stringify(description) %>,
5
- "version": "0.0.1",
6
- "engines": {
7
- "vscode": <%- JSON.stringify(vsCodeEngine) %>
8
- },
9
- "categories": [
10
- "Programming Languages"
11
- ],
12
- "contributes": {
13
- "languages": [{
14
- "id": <%- JSON.stringify(languageId) %>,
15
- "aliases": [<%- JSON.stringify(languageName) %>, <%- JSON.stringify(languageId) %>],
16
- "extensions": <%- JSON.stringify(languageExtensions) %>,
17
- "configuration": "./language-configuration.json"
18
- }],
19
- "grammars": [{
20
- "language": <%- JSON.stringify(languageId) %>,
21
- "scopeName": <%- JSON.stringify(languageScopeName) %>,
22
- "path": <%- JSON.stringify("./syntaxes/" + languageFileName) %>
23
- }]
24
- }
25
- }
2
+ "name": <%- JSON.stringify(name) %>,
3
+ "displayName": <%- JSON.stringify(displayName) %>,
4
+ "description": <%- JSON.stringify(description) %>,
5
+ "version": "0.0.1",
6
+ "engines": {
7
+ "vscode": <%- JSON.stringify(vsCodeEngine) %>
8
+ },
9
+ "categories": [
10
+ "Programming Languages"
11
+ ],
12
+ "contributes": {
13
+ "languages": [{
14
+ "id": <%- JSON.stringify(languageId) %>,
15
+ "aliases": [<%- JSON.stringify(languageName) %>, <%- JSON.stringify(languageId) %>],
16
+ "extensions": <%- JSON.stringify(languageExtensions) %>,
17
+ "configuration": "./language-configuration.json"
18
+ }],
19
+ "grammars": [{
20
+ "language": <%- JSON.stringify(languageId) %>,
21
+ "scopeName": <%- JSON.stringify(languageScopeName) %>,
22
+ "path": <%- JSON.stringify("./syntaxes/" + languageFileName) %>
23
+ }]
24
+ }
25
+ }
@@ -21,7 +21,7 @@
21
21
 
22
22
  ## Add more language features
23
23
 
24
- * To add features such as intellisense, hovers and validators check out the VS Code extenders documentation at https://code.visualstudio.com/docs
24
+ * To add features such as IntelliSense, hovers and validators check out the VS Code extenders documentation at https://code.visualstudio.com/docs
25
25
 
26
26
  ## Install your extension
27
27
 
@@ -0,0 +1,2 @@
1
+ # Set default behavior to automatically normalize line endings.
2
+ * text=auto
@@ -1,8 +1,9 @@
1
- # <%= lpLanguageName %> Language Pack for VS Code
1
+ # <%= lpLanguageName %> Language Pack for VS Code
2
2
 
3
3
  Adds localization for <%= lpLanguageName %> to VS Code.
4
4
 
5
5
  The translated strings are maintained here:
6
+
6
7
  * [vscode-editor project](https://www.transifex.com/microsoft-oss/vscode-editor/language/<%= lpLanguageId %>/)
7
8
  * [vscode-workbench project](https://www.transifex.com/microsoft-oss/vscode-workbench/language/<%= lpLanguageId %>/)
8
9
  * [vscode-extensions project](https://www.transifex.com/microsoft-oss/vscode-extensions/language/<%= lpLanguageId %>/)
@@ -1,22 +1,22 @@
1
1
  {
2
- "name": <%- JSON.stringify(name) %>,
3
- "displayName": <%- JSON.stringify(displayName) %>,
4
- "description": <%- JSON.stringify(description) %>,
5
- "version": "0.0.1",
6
- "engines": {
7
- "vscode": <%- JSON.stringify(vsCodeEngine) %>
8
- },
9
- "categories": [
10
- "Language Packs"
11
- ],
12
- "contributes": {
13
- "localizations": [{
14
- "languageId": <%- JSON.stringify(lpLanguageId) %>,
15
- "languageName": <%- JSON.stringify(lpLanguageName) %>,
16
- "localizedLanguageName": <%- JSON.stringify(lpLocalizedLanguageName) %>
17
- }]
18
- },
19
- "scripts": {
20
- "update": "cd ../vscode && <%= pkgManager %> run update-localization-extension <%- lpLanguageId %>"
21
- }
2
+ "name": <%- JSON.stringify(name) %>,
3
+ "displayName": <%- JSON.stringify(displayName) %>,
4
+ "description": <%- JSON.stringify(description) %>,
5
+ "version": "0.0.1",
6
+ "engines": {
7
+ "vscode": <%- JSON.stringify(vsCodeEngine) %>
8
+ },
9
+ "categories": [
10
+ "Language Packs"
11
+ ],
12
+ "contributes": {
13
+ "localizations": [{
14
+ "languageId": <%- JSON.stringify(lpLanguageId) %>,
15
+ "languageName": <%- JSON.stringify(lpLanguageName) %>,
16
+ "localizedLanguageName": <%- JSON.stringify(lpLocalizedLanguageName) %>
17
+ }]
18
+ },
19
+ "scripts": {
20
+ "update": "cd ../vscode && <%= pkgManager %> run update-localization-extension <%- lpLanguageId %>"
21
+ }
22
22
  }
@@ -21,11 +21,11 @@ To create/update the `translations` folder with the latest strings from transife
21
21
  * Get an API token from https://www.transifex.com/user/settings/api. The token needs to have access to the `vscode-editor`, `vscode-workbench` and `vscode-extensions` projects.
22
22
  * Set the API token to the environment variable `TRANSIFEX_API_TOKEN`.
23
23
  * Check out the `main` branch of the [VS Code repository](https://github.com/Microsoft/vscode).
24
- * Preferably, place the VSCode repo next to the language pack extension (so both have the same parent folder).
24
+ * Preferably, place the VS Code repo next to the language pack extension (so both have the same parent folder).
25
25
  * `cd vscode` and run `yarn` to initialize the VS Code repo. More information on how to build VS Code you can find [here](https://github.com/Microsoft/vscode/wiki/How-to-Contribute).
26
26
  * If the language pack extension is placed next to the VS Code repository: `npm run update-localization-extension <%- lpLanguageId %>`
27
27
  * Otherwise: `npm run update-localization-extension {path_to_lang_pack_ext}`
28
- * This will download translation files to the folder `translations`
28
+ * This will download translation files to the folder `translations`.
29
29
  * `package.json` will be modified and add a `translations` property with paths to each extension's translations will be added.
30
30
 
31
31
  ```json
@@ -0,0 +1,2 @@
1
+ # Set default behavior to automatically normalize line endings.
2
+ * text=auto
@@ -1,4 +1,4 @@
1
- # <%- name %>
1
+ # <%- name %> README
2
2
 
3
3
  ⚠️ Work-in-progress starter code for custom notebook renderers in VS Code. Expect this to change as notebooks matures. ⚠️
4
4
 
@@ -9,12 +9,12 @@ This starter includes:
9
9
  - ⚡ Support for hot module reloading and safe boilerplate
10
10
  - 🎨 CSS modules support
11
11
 
12
- ### Running this Sample
12
+ ## Running this Sample
13
13
 
14
14
  1. `code-insiders <%- name %>`: Open the folder in VS Code Insiders
15
15
  1. Hit `F5` to build+debug
16
16
 
17
- ### Structure
17
+ ## Structure
18
18
 
19
19
  A Notebook Renderer consists of code that runs in the VS Code Extension Host (Node.js), which registers the renderer and passes data into the UI code running inside a WebView (Browser/DOM).
20
20
 
@@ -26,11 +26,11 @@
26
26
  ]
27
27
  },
28
28
  "scripts": {
29
- "vscode:prepublish": "npm run compile",
29
+ "vscode:prepublish": "<%= pkgManager %> run compile",
30
30
  "compile": "webpack --mode production",
31
31
  "lint": "eslint src --ext ts",
32
32
  "watch": "webpack --mode development --watch",
33
- "pretest": "webpack --mode development && npm run lint",
33
+ "pretest": "webpack --mode development && <%= pkgManager %> run lint",
34
34
  "test": "node ./out/test/runTest.js"
35
35
  },
36
36
  "devDependencies": {
@@ -0,0 +1,2 @@
1
+ # Set default behavior to automatically normalize line endings.
2
+ * text=auto
@@ -24,8 +24,8 @@ For example:
24
24
 
25
25
  This extension contributes the following settings:
26
26
 
27
- * `myExtension.enable`: enable/disable this extension
28
- * `myExtension.thing`: set to `blah` to do something
27
+ * `myExtension.enable`: Enable/disable this extension.
28
+ * `myExtension.thing`: Set to `blah` to do something.
29
29
 
30
30
  ## Known Issues
31
31
 
@@ -47,17 +47,17 @@ Fixed issue #.
47
47
 
48
48
  Added features X, Y, and Z.
49
49
 
50
- -----------------------------------------------------------------------------------------------------------
50
+ ---
51
51
 
52
52
  ## Working with Markdown
53
53
 
54
- **Note:** You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
54
+ You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
55
55
 
56
- * Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux)
57
- * Toggle preview (`Shift+CMD+V` on macOS or `Shift+Ctrl+V` on Windows and Linux)
58
- * Press `Ctrl+Space` (Windows, Linux) or `Cmd+Space` (macOS) to see a list of Markdown snippets
56
+ * Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux).
57
+ * Toggle preview (`Shift+Cmd+V` on macOS or `Shift+Ctrl+V` on Windows and Linux).
58
+ * Press `Ctrl+Space` (Windows, Linux, macOS) to see a list of Markdown snippets.
59
59
 
60
- ### For more information
60
+ ## For more information
61
61
 
62
62
  * [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
63
63
  * [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
@@ -1,20 +1,20 @@
1
1
  {
2
- "name": <%- JSON.stringify(name) %>,
3
- "displayName": <%- JSON.stringify(displayName) %>,
4
- "description": <%- JSON.stringify(description) %>,
5
- "version": "0.0.1",
6
- "engines": {
7
- "vscode": <%- JSON.stringify(vsCodeEngine) %>
8
- },
9
- "categories": [
10
- "Snippets"
11
- ],
12
- "contributes": {
13
- "snippets": [
14
- {
15
- "language": <%- JSON.stringify(languageId) %>,
16
- "path": "./snippets/snippets.code-snippets"
17
- }
18
- ]
19
- }
2
+ "name": <%- JSON.stringify(name) %>,
3
+ "displayName": <%- JSON.stringify(displayName) %>,
4
+ "description": <%- JSON.stringify(description) %>,
5
+ "version": "0.0.1",
6
+ "engines": {
7
+ "vscode": <%- JSON.stringify(vsCodeEngine) %>
8
+ },
9
+ "categories": [
10
+ "Snippets"
11
+ ],
12
+ "contributes": {
13
+ "snippets": [
14
+ {
15
+ "language": <%- JSON.stringify(languageId) %>,
16
+ "path": "./snippets/snippets.code-snippets"
17
+ }
18
+ ]
19
+ }
20
20
  }
@@ -10,7 +10,7 @@
10
10
 
11
11
  * Press `F5` to open a new window with your extension loaded.
12
12
  * Create a new file with a file name suffix matching your language.
13
- * Verify that your snippets are proposed on intellisense.
13
+ * Verify that your snippets are proposed on IntelliSense.
14
14
 
15
15
  ## Make changes
16
16
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "generator-code",
3
- "version": "1.6.10",
4
- "description": "Yeoman generator for Visual Studio Code Extensions",
3
+ "version": "1.6.13",
4
+ "description": "Yeoman generator for Visual Studio Code extensions.",
5
5
  "keywords": [
6
6
  "yeoman-generator",
7
7
  "vscode",
@@ -25,7 +25,7 @@
25
25
  "url": "https://github.com/Microsoft"
26
26
  },
27
27
  "engines": {
28
- "node": ">=10.0.0"
28
+ "node": ">=12.10.0"
29
29
  },
30
30
  "scripts": {
31
31
  "test": "mocha",
@@ -47,7 +47,7 @@
47
47
  "@types/node": "^16.11.6",
48
48
  "@types/yeoman-generator": "^5.2.10",
49
49
  "@types/yeoman-test": "^4.0.3",
50
- "mocha": "^9.2.2",
50
+ "mocha": "^10.0.0",
51
51
  "yeoman-environment": "^3.9.1",
52
52
  "yeoman-test": "^6.3.0"
53
53
  }
@@ -1,3 +0,0 @@
1
- # Set default behavior to automatically normalize line endings.
2
- * text=auto
3
-
@@ -1,2 +0,0 @@
1
- node_modules
2
- *.vsix
@@ -1,3 +0,0 @@
1
- node_modules
2
- .vscode-test/
3
- *.vsix
@@ -1,5 +0,0 @@
1
- out
2
- dist
3
- node_modules
4
- .vscode-test/
5
- *.vsix
@@ -1,5 +0,0 @@
1
- out
2
- dist
3
- node_modules
4
- .vscode-test-web/
5
- *.vsix
@@ -1,2 +0,0 @@
1
- node_modules
2
- *.vsix
@@ -1,2 +0,0 @@
1
- node_modules
2
- *.vsix
@@ -1,2 +0,0 @@
1
- node_modules
2
- *.vsix
@@ -1,3 +0,0 @@
1
- # Set default behavior to automatically normalize line endings.
2
- * text=auto
3
-
@@ -1,2 +0,0 @@
1
- node_modules
2
- *.vsix
@@ -1,4 +0,0 @@
1
- out
2
- node_modules
3
- .vscode-test/
4
- *.vsix
@@ -1,3 +0,0 @@
1
- # Set default behavior to automatically normalize line endings.
2
- * text=auto
3
-
@@ -1,2 +0,0 @@
1
- node_modules
2
- *.vsix