Revert "client side sketch updating properly with direct changes to t… (#2286)

Revert "client side sketch updating properly with direct changes to the editor (#2283)"

This reverts commit cf830f9895.
This commit is contained in:
Kurt Hutten
2024-05-02 22:26:29 +10:00
committed by GitHub
parent cf830f9895
commit e7ab645267
3 changed files with 4 additions and 45 deletions

View File

@ -21,12 +21,7 @@ import { LanguageServerClient } from 'editor/plugins/lsp'
import { Marked } from '@ts-stack/markdown'
import { posToOffset } from 'editor/plugins/lsp/util'
import { Program, ProgramMemory } from 'lang/wasm'
import {
codeManager,
editorManager,
kclManager,
sceneInfra,
} from 'lib/singletons'
import { codeManager, editorManager, kclManager } from 'lib/singletons'
import type { UnitLength } from 'wasm-lib/kcl/bindings/UnitLength'
import { UpdateUnitsResponse } from 'wasm-lib/kcl/bindings/UpdateUnitsResponse'
import { UpdateCanExecuteResponse } from 'wasm-lib/kcl/bindings/UpdateCanExecuteResponse'
@ -68,7 +63,6 @@ export class LanguageServerPlugin implements PluginValue {
if (this.viewUpdate) {
editorManager.handleOnViewUpdate(this.viewUpdate)
setTimeout(() => sceneInfra.modelingSend({ type: 'Rejig sketch' }))
}
} catch (e) {
console.error(e)