-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
101 lines (101 loc) · 3.23 KB
/
Copy pathpackage.json
File metadata and controls
101 lines (101 loc) · 3.23 KB
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
{
"name": "save-pipeline",
"displayName": "Save Pipeline",
"description": "Run configurable sequences of VS Code commands and shell commands on file save",
"version": "0.1.1",
"publisher": "ixtwuko",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/ixtwuko/vscode-save-pipeline.git"
},
"engines": {
"vscode": "^1.80.0"
},
"keywords": ["save", "pipeline", "format", "shell", "onSave"],
"preview": false,
"categories": [
"Other"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited"
}
},
"activationEvents": [
"onStartupFinished"
],
"main": "./extension.js",
"contributes": {
"configuration": {
"type": "object",
"title": "Save Pipeline",
"properties": {
"savePipeline.sequences": {
"type": "array",
"default": [],
"description": "Command sequences to execute on file save",
"items": {
"type": "object",
"properties": {
"event": {
"type": "string",
"default": "onSave",
"enum": ["onSave"],
"description": "Trigger event. v0.1: only \"onSave\" is supported."
},
"languages": {
"type": "array",
"items": { "type": "string" },
"description": "Target language IDs. Leave empty for all files."
},
"label": {
"type": "string",
"description": "Optional label for debugging."
},
"exclude": {
"type": "array",
"items": { "type": "string" },
"description": "Glob patterns to exclude files from this sequence."
},
"steps": {
"type": "array",
"description": "Ordered steps to execute. Each step is either a VS Code command or a shell command.",
"items": {
"type": "object",
"oneOf": [
{ "required": ["command"] },
{ "required": ["shell"] }
],
"properties": {
"command": {
"type": "string",
"description": "VS Code command ID to execute."
},
"shell": {
"type": "string",
"description": "Shell command to run. Supports placeholders like ${file}, ${workspaceFolder}."
},
"cwd": {
"type": "string",
"description": "Working directory for shell step. Defaults to ${workspaceFolder}."
},
"timeout": {
"type": "number",
"description": "Timeout in ms for shell step. Default 30000."
},
"env": {
"type": "object",
"description": "Extra environment variables for shell step."
}
}
}
}
},
"required": ["steps"]
}
}
}
}
}
}