Skip to content

Commit

Permalink
fix browser-basedpyright. accidentally dropped this when merging upst…
Browse files Browse the repository at this point in the history
…ream
  • Loading branch information
DetachHead committed Sep 18, 2024
1 parent 958af90 commit 03e7502
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/pyright-internal/src/backgroundAnalysisBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ export class BackgroundAnalysisBase {
// The other side of this channel will be sent to the BG thread for sending responses.
this._messageChannel = createMessageChannel();
this._messageChannel.port1.on('message', (msg: BackgroundResponse) => this.handleBackgroundResponse(msg));

// required for browser-basedpyright:
this._messageChannel.port1.start();
this._messageChannel.port2.start();
}

dispose() {
Expand Down

0 comments on commit 03e7502

Please sign in to comment.