Skip to content

Commit 7ce834f

Browse files
committed
Merge branch 'master' of github.com:EmmyLua/VSCode-EmmyLua
2 parents 70c64fb + ad76ec9 commit 7ce834f

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
@@ -174,6 +174,13 @@
174174
"type": "boolean",
175175
"description": "%debug.attach.captureLog%",
176176
"default": false
177+
},
178+
"ext": {
179+
"type": "array",
180+
"description": "Lua文件后缀",
181+
"default": [
182+
".lua"
183+
]
177184
}
178185
}
179186
}
@@ -185,7 +192,12 @@
185192
"name": "%debug.attach.name%",
186193
"pid": 0,
187194
"processName": "",
188-
"captureLog": false
195+
"captureLog": false,
196+
"ext": [
197+
".lua",
198+
".lua.txt",
199+
".lua.bytes"
200+
]
189201
}
190202
],
191203
"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)