Skip to content

Commit 324949c

Browse files
committed
Reimplement Reference Items / Query Interval using the new approach.
1 parent 906d33f commit 324949c

File tree

9 files changed

+305
-251
lines changed

9 files changed

+305
-251
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"request": "launch",
88
"args": [
99
"--extensionDevelopmentPath=${workspaceFolder}",
10-
"${workspaceFolder}/test"
10+
"${workspaceFolder}/example"
1111
],
1212
"outFiles": [
1313
"${workspaceFolder}/out/**/*.js"

src/connection.ts

Lines changed: 0 additions & 190 deletions
This file was deleted.

src/cxxrtl/client.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,23 @@ export class Connection {
4747
private traceSend(packet: proto.ClientPacket) {
4848
this.timestamps.push(new Date());
4949
if (packet.type === 'greeting') {
50-
console.debug(`C>S`, packet);
50+
console.debug(`[CXXRTL] C>S`, packet);
5151
} else if (packet.type === 'command') {
52-
console.debug(`C>S#${this.sendIndex++}`, packet);
52+
console.debug(`[CXXRTL] C>S#${this.sendIndex++}`, packet);
5353
}
5454
}
5555

5656
private traceRecv(packet: proto.ServerPacket) {
5757
if (packet.type === 'greeting') {
58-
console.debug(`S>C`, packet);
58+
console.debug(`[CXXRTL] S>C`, packet);
5959
} else if (packet.type === 'response') {
6060
const elapsed = new Date().getTime() - this.timestamps.shift()!.getTime();
61-
console.debug(`S>C#${this.recvIndex++}`, packet, `(${elapsed}ms)`);
61+
console.debug(`[CXXRTL] S>C#${this.recvIndex++}`, packet, `(${elapsed}ms)`);
6262
} else if (packet.type === 'error') {
6363
this.timestamps.shift();
64-
console.error(`S>C#${this.recvIndex++}`, packet);
64+
console.error(`[CXXRTL] S>C#${this.recvIndex++}`, packet);
6565
} else if (packet.type === 'event') {
66-
console.debug(`S>C`, packet);
66+
console.debug(`[CXXRTL] S>C`, packet);
6767
}
6868
}
6969

0 commit comments

Comments
 (0)