Skip to content

Commit

Permalink
Merge pull request #614 from 4ever2/ipv6-fix
Browse files Browse the repository at this point in the history
[VsCoq1] Fix IP issue with VS Code 1.82.0
  • Loading branch information
thery authored Sep 11, 2023
2 parents c6ff0f6 + bc3405e commit e759426
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@ import * as coqproto from './protocol';
import {Settings} from './protocol';
import {CoqProject} from './CoqProject';
import { RouteId } from './coqtop/coq-proto';
import { setDefaultResultOrder } from 'dns';

// Create a connection for the server. The connection uses
// stdin / stdout for message passing
export let connection: IConnection = createConnection();

export let project : CoqProject = null;

// Tell node to prefer ipv4, this is necessary due to changes in node 18.x
// since coqidetop and coqtop does not support ipv6
setDefaultResultOrder('ipv4first');

// // Create a simple text document manager. The text document manager
// // supports full document sync only
// let documents: TextDocuments = new TextDocuments();
Expand Down

0 comments on commit e759426

Please sign in to comment.