-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
196 lines (196 loc) · 6.94 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
{
"name": "show-unsaved-changes",
"displayName": "Show Unsaved Changes",
"description": "show unsaved changes for document in gutter (kinda like git)",
"version": "0.3.1",
"publisher": "ctf0",
"repository": "https://github.com/ctf0/vscode-show-unsaved-changes",
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/main",
"contributes": {
"commands": [
{
"command": "showUnsavedChanges.goToPrevChange",
"title": "Go To Prev Change",
"category": "Show Unsaved Changes",
"icon": "$(chevron-up)"
},
{
"command": "showUnsavedChanges.goToNextChange",
"title": "Go To Next Change",
"category": "Show Unsaved Changes",
"icon": "$(chevron-down)"
}
],
"submenus": [
{
"id": "suc.editor.context",
"label": "Show Unsaved Changes"
}
],
"menus": {
"commandPalette": [
{
"command": "showUnsavedChanges.goToPrevChange",
"when": "sucFilePath"
},
{
"command": "showUnsavedChanges.goToNextChange",
"when": "sucFilePath"
}
],
"editor/context": [
{
"submenu": "suc.editor.context",
"group": "suc"
}
],
"editor/title": [
{
"command": "showUnsavedChanges.goToPrevChange",
"when": "sucFilePath",
"group": "navigation"
},
{
"command": "showUnsavedChanges.goToNextChange",
"when": "sucFilePath",
"group": "navigation"
}
],
"suc.editor.context": [
{
"command": "showUnsavedChanges.goToPrevChange",
"when": "sucFilePath"
},
{
"command": "showUnsavedChanges.goToNextChange",
"when": "sucFilePath"
}
]
},
"configuration": {
"title": "Show Unsaved Changes",
"type": "object",
"properties": {
"showUnsavedChanges.wholeLine": {
"type": "boolean",
"default": true,
"description": "highlight multi-line block"
},
"showUnsavedChanges.clearOnSave": {
"type": "boolean",
"default": false,
"description": "clear decorations on file save"
},
"showUnsavedChanges.showInGutter": {
"type": "boolean",
"default": true,
"description": "show changes in gutter"
},
"showUnsavedChanges.showInOverView": {
"type": "boolean",
"default": true,
"description": "show changes in overview"
},
"showUnsavedChanges.showDiffOutput": {
"type": "boolean",
"default": false,
"markdownDescription": "show changes diff in output panel"
},
"showUnsavedChanges.debounceTime": {
"type": "number",
"default": 500,
"minimum": 500,
"markdownDescription": "ms to wait b4 checking for changes\n\n(increase the time if the editor became sluggish)"
},
"showUnsavedChanges.gitPath": {
"type": "string",
"default": "git",
"markdownDescription": "global git path, [git-installation](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)."
},
"showUnsavedChanges.terminalShellPath": {
"type": [
"string",
"null"
],
"default": null,
"description": "custom terminal shell path"
},
"showUnsavedChanges.schemeTypes": {
"type": "array",
"default": [
"file",
"untitled",
"vscode-userdata"
],
"items": {
"type": "string"
},
"minItems": 1,
"uniqueItems": true,
"description": "allowed files schemes"
},
"showUnsavedChanges.schemeTypesIgnore": {
"type": "array",
"default": [
"vscode-terminal"
],
"items": {
"type": "string"
},
"minItems": 1,
"uniqueItems": true,
"description": "ignore this schemes & dont show warning message when requested"
},
"showUnsavedChanges.styles": {
"type": "object",
"default": {
"overview": {
"opacity": 0.75,
"add": "#2faf64",
"change": "#FFCE57",
"del": "#a31515"
},
"gutter": {
"size": "auto",
"add": "#2faf64",
"change": "#FFCE57",
"del": "#a31515"
}
},
"description": "decoration styles"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --pure:console.log --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"watch": "npm run esbuild"
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.10.2",
"@types/vscode": "^1.90.0",
"esbuild": "^0.24.0",
"typescript": "^5.7.2"
},
"dependencies": {
"execa": "^9.5.2",
"fs-extra": "^11.2.0",
"hex-to-rgba": "^2.0.1",
"p-debounce": "^4.0.0",
"parse-git-diff": "^0.0.17",
"tmp-promise": "^3.0.3"
}
}