Skip to content

Commit

Permalink
Defaulting to stdio for #79
Browse files Browse the repository at this point in the history
  • Loading branch information
bscan committed Aug 15, 2023
1 parent 205586d commit 7e01557
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ import { formatDoc, formatRange } from "./formatting";
import { nLog } from './utils';
import { startProgress, endProgress } from './progress';
var LRU = require("lru-cache");
// Create a connection for the server, using Node's IPC as a transport.

// It the editor doesn't request node-ipc, use stdio instead. Make sure this runs before createConnection
if (process.argv.length <= 2) {
process.argv.push('--stdio');
}

// Create a connection for the server
// Also include all preview / proposed LSP features.
const connection = createConnection(ProposedFeatures.all);

Expand Down

0 comments on commit 7e01557

Please sign in to comment.