Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Commit fddf038

Browse files
committed
1.4.2
1 parent b671e0c commit fddf038

File tree

3 files changed

+4
-24
lines changed

3 files changed

+4
-24
lines changed

src/DebugSession.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

src/activeDebug.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
);

src/ws/index.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,8 @@ import EventEmitter from "events";
88
import { WebSocket } from "ws";
99
import { 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-
*/
1811
const 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-
2913
export 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 || "");

0 commit comments

Comments
 (0)