-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
153 lines (153 loc) · 4.91 KB
/
package.json
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"name": "preferences-inheritance",
"displayName": "Preferences Inheritance",
"publisher": "isplasher",
"description": "Share common preferences across profiles, workspaces, projects through inheritance.",
"version": "1.1.0",
"repository": {
"type": "git",
"url": "https://github.com/iSplasher/preferences-inheritance.git"
},
"sponsor": {
"url": "https://github.com/sponsors/isplasher"
},
"icon": "images/icon.png",
"engines": {
"vscode": "^1.60.0"
},
"categories": [
"Other"
],
"activationEvents": [
"*",
"onCommand:preferencesInheritance.mergePreferences"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "preferencesInheritance.mergePreferences",
"title": "Merge Preferences"
}
],
"configuration": {
"title": "Preferences Inheritance",
"properties": {
"preferencesInheritance.targets": {
"markdownDescription": "A list of preferences to merge. \n\nExample:\n\n\n`output: { path: \"out.json\", type: \"json\" }` // for output, type can be [json, text, yaml]\nor, just a string, will derive type from extension or default to json\n\n`output: \"out.json\"`\n\n`sources: [{ path: \"test1.json\", type: \"jsonc\" }]` // for source, type can be [json, jsonc, text, yaml]\n\nor, just a string, settings get overwritten left to right\n\n`sources: [\"test1.json\", { path: \"test2.txt\", type: \"text\"}]`",
"type": "array",
"items": {
"type": "object",
"properties": {
"sources": {
"type": "array",
"items": {
"type": [
"string",
"object"
],
"properties": {
"path": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"text",
"json",
"jsonc",
"yaml"
]
}
}
}
},
"output": {
"type": [
"object",
"string"
],
"properties": {
"path": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"text",
"json",
"yaml"
]
}
}
}
},
"required": [
"sources",
"output"
]
}
},
"preferencesInheritance.mergeOnStartup": {
"markdownDescription": "Merge preferences on startup.",
"type": "boolean",
"default": true
},
"preferencesInheritance.notifyOnMerge": {
"markdownDescription": "Notify when preferences are merged.",
"type": "boolean",
"default": false
},
"preferencesInheritance.notifyOnNewWorkspace": {
"markdownDescription": "Notify about merges being active (if list of merge sources is non-empty) when a new workspace is opened.",
"type": "boolean",
"default": true
},
"preferencesInheritance.watchSources": {
"markdownDescription": "Watch sources for changes and merge on change.",
"type": "boolean",
"default": true
},
"preferencesInheritance.fetchContentCacheTime": {
"markdownDescription": "Time in seconds to cache fetched web content. Default is 60 * 5 seconds.",
"type": "number",
"default": 300
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn run package",
"vscode:publish": "yarn run package && vsce publish",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "yarn run compile-tests && yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "18.x",
"@types/sinon": "^17.0.2",
"@types/tmp": "^0.2.6",
"@types/vscode": "1.60.0",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"@vscode/test-cli": "^0.0.4",
"@vscode/test-electron": "^2.3.8",
"eslint": "^8.56.0",
"sinon": "^17.0.1",
"tmp-promise": "^3.0.3",
"ts-loader": "^9.5.1",
"typescript": "^5.3.3",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"json5": "^2.2.3",
"yaml": "^2.3.4"
}
}