File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }
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" : [
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments