Skip to content

Commit

Permalink
Reset initialized when proxy re-connects (#34970)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pengcheng Xu authored and zfy0701 committed Apr 15, 2019
1 parent a8a2ef7 commit 59542c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x-pack/plugins/code/server/lsp/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export class LanguageServerProxy implements ILanguageServerHandler {
public awaitServerConnection() {
return new Promise((res, rej) => {
const server = net.createServer(socket => {
this.initialized = false;
server.close();
this.eventEmitter.emit('connect');
socket.on('close', () => this.onSocketClosed());
Expand Down

0 comments on commit 59542c7

Please sign in to comment.