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 () => {