@daiyam/artifact-vsx-ts 0.5.2 → 0.6.0
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 +1 -1
- package/configs/.fixpackrc +2 -1
- package/configs/.github/workflows/publish.yml +5 -5
- package/configs/CHANGELOG.md +1 -1
- package/configs/package.json +42 -4
- package/configs/src/extension.ts +12 -1
- package/package.json +2 -2
package/README.md
CHANGED
package/configs/.fixpackrc
CHANGED
|
@@ -7,17 +7,17 @@ jobs:
|
|
|
7
7
|
publish:
|
|
8
8
|
runs-on: ubuntu-latest
|
|
9
9
|
steps:
|
|
10
|
-
- uses: actions/checkout@
|
|
11
|
-
- uses: actions/setup-node@
|
|
10
|
+
- uses: actions/checkout@v4
|
|
11
|
+
- uses: actions/setup-node@v4
|
|
12
12
|
with:
|
|
13
|
-
node-version:
|
|
13
|
+
node-version: 20
|
|
14
14
|
- run: npm ci
|
|
15
15
|
- name: Publish to Open VSX Registry
|
|
16
|
-
uses: HaaLeo/publish-vscode-extension@
|
|
16
|
+
uses: HaaLeo/publish-vscode-extension@v2
|
|
17
17
|
with:
|
|
18
18
|
pat: ${{ secrets.OPEN_VSX_TOKEN }}
|
|
19
19
|
- name: Publish to Visual Studio Marketplace
|
|
20
|
-
uses: HaaLeo/publish-vscode-extension@
|
|
20
|
+
uses: HaaLeo/publish-vscode-extension@v2
|
|
21
21
|
with:
|
|
22
22
|
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
|
|
23
23
|
registryUrl: https://marketplace.visualstudio.com
|
package/configs/CHANGELOG.md
CHANGED
package/configs/package.json
CHANGED
|
@@ -1,30 +1,68 @@
|
|
|
1
1
|
{
|
|
2
|
+
"name": "EXT_NAME",
|
|
2
3
|
"displayName": "EXT_DISPLAY_NAME",
|
|
3
4
|
"engines": {
|
|
4
5
|
"vscode": "^1.23.0"
|
|
5
6
|
},
|
|
6
7
|
"main": "./lib/index.js",
|
|
8
|
+
"browser": "./lib/index.js",
|
|
7
9
|
"scripts": {
|
|
8
10
|
"compile": "tsc -p src",
|
|
11
|
+
"package": "rm -f *.vsix && vsce package",
|
|
9
12
|
"release": "release-it",
|
|
10
13
|
"vscode:prepublish": "npm run compile && npm run bundle",
|
|
11
14
|
"watch": "tsc-watch -p src --onSuccess 'npm run bundle'"
|
|
12
15
|
},
|
|
13
16
|
"devDependencies": {
|
|
14
17
|
"@types/vscode": "^1.23.0",
|
|
15
|
-
"release-it": "^
|
|
16
|
-
"tsc-watch": "^
|
|
18
|
+
"release-it": "^18.1.2",
|
|
19
|
+
"tsc-watch": "^6.3.0"
|
|
17
20
|
},
|
|
18
21
|
"activationEvents": [
|
|
19
|
-
"
|
|
22
|
+
"onStartupFinished"
|
|
20
23
|
],
|
|
24
|
+
"capabilities": {
|
|
25
|
+
"virtualWorkspaces": true,
|
|
26
|
+
"untrustedWorkspaces": {
|
|
27
|
+
"supported": true
|
|
28
|
+
}
|
|
29
|
+
},
|
|
21
30
|
"contributes": {
|
|
22
31
|
"commands": [],
|
|
23
32
|
"configuration": {
|
|
24
33
|
"title": "EXT_DISPLAY_NAME",
|
|
25
|
-
"properties": {
|
|
34
|
+
"properties": {
|
|
35
|
+
"EXT_CFG_KEY.notification": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "Display notification when a new version is installed",
|
|
38
|
+
"default": "minor",
|
|
39
|
+
"enum": [
|
|
40
|
+
"none",
|
|
41
|
+
"major",
|
|
42
|
+
"minor",
|
|
43
|
+
"patch"
|
|
44
|
+
],
|
|
45
|
+
"enumDescriptions": [
|
|
46
|
+
"The new version notification won't be shown anymore.",
|
|
47
|
+
"The new version notification will be shown only with a new major version",
|
|
48
|
+
"The new version notification will be shown only with a new minor version",
|
|
49
|
+
"The new version notification will always be shown"
|
|
50
|
+
],
|
|
51
|
+
"scope": "application",
|
|
52
|
+
"tags": []
|
|
53
|
+
}
|
|
54
|
+
}
|
|
26
55
|
}
|
|
27
56
|
},
|
|
57
|
+
"extensionKind": [
|
|
58
|
+
"ui",
|
|
59
|
+
"workspace"
|
|
60
|
+
],
|
|
61
|
+
"icon": "icon.png",
|
|
62
|
+
"galleryBanner": {
|
|
63
|
+
"color": "#ffffff",
|
|
64
|
+
"theme": "light"
|
|
65
|
+
},
|
|
28
66
|
"categories": [
|
|
29
67
|
"Other"
|
|
30
68
|
],
|
package/configs/src/extension.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import vscode from 'vscode';
|
|
2
2
|
import pkg from '../package.json';
|
|
3
3
|
|
|
4
|
-
const CONFIG_KEY = '
|
|
4
|
+
const CONFIG_KEY = 'EXT_CFG_KEY';
|
|
5
5
|
const VERSION_KEY = 'version';
|
|
6
6
|
|
|
7
|
+
function setup(): void { // {{{
|
|
8
|
+
} // }}}
|
|
9
|
+
|
|
7
10
|
async function showWhatsNewMessage(version: string) { // {{{
|
|
8
11
|
const actions: vscode.MessageItem[] = [{
|
|
9
12
|
title: 'Homepage',
|
|
@@ -60,4 +63,12 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
|
|
|
60
63
|
void showWhatsNewMessage(currentVersion);
|
|
61
64
|
}
|
|
62
65
|
}
|
|
66
|
+
|
|
67
|
+
setup();
|
|
68
|
+
|
|
69
|
+
vscode.workspace.onDidChangeConfiguration((event) => {
|
|
70
|
+
if(event.affectsConfiguration(CONFIG_KEY)) {
|
|
71
|
+
setup();
|
|
72
|
+
}
|
|
73
|
+
});
|
|
63
74
|
} // }}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daiyam/artifact-vsx-ts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "The configuration to create Visual Studio extensions and publish them on Visual Studio Marketplace and Open VSX Registry.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Baptiste Augrain",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"project-template",
|
|
32
32
|
"scaffold"
|
|
33
33
|
],
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "c73c92c82234f1f1e6c94ef2abd076feab0b8169"
|
|
35
35
|
}
|