File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }
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" : [
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