Skip to content

Commit

Permalink
Update node.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Mar 4, 2024
1 parent cd56398 commit 681297a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/language-server/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ connection.onRequest(GetConvertAttrCasingEditsRequest.type, async params => {
});

connection.onRequest(GetConnectedNamedPipeServerRequest.type, async fileName => {
const connected = await tsPluginClient.connectForFile(fileName);
if (connected) {
return connected[1];
const server = await tsPluginClient.searchNamedPipeServerForFile(fileName);
if (server) {
return server;
}
});

Expand Down

0 comments on commit 681297a

Please sign in to comment.