Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 11c2dde

Browse files
committed
fix: function to write socket data
This needs to inherit the `this` from the calling socket connection.
1 parent fa189a0 commit 11c2dde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export function provideLinter() {
7171
spawnedServer = await spawnServer(executablePath);
7272
}
7373
const connection = net.createConnection(spawnedServer.path);
74-
connection.on('connect', () => {
74+
connection.on('connect', function writeData() {
7575
this.write(JSON.stringify({
7676
file: textEditor.getPath(),
7777
code_str: textEditor.getText(),

0 commit comments

Comments
 (0)