-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtasks.json
234 lines (228 loc) · 7.2 KB
/
tasks.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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "ASM CurrentFile \t自定义操作当前文件",
"type": "shell",
"command": "${workspaceRoot}/tools/asmit.sh",
"args":[
"${file}",
"-m",
"${input:dosboxasm}",
"-d",
"${workspaceRoot}/tools",
"-w",
"${workspaceRoot}/tools/work",
],
"windows":{
"command": "${workspaceRoot}\\tools\\ASMit.bat",
"args": [
"${file}",
"${input:dosboxasm}",
"${workspaceRoot}\\tools",
"${workspaceRoot}\\tools\\work",
],
},
"problemMatcher":[],
"presentation": {
"echo": true,
"focus": true,
"panel": "shared",
"showReuseMessage": false,
"clear": false
},
"group": {
"kind": "build",
"isDefault": true
},
},
{
"label": "Open DOSBox \t打开dosbox(并自动配置好环境)",
"type": "shell",
"command": "${workspaceRoot}/tools/asmit.sh",
"args":[
"${file}",
"-m",
"0",
"-d",
"${workspaceRoot}/tools",
"-w",
"${workspaceRoot}/tools/work",
],
"windows":{
"command": "${workspaceRoot}\\tools\\ASMit.bat",
"args": [
"${file}",
"0",
"${workspaceRoot}\\tools",
"${workspaceRoot}\\tools\\work",
],
},
"problemMatcher":[],
"presentation": {
"reveal": "never",
"echo": false,
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": false
},
"group": {
"kind": "build",
"isDefault": true
},
},
{
"label": "TASM CurrentFile\t使用TASM来编译运行当前文件",
"type": "shell",
"command": "${workspaceRoot}/tools/asmit.sh",
"args":[
"${file}",
"-m",
"C",
"-d",
"${workspaceRoot}/tools",
"-w",
"${workspaceRoot}/tools/work",
],
"windows":{
"command": "${workspaceRoot}\\tools\\ASMit.bat",
"args": [
"${file}",
"C",
"${workspaceRoot}\\tools",
"${workspaceRoot}\\tools\\work",
],
},
"presentation": {
"reveal": "always",
"showReuseMessage": false,
},
"problemMatcher":{
"owner": "TASM",
"fileLocation":"autoDetect",
"pattern": [
{
"regexp": "^ASMfilefrom:(.*)\\s*$",
"file": 1,
},
{
"regexp":"^\\s*\\*+(Error|Warning)\\*+\\s+(.*)\\((\\d+)\\)\\s+(.*)$",
"line": 3,
"severity": 1,
"message": 4,
"loop": true
}
]
},
"group": {
"kind": "build",
"isDefault": true
},
},
{
"label": "MASM CurrentFile\t使用MASM来编译运行当前文件",
"type": "shell",
"command": "${workspaceRoot}/tools/asmit.sh",
"args":[
"${file}",
"-m",
"D",
"-d",
"${workspaceRoot}/tools",
"-w",
"${workspaceRoot}/tools/work",
],
"windows":{
"command": "${workspaceRoot}\\tools\\ASMit.bat",
"args": [
"${file}",
"D",
"${workspaceRoot}\\tools",
"${workspaceRoot}\\tools\\work",
],
},
"presentation": {
"reveal": "always",
"showReuseMessage": false,
},
"problemMatcher":{
"owner": "MASM",
"fileLocation":"autoDetect",
"pattern": [
{
"regexp": "^ASMfilefrom:(.*)\\s*$",
"file": 1,
},
{
"regexp":"^\\s*(.*)\\((\\d+)\\):\\s+(error|warning)\\s+([A-Z]\\d+:\\s+.*)$",
"line": 2,
"severity": 3,
"message": 4,
"loop": true
}
]
},
"group": {
"kind": "build",
"isDefault": true
},
},
],
"inputs": [
{
"type": "pickString",
"id": "dosboxasm",
"description": "选择如何调用dosbox和tasm/masm",
"options": [
{
"label": "dosbox it\t",
"value": "0",
},
{
"label": "TASM在dosbox中运行,需要手动退出(输入exit,点x或Ctrl+F9)\t",
"value": "1",
},
{
"label": "TASM在dosbox中运行,需要手动退出(任意键退出)\t",
"value": "2",
},
{
"label": "TASM在dosbox中调试,汇编链接程序再调试\t",
"value": "3",
},
{
"label": "TD在dosbox中调试,直接启动调试程序\t",
"value": "4",
},
{
"label": "MASM在dosbox中运行,需要手动退出(输入exit,点x或Ctrl+F9)\t",
"value": "5",
},
{
"label": "MASM在dosbox中运行,需要手动退出(任意键退出)\t",
"value": "6",
},
{
"label": "MASM在dosbox中调试,汇编链接程序再调试\t",
"value": "7",
},
{
"label": "DEBUG在dosbox中调试,直接启动调试程序\t",
"value": "8",
},
{
"label": "TASM在shell中输出,一些程序结果无法完全显示\t",
"value": "A",
},
{
"label": "MASM在shell中输出,一些程序结果无法完全显示\t",
"value": "B",
},
],
"default": "0"
},
],
}