diff --git a/pkg/service/objectservice/objectservice.go b/pkg/service/objectservice/objectservice.go index 17433304..7a6e4b29 100644 --- a/pkg/service/objectservice/objectservice.go +++ b/pkg/service/objectservice/objectservice.go @@ -199,12 +199,6 @@ func (svc *ObjectService) DeleteBlock(uiContext waveobj.UIContext, blockId strin return waveobj.ContextGetUpdatesRtn(ctx), nil } -func (svc *ObjectService) CloseTab_Meta() tsgenmeta.MethodMeta { - return tsgenmeta.MethodMeta{ - ArgNames: []string{"uiContext", "tabId"}, - } -} - func (svc *ObjectService) UpdateObjectMeta_Meta() tsgenmeta.MethodMeta { return tsgenmeta.MethodMeta{ ArgNames: []string{"uiContext", "oref", "meta"}, diff --git a/pkg/service/windowservice/windowservice.go b/pkg/service/windowservice/windowservice.go index f14245b5..883a5b67 100644 --- a/pkg/service/windowservice/windowservice.go +++ b/pkg/service/windowservice/windowservice.go @@ -66,9 +66,11 @@ func (svc *WindowService) CloseTab(ctx context.Context, uiContext waveobj.UICont break } } - for _, blockId := range tab.BlockIds { - blockcontroller.StopBlockController(blockId) - } + go func() { + for _, blockId := range tab.BlockIds { + blockcontroller.StopBlockController(blockId) + } + }() if err := wcore.DeleteTab(ctx, window.WorkspaceId, tabId); err != nil { return nil, fmt.Errorf("error closing tab: %w", err) } diff --git a/pkg/wconfig/defaultconfig/settings.json b/pkg/wconfig/defaultconfig/settings.json index 78699883..fcb805cb 100644 --- a/pkg/wconfig/defaultconfig/settings.json +++ b/pkg/wconfig/defaultconfig/settings.json @@ -6,5 +6,6 @@ "autoupdate:installonquit": true, "autoupdate:intervalms": 3600000, "editor:minimapenabled": true, - "window:tilegapsize": 3 + "window:tilegapsize": 3, + "telemetry:enabled": true }