This repository was archived by the owner on Feb 20, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-24
lines changed
Expand file tree Collapse file tree 3 files changed +4
-24
lines changed Original file line number Diff line number Diff line change 11/*
22 * @Author : xuranXYS
3- * @LastEditTime : 2024-03-30 22:13:17
3+ * @LastEditTime : 2024-03-30 22:18:29
44 * @GitHub : www.github.com/xiaoxustudio
55 * @WebSite : www.xiaoxustudio.top
66 * @Description : By xuranXYS
@@ -71,7 +71,7 @@ export class XRDebugSession extends LoggingDebugSession {
7171 console . log ( "initializing" ) ;
7272 this . sendEvent ( new InitializedEvent ( ) ) ;
7373 }
74- protected async attachRequest (
74+ protected attachRequest (
7575 response : DebugProtocol . AttachResponse ,
7676 args : IAttachRequestArguments
7777 ) {
@@ -193,7 +193,7 @@ export class XRDebugSession extends LoggingDebugSession {
193193 args : any
194194 ) {
195195 response . body = {
196- stackFrames : [ new StackFrame ( 1 , "runtime " ) ] ,
196+ stackFrames : [ new StackFrame ( 1 , "XRWebGalruntime " ) ] ,
197197 } ;
198198 this . sendResponse ( response ) ;
199199 }
@@ -262,9 +262,7 @@ export class XRDebugSession extends LoggingDebugSession {
262262
263263 return dapVariable ;
264264 }
265-
266265 protected disconnectRequest ( request : DebugProtocol . DisconnectRequest ) : void { }
267-
268266 protected customRequest (
269267 command : string ,
270268 response : DebugProtocol . Response
Original file line number Diff line number Diff line change 11/*
22 * @Author : xuranXYS
3- * @LastEditTime : 2024-03-30 18:03:24
3+ * @LastEditTime : 2024-03-30 22: 18:12
44 * @GitHub : www.github.com/xiaoxustudio
55 * @WebSite : www.xiaoxustudio.top
66 * @Description : By xuranXYS
@@ -15,7 +15,6 @@ export class XRDebugAdapterDescriptorFactory
1515 session : vscode . DebugSession ,
1616 executable : vscode . DebugAdapterExecutable | undefined
1717 ) : vscode . ProviderResult < vscode . DebugAdapterDescriptor > {
18- // 创建并返回一个新的调试器实例
1918 return new vscode . DebugAdapterInlineImplementation (
2019 new XRDebugSession ( session , fsAccessor )
2120 ) ;
Original file line number Diff line number Diff line change @@ -8,24 +8,8 @@ import EventEmitter from "events";
88import { WebSocket } from "ws" ;
99import { FileAccessor } from "../utils/utils_novsc" ;
1010
11- /*
12- * @Author : xuranXYS
13- * @LastEditTime : 2024-03-30 18:56:33
14- * @GitHub : www.github.com/xiaoxustudio
15- * @WebSite : www.xiaoxustudio.top
16- * @Description : By xuranXYS
17- */
1811const WS = require ( "ws" ) ;
1912
20- interface IRuntimeStackFrame {
21- index : number ;
22- name : string ;
23- file : string ;
24- line : number ;
25- column ?: number ;
26- instruction ?: number ;
27- }
28-
2913export type IRuntimeVariableType =
3014 | number
3115 | boolean
@@ -175,7 +159,6 @@ function createWS(_ADP: DebugSession, self: XRRuntime) {
175159 }
176160 self . variables = newv ;
177161 self . _ADP . customRequest ( "updatevar" ) ;
178- self . _ADP . customRequest ( "variables" ) ;
179162 setGameData ( _data ) ;
180163 if ( ! editor ) return ;
181164 const _fname = String ( editor . document . fileName || "" ) ;
You can’t perform that action at this time.
0 commit comments