generator-code 1.6.12 → 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.
- package/README.md +14 -7
- package/generators/app/dependencyVersions/package.json +6 -6
- package/generators/app/generate-colortheme.js +4 -4
- package/generators/app/generate-command-js.js +2 -2
- package/generators/app/generate-command-ts.js +3 -3
- package/generators/app/generate-command-web.js +2 -2
- package/generators/app/generate-extensionpack.js +3 -3
- package/generators/app/generate-keymap.js +3 -3
- package/generators/app/generate-language.js +3 -3
- package/generators/app/generate-localization.js +3 -3
- package/generators/app/generate-notebook-renderer.js +2 -2
- package/generators/app/generate-snippets.js +3 -3
- package/generators/app/index.js +1 -1
- package/generators/app/prompts.js +5 -1
- package/generators/app/templates/{ext-notebook-renderer/gitattributes → ext-colortheme/.gitattributes} +0 -0
- package/generators/app/templates/ext-colortheme/{vscodeignore → .vscodeignore} +0 -0
- package/generators/app/templates/ext-colortheme/README.md +10 -7
- package/generators/app/templates/ext-colortheme/package.json +20 -20
- package/generators/app/templates/ext-colortheme/vsc-extension-quickstart.md +1 -1
- package/generators/app/templates/ext-command-js/{vscodeignore → .vscodeignore} +0 -0
- package/generators/app/templates/ext-command-js/README.md +6 -6
- package/generators/app/templates/ext-command-js/package.json +35 -37
- package/generators/app/templates/ext-command-js/vsc-extension-quickstart.md +3 -1
- package/generators/app/templates/ext-command-ts/{vscodeignore → .vscodeignore} +0 -0
- package/generators/app/templates/ext-command-ts/README.md +9 -8
- package/generators/app/templates/ext-command-ts/package.json +45 -45
- package/generators/app/templates/ext-command-ts/vsc-extension-quickstart.md +2 -2
- package/generators/app/templates/ext-command-ts/vscode-webpack/{vscodeignore → .vscodeignore} +0 -0
- package/generators/app/templates/ext-command-ts/vscode-webpack/package.json +51 -51
- package/generators/app/templates/ext-command-ts/vscode-webpack/vsc-extension-quickstart.md +1 -1
- package/generators/app/templates/ext-command-ts/vscode-webpack/webpack.config.js +1 -1
- package/generators/app/templates/ext-command-web/{vscodeignore → .vscodeignore} +0 -0
- package/generators/app/templates/ext-command-web/README.md +8 -8
- package/generators/app/templates/ext-command-web/package.json +49 -51
- package/generators/app/templates/ext-command-web/vsc-extension-quickstart.md +7 -6
- package/generators/app/templates/ext-command-web/webpack.config.js +3 -0
- package/generators/app/templates/ext-extensionpack/{gitattributes → .gitattributes} +0 -1
- package/generators/app/templates/ext-extensionpack/{vscodeignore → .vscodeignore} +0 -0
- package/generators/app/templates/ext-extensionpack/README.md +6 -6
- package/generators/app/templates/ext-extensionpack/package.json +15 -15
- package/generators/app/templates/ext-keymap/{gitattributes → .gitattributes} +0 -1
- package/generators/app/templates/ext-keymap/{vscodeignore → .vscodeignore} +0 -0
- package/generators/app/templates/ext-keymap/README.md +10 -7
- package/generators/app/templates/ext-keymap/package.json +19 -19
- package/generators/app/templates/ext-keymap/vsc-extension-quickstart.md +2 -2
- package/generators/app/templates/ext-language/{gitattributes → .gitattributes} +0 -1
- package/generators/app/templates/ext-language/{vscodeignore → .vscodeignore} +0 -0
- package/generators/app/templates/ext-language/README.md +8 -8
- package/generators/app/templates/ext-language/package.json +24 -24
- package/generators/app/templates/ext-language/vsc-extension-quickstart.md +1 -1
- package/generators/app/templates/ext-localization/.gitattributes +2 -0
- package/generators/app/templates/ext-localization/{vscodeignore → .vscodeignore} +0 -0
- package/generators/app/templates/ext-localization/README.md +2 -1
- package/generators/app/templates/ext-localization/package.json +20 -20
- package/generators/app/templates/ext-localization/vsc-extension-quickstart.md +2 -2
- package/generators/app/templates/ext-notebook-renderer/.gitattributes +2 -0
- package/generators/app/templates/ext-notebook-renderer/README.md +3 -3
- package/generators/app/templates/ext-notebook-renderer/package.json +2 -2
- package/generators/app/templates/ext-snippets/.gitattributes +2 -0
- package/generators/app/templates/ext-snippets/{vscodeignore → .vscodeignore} +0 -0
- package/generators/app/templates/ext-snippets/README.md +8 -8
- package/generators/app/templates/ext-snippets/package.json +18 -18
- package/generators/app/templates/ext-snippets/vsc-extension-quickstart.md +1 -1
- package/package.json +2 -2
- package/generators/app/templates/ext-colortheme/gitattributes +0 -3
- package/generators/app/templates/ext-colortheme/gitignore +0 -2
- package/generators/app/templates/ext-command-js/gitignore +0 -3
- package/generators/app/templates/ext-command-ts/gitignore +0 -5
- package/generators/app/templates/ext-command-web/gitignore +0 -5
- package/generators/app/templates/ext-extensionpack/gitignore +0 -2
- package/generators/app/templates/ext-keymap/gitignore +0 -2
- package/generators/app/templates/ext-language/gitignore +0 -2
- package/generators/app/templates/ext-localization/gitattributes +0 -3
- package/generators/app/templates/ext-localization/gitignore +0 -2
- package/generators/app/templates/ext-notebook-renderer/gitignore +0 -4
- package/generators/app/templates/ext-snippets/gitattributes +0 -3
- package/generators/app/templates/ext-snippets/gitignore +0 -2
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
|
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
|
|
|
File without changes
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
#
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
|
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
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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": "
|
|
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 &&
|
|
33
|
+
"pretest": "webpack --mode development && <%= pkgManager %> run lint",
|
|
34
34
|
"test": "node ./out/test/runTest.js"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
File without changes
|
|
@@ -24,8 +24,8 @@ For example:
|
|
|
24
24
|
|
|
25
25
|
This extension contributes the following settings:
|
|
26
26
|
|
|
27
|
-
* `myExtension.enable`:
|
|
28
|
-
* `myExtension.thing`:
|
|
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
|
-
|
|
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+
|
|
58
|
-
* Press `Ctrl+Space` (Windows, Linux, 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
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
|
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.
|
|
4
|
-
"description": "Yeoman generator for Visual Studio Code
|
|
3
|
+
"version": "1.6.13",
|
|
4
|
+
"description": "Yeoman generator for Visual Studio Code extensions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yeoman-generator",
|
|
7
7
|
"vscode",
|