keep editor state intact

master
Brad Cornes 2021-05-04 14:32:19 +01:00
parent 86309dd668
commit 3e3cfd418f
1 changed files with 3 additions and 1 deletions

View File

@ -251,7 +251,9 @@ async function createProjectService(
function resetState(): void {
clearAllDiagnostics(state)
Object.keys(state).forEach((key) => {
if (key !== 'editor') {
delete state[key]
}
})
state.enabled = false
registerCapabilities()