       }
       let missingTools = MainWindow.Tools.all.subtracting(self.tools.keys)
       missingTools.forEach { missingTool in
-        self.tools[missingTool] = WorkspaceToolState.defaultTools[missingTool]!
+        self.tools[missingTool] = MainWindow.State.defaultTools[missingTool]!
       }
 
       self.previewTool = try container.decode(forKey: .previewTool, default: State.default.previewTool)


    static let `default` = State(isAllToolsVisible: true, isToolButtonsVisible: true)

    var isAllToolsVisible = true
    var isToolButtonsVisible = true
    var activeTools = [

    var goToLineFromCli: Marked<Int>?
    var lastFileSystemUpdate = Marked(FileUtils.userHomeUrl)

    var tools = MainWindow.State.defaultTools
    var orderedTools = MainWindow.State.orderedDefault

    var preview = PreviewState.default
    var htmlPreview = HtmlPreviewState.default
