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.
- package/README.md +14 -7
- package/generators/app/dependencyVersions/package.json +14 -14
- 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 +7 -7
- 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/vscode/tasks.json +2 -5
- 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 +4 -4
- 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,48 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": <%- JSON.stringify(name) %>,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
+
"Other"
|
|
11
|
+
],
|
|
12
|
+
"activationEvents": [
|
|
13
|
+
<%- JSON.stringify(`onCommand:${name}.helloWorld`) %>
|
|
14
|
+
],
|
|
15
|
+
"main": "./out/extension.js",<% if (insiders) { %>
|
|
16
|
+
"enabledApiProposals": [],<% } %>
|
|
17
|
+
"contributes": {
|
|
18
|
+
"commands": [
|
|
19
|
+
{
|
|
20
|
+
"command": <%- JSON.stringify(`${name}.helloWorld`) %>,
|
|
21
|
+
"title": "Hello World"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"vscode:prepublish": "<%= pkgManager %> run compile",
|
|
27
|
+
"compile": "tsc -p ./",
|
|
28
|
+
"watch": "tsc -watch -p ./",
|
|
29
|
+
"pretest": "<%= pkgManager %> run compile && <%= pkgManager %> run lint",
|
|
30
|
+
"lint": "eslint src --ext ts",
|
|
31
|
+
"test": "node ./out/test/runTest.js"<% if (insiders) { %>,
|
|
32
|
+
"update-proposed-api": "vscode-dts dev"<% } %>
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
<%- dep("@types/vscode") %>,
|
|
36
|
+
<%- dep("@types/glob") %>,
|
|
37
|
+
<%- dep("@types/mocha") %>,
|
|
38
|
+
<%- dep("@types/node") %>,
|
|
39
|
+
<%- dep("@typescript-eslint/eslint-plugin") %>,
|
|
40
|
+
<%- dep("@typescript-eslint/parser") %>,
|
|
41
|
+
<%- dep("eslint") %>,
|
|
42
|
+
<%- dep("glob") %>,
|
|
43
|
+
<%- dep("mocha") %>,
|
|
44
|
+
<%- dep("typescript") %>,
|
|
45
|
+
<%- dep("@vscode/test-electron") %><% if (insiders) { %>,
|
|
46
|
+
<%- dep("vscode-dts") %><% } %>
|
|
47
|
+
}
|
|
48
48
|
}
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
* You can relaunch the extension from the debug toolbar after changing code in `src/extension.ts`.
|
|
22
22
|
* You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes.
|
|
23
23
|
|
|
24
|
-
|
|
25
24
|
## Explore the API
|
|
26
25
|
|
|
27
26
|
* You can open the full set of our API when you open the file `node_modules/@types/vscode/index.d.ts`.
|
|
@@ -37,6 +36,7 @@
|
|
|
37
36
|
|
|
38
37
|
## Go further
|
|
39
38
|
|
|
39
|
+
* [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.
|
|
40
40
|
* Reduce the extension size and improve the startup time by [bundling your extension](https://code.visualstudio.com/api/working-with-extensions/bundling-extension).
|
|
41
|
-
* [Publish your extension](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) on the
|
|
41
|
+
* [Publish your extension](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) on the VS Code extension marketplace.
|
|
42
42
|
* Automate builds by setting up [Continuous Integration](https://code.visualstudio.com/api/working-with-extensions/continuous-integration).
|
package/generators/app/templates/ext-command-ts/vscode-webpack/{vscodeignore → .vscodeignore}
RENAMED
|
File without changes
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": <%- JSON.stringify(name) %>,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
+
"Other"
|
|
11
|
+
],
|
|
12
|
+
"activationEvents": [
|
|
13
|
+
<%- JSON.stringify(`onCommand:${name}.helloWorld`) %>
|
|
14
|
+
],
|
|
15
|
+
"main": "./dist/extension.js",<% if (insiders) { %>
|
|
16
|
+
"enabledApiProposals": [],<% } %>
|
|
17
|
+
"contributes": {
|
|
18
|
+
"commands": [
|
|
19
|
+
{
|
|
20
|
+
"command": <%- JSON.stringify(`${name}.helloWorld`) %>,
|
|
21
|
+
"title": "Hello World"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"vscode:prepublish": "<%= pkgManager %> run package",
|
|
27
|
+
"compile": "webpack",
|
|
28
|
+
"watch": "webpack --watch",
|
|
29
|
+
"package": "webpack --mode production --devtool hidden-source-map",
|
|
30
|
+
"compile-tests": "tsc -p . --outDir out",
|
|
31
|
+
"watch-tests": "tsc -p . -w --outDir out",
|
|
32
|
+
"pretest": "<%= pkgManager %> run compile-tests && <%= pkgManager %> run compile && <%= pkgManager %> run lint",
|
|
33
|
+
"lint": "eslint src --ext ts",
|
|
34
|
+
"test": "node ./out/test/runTest.js"<% if (insiders) { %>,
|
|
35
|
+
"update-proposed-api": "vscode-dts dev"<% } %>
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
<%- dep("@types/vscode") %>,
|
|
39
|
+
<%- dep("@types/glob") %>,
|
|
40
|
+
<%- dep("@types/mocha") %>,
|
|
41
|
+
<%- dep("@types/node") %>,
|
|
42
|
+
<%- dep("@typescript-eslint/eslint-plugin") %>,
|
|
43
|
+
<%- dep("@typescript-eslint/parser") %>,
|
|
44
|
+
<%- dep("eslint") %>,
|
|
45
|
+
<%- dep("glob") %>,
|
|
46
|
+
<%- dep("mocha") %>,
|
|
47
|
+
<%- dep("typescript") %>,
|
|
48
|
+
<%- dep("ts-loader") %>,
|
|
49
|
+
<%- dep("webpack") %>,
|
|
50
|
+
<%- dep("webpack-cli") %>,
|
|
51
|
+
<%- dep("@vscode/test-electron") %><% if (insiders) { %>,
|
|
52
|
+
<%- dep("vscode-dts") %><% } %>
|
|
53
|
+
}
|
|
54
54
|
}
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
## Go further
|
|
44
44
|
|
|
45
45
|
* Reduce the extension size and improve the startup time by [bundling your extension](https://code.visualstudio.com/api/working-with-extensions/bundling-extension).
|
|
46
|
-
* [Publish your extension](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) on the
|
|
46
|
+
* [Publish your extension](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) on the VS Code extension marketplace.
|
|
47
47
|
* Automate builds by setting up [Continuous Integration](https://code.visualstudio.com/api/working-with-extensions/continuous-integration).
|
|
@@ -6,10 +6,7 @@
|
|
|
6
6
|
{
|
|
7
7
|
"type": "npm",
|
|
8
8
|
"script": "watch",
|
|
9
|
-
"problemMatcher":
|
|
10
|
-
"$ts-webpack-watch",
|
|
11
|
-
"$tslint-webpack-watch"
|
|
12
|
-
],
|
|
9
|
+
"problemMatcher": "$ts-webpack-watch",
|
|
13
10
|
"isBackground": true,
|
|
14
11
|
"presentation": {
|
|
15
12
|
"reveal": "never",
|
|
@@ -40,4 +37,4 @@
|
|
|
40
37
|
"problemMatcher": []
|
|
41
38
|
}
|
|
42
39
|
]
|
|
43
|
-
}
|
|
40
|
+
}
|
|
@@ -9,7 +9,7 @@ const path = require('path');
|
|
|
9
9
|
|
|
10
10
|
/** @type WebpackConfig */
|
|
11
11
|
const extensionConfig = {
|
|
12
|
-
target: 'node', //
|
|
12
|
+
target: 'node', // VS Code extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/
|
|
13
13
|
mode: 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production')
|
|
14
14
|
|
|
15
15
|
entry: './src/extension.ts', // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
|
|
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
|
|
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,52 +1,50 @@
|
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
}
|
|
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
|
+
"Other"
|
|
11
|
+
],
|
|
12
|
+
"activationEvents": [
|
|
13
|
+
<%- JSON.stringify(`onCommand:${name}.helloWorld`) %>
|
|
14
|
+
],
|
|
15
|
+
"browser": "./dist/web/extension.js",
|
|
16
|
+
"contributes": {
|
|
17
|
+
"commands": [
|
|
18
|
+
{
|
|
19
|
+
"command": <%- JSON.stringify(`${name}.helloWorld`) %>,
|
|
20
|
+
"title": "Hello World"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"test": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=. --extensionTestsPath=dist/web/test/suite/index.js",
|
|
26
|
+
"pretest": "<%= pkgManager %> run compile-web",
|
|
27
|
+
"vscode:prepublish": "<%= pkgManager %> run package-web",
|
|
28
|
+
"compile-web": "webpack",
|
|
29
|
+
"watch-web": "webpack --watch",
|
|
30
|
+
"package-web": "webpack --mode production --devtool hidden-source-map",
|
|
31
|
+
"lint": "eslint src --ext ts",
|
|
32
|
+
"run-in-browser": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=. ."
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
<%- dep("@types/vscode") %>,
|
|
36
|
+
<%- dep("@types/mocha") %>,
|
|
37
|
+
<%- dep("eslint") %>,
|
|
38
|
+
<%- dep("@typescript-eslint/eslint-plugin") %>,
|
|
39
|
+
<%- dep("@typescript-eslint/parser") %>,
|
|
40
|
+
<%- dep("mocha") %>,
|
|
41
|
+
<%- dep("typescript") %>,
|
|
42
|
+
<%- dep("@vscode/test-web") %>,
|
|
43
|
+
<%- dep("ts-loader") %>,
|
|
44
|
+
<%- dep("webpack") %>,
|
|
45
|
+
<%- dep("webpack-cli") %>,
|
|
46
|
+
<%- dep("@types/webpack-env") %>,
|
|
47
|
+
<%- dep("assert") %>,
|
|
48
|
+
<%- dep("process") %>
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
|
|
14
14
|
## Get up and running the Web Extension
|
|
15
15
|
|
|
16
|
-
* `npm install
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
16
|
+
* Run `npm install`.
|
|
17
|
+
* Place breakpoints in `src/web/extension.ts`.
|
|
18
|
+
* Debug via F5 (Run Web Extension).
|
|
19
|
+
* Execute extension code via `F1 > Hello world`.
|
|
20
20
|
|
|
21
21
|
## Make changes
|
|
22
22
|
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
## Go further
|
|
40
40
|
|
|
41
|
-
*
|
|
42
|
-
* [
|
|
41
|
+
* [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.
|
|
42
|
+
* Check out the [Web Extension Guide](https://code.visualstudio.com/api/extension-guides/web-extensions).
|
|
43
|
+
* [Publish your extension](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) on the VS Code extension marketplace.
|
|
43
44
|
* Automate builds by setting up [Continuous Integration](https://code.visualstudio.com/api/working-with-extensions/continuous-integration).
|
|
@@ -49,6 +49,9 @@ const webExtensionConfig = {
|
|
|
49
49
|
}]
|
|
50
50
|
},
|
|
51
51
|
plugins: [
|
|
52
|
+
new webpack.optimize.LimitChunkCountPlugin({
|
|
53
|
+
maxChunks: 1 // disable chunks by default since web extensions must be a single bundle
|
|
54
|
+
}),
|
|
52
55
|
new webpack.ProvidePlugin({
|
|
53
56
|
process: 'process/browser', // provide a shim for the global `process` variable
|
|
54
57
|
}),
|
|
File without changes
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# README
|
|
1
|
+
# <%- name %> README
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Working with Markdown
|
|
4
4
|
|
|
5
|
-
You can author your README using Visual Studio Code.
|
|
5
|
+
You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
|
|
6
6
|
|
|
7
|
-
* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux)
|
|
8
|
-
* Toggle preview (`Shift+
|
|
9
|
-
* Press `Ctrl+Space` (Windows, Linux
|
|
7
|
+
* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux).
|
|
8
|
+
* Toggle preview (`Shift+Cmd+V` on macOS or `Shift+Ctrl+V` on Windows and Linux).
|
|
9
|
+
* Press `Ctrl+Space` (Windows, Linux, macOS) to see a list of Markdown snippets.
|
|
10
10
|
|
|
11
11
|
## For more information
|
|
12
12
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
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
|
+
"Extension Packs"
|
|
11
|
+
],
|
|
12
|
+
"extensionPack": [ <% for (i=0; i<extensionList.length-1; i++) { %>
|
|
13
|
+
"<%- extensionList[i] %>", <%}%>
|
|
14
|
+
"<%- extensionList[extensionList.length-1]%>"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
File without changes
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
# README
|
|
2
|
-
## This is the README for your extension "<%= name %>"
|
|
3
|
-
You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
|
|
1
|
+
# <%- name %> README
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
## Working with Markdown
|
|
4
|
+
|
|
5
|
+
You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
|
|
6
|
+
|
|
7
|
+
* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux).
|
|
8
|
+
* Toggle preview (`Shift+Cmd+V` on macOS or `Shift+Ctrl+V` on Windows and Linux).
|
|
9
|
+
* Press `Ctrl+Space` (Windows, Linux, macOS) to see a list of Markdown snippets.
|
|
10
|
+
|
|
11
|
+
## For more information
|
|
8
12
|
|
|
9
|
-
### For more information
|
|
10
13
|
* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
|
|
11
14
|
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)
|
|
12
15
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
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
|
+
"Keymaps"
|
|
11
|
+
],
|
|
12
|
+
"contributes": {
|
|
13
|
+
"keybindings": [
|
|
14
|
+
{
|
|
15
|
+
"key": "ctrl+.",
|
|
16
|
+
"command": "workbench.action.showCommands"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
## Get up and running straight away
|
|
9
9
|
|
|
10
10
|
* Press `F5` to open a new window with your extension loaded.
|
|
11
|
-
* Press `Ctrl
|
|
12
|
-
* Verify that it will launch the Command Palette listing all available commands. The `Ctrl
|
|
11
|
+
* Press `Ctrl+.` instead of `Ctrl+Shift+P`.
|
|
12
|
+
* Verify that it will launch the Command Palette listing all available commands. The `Ctrl+.` keyboard shortcut was added as an example to you.
|
|
13
13
|
|
|
14
14
|
## Make changes
|
|
15
15
|
|
|
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
|
|
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/)
|