From abe176d0888c0fdcc803ddafe71a5cee9f4b63a0 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Fri, 7 Oct 2022 19:44:41 +0200 Subject: refactor(frontend): improve HMR experience Use a HMR acceptor as in https://github.com/vitejs/vite/issues/10227#issuecomment-1256969751 Also updates frontend tooling to the latest version (yarn now support typescript 4.8.4) --- subprojects/frontend/src/xtext/XtextClient.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'subprojects/frontend/src/xtext') diff --git a/subprojects/frontend/src/xtext/XtextClient.ts b/subprojects/frontend/src/xtext/XtextClient.ts index cd5d280d..e7d26ae6 100644 --- a/subprojects/frontend/src/xtext/XtextClient.ts +++ b/subprojects/frontend/src/xtext/XtextClient.ts @@ -120,4 +120,8 @@ export default class XtextClient { log.error('Error while formatting text', e); }); } + + dispose(): void { + this.webSocketClient.disconnect(); + } } -- cgit v1.2.3-54-g00ecf