File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ export class DAPClient extends EventEmitter {
28
28
super ( ) ;
29
29
}
30
30
31
+ public send ( req : any ) : void {
32
+ const json = JSON . stringify ( req ) ;
33
+ this . outputStream . write ( `Content-Length: ${ Buffer . byteLength ( json , 'utf8' ) } \r\n\r\n${ json } ` , 'utf8' ) ;
34
+ }
35
+
31
36
// Connect this client to a server, which is represented by read and write
32
37
// streams. Before this method is called, send() won't work and not messages
33
38
// from the server will be delivered.
@@ -39,11 +44,6 @@ export class DAPClient extends EventEmitter {
39
44
} ) ;
40
45
}
41
46
42
- public send ( req : any ) : void {
43
- const json = JSON . stringify ( req ) ;
44
- this . outputStream . write ( `Content-Length: ${ Buffer . byteLength ( json , 'utf8' ) } \r\n\r\n${ json } ` , 'utf8' ) ;
45
- }
46
-
47
47
// Implements parsing of the DAP protocol. We cannot use ProtocolClient
48
48
// from the vscode-debugadapter package, because it's not exported and
49
49
// is not meant for external usage.
Original file line number Diff line number Diff line change @@ -618,7 +618,7 @@ class DelveClient extends DAPClient {
618
618
619
619
// Connect this client to the server. The server is expected to be listening
620
620
// on host:port.
621
- private connectSocketToServer ( port : number , host :string ) {
621
+ private connectSocketToServer ( port : number , host : string ) {
622
622
// Add a slight delay to ensure that Delve started up the server.
623
623
setTimeout ( ( ) => {
624
624
const socket = net . createConnection (
You can’t perform that action at this time.
0 commit comments