Skip to content

Commit 3e3cfd4

Browse files
committed
keep editor state intact
1 parent 86309dd commit 3e3cfd4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ async function createProjectService(
251251
function resetState(): void {
252252
clearAllDiagnostics(state)
253253
Object.keys(state).forEach((key) => {
254-
delete state[key]
254+
if (key !== 'editor') {
255+
delete state[key]
256+
}
255257
})
256258
state.enabled = false
257259
registerCapabilities()

0 commit comments

Comments
 (0)