From ab6df4d524a48ade48070bf18ff3e76872b73a8e Mon Sep 17 00:00:00 2001 From: "Lyu, Wei Da" Date: Sun, 22 Dec 2024 11:06:19 +0800 Subject: [PATCH] need to have syntax error --- .../language-server/test/plugins/typescript/service.test.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/language-server/test/plugins/typescript/service.test.ts b/packages/language-server/test/plugins/typescript/service.test.ts index 19cffe7bd..18d2b15c0 100644 --- a/packages/language-server/test/plugins/typescript/service.test.ts +++ b/packages/language-server/test/plugins/typescript/service.test.ts @@ -327,11 +327,9 @@ describe('service', () => { const lang = ls.getService(); lang.getProgram(); - document2.update(' ', 0, document2.getTextLength()); + document2.update(' { - lang.getProgram(); - }); + ls.getService(); }); it.only('do not throw when lang="ts" is nuke while a new files is added', async () => {