Skip to content

Commit ad76ec9

Browse files
authored
Merge pull request #310 from DreamZhou/master
add configurationAttribute ext for emmylua_attach
2 parents 88db9dd + e280710 commit ad76ec9

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,13 @@
173173
"type": "boolean",
174174
"description": "%debug.attach.captureLog%",
175175
"default": false
176+
},
177+
"ext": {
178+
"type": "array",
179+
"description": "Lua文件后缀",
180+
"default": [
181+
".lua"
182+
]
176183
}
177184
}
178185
}
@@ -184,7 +191,12 @@
184191
"name": "%debug.attach.name%",
185192
"pid": 0,
186193
"processName": "",
187-
"captureLog": false
194+
"captureLog": false,
195+
"ext": [
196+
".lua",
197+
".lua.txt",
198+
".lua.bytes"
199+
]
188200
}
189201
],
190202
"configurationSnippets": [

src/debugger/attach/EmmyAttachDebuggerProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class EmmyAttachDebuggerProvider extends DebuggerProvider {
2626
configuration.sourcePaths = this.getSourceRoots();
2727
configuration.request = "attach";
2828
configuration.type = "emmylua_attach";
29-
configuration.ext = this.getExt();
29+
configuration.ext = configuration.ext ?? this.getExt();
3030
configuration.processName = configuration.processName ?? ""
3131
if (configuration.pid > 0) {
3232
return configuration;

0 commit comments

Comments
 (0)