Skip to content

Commit

Permalink
Revert "Attempt to restore Xcode 15.2 builds..."
Browse files Browse the repository at this point in the history
This reverts commit 2895108.
  • Loading branch information
mattmassicotte committed Mar 21, 2024
1 parent 2895108 commit 9eb4b9c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
echo "DEVELOPMENT_TEAM = $DEVELOPMENT_TEAM" >> User.xcconfig
echo "BUNDLE_ID_PREFIX = com.chimehq" >> User.xcconfig
- name: Build DocC
run: xcodebuild docbuild -scheme Edit -derivedDataPath /tmp/docbuild -destination 'generic/platform=macOS'
run: xcodebuild docbuild -scheme Edit -derivedDataPath /tmp/docbuild -destination 'generic/platform=macOS' | xcbeautify
- name: Process Archive
run: xcrun docc process-archive transform-for-static-hosting /tmp/docbuild/Build/Products/Debug/Chime.doccarchive --output-path docs --hosting-base-path 'Chime'
- name: Add Redirect
Expand Down
3 changes: 1 addition & 2 deletions Edit/Modules/Document/OpenPanelAccessoryViewController.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import AppKit
import MainOffender

final class OpenPanelAccessoryViewController: NSViewController {
private let hiddenFilesButton: NSButton
Expand Down Expand Up @@ -51,7 +50,7 @@ final class OpenPanelAccessoryViewController: NSViewController {
hiddenFilesButton.state = panel.showsHiddenFiles ? .on : .off

kvoObservation = panel.observe(\.showsHiddenFiles, changeHandler: { [unowned self] (obj, _) in
MainActor.runUnsafely {
MainActor.assumeIsolated {
self.hiddenFilesButton.state = obj.showsHiddenFiles ? .on : .off
}
})
Expand Down
8 changes: 5 additions & 3 deletions Edit/Modules/Document/TextDocument.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public final class TextDocument: ContainedDocument<Project> {
}

public override func read(from url: URL, ofType typeName: String) throws {
try MainActor.runUnsafely {
try MainActor.assumeIsolated {
let config = state.context.configuration
let theme = projectWindowController.theme
let context = Theme.Context(window: projectWindowController.window)
Expand Down Expand Up @@ -147,8 +147,10 @@ public final class TextDocument: ContainedDocument<Project> {
public override var fileURL: URL? {
didSet {
// this can be set on a non-main thread
DispatchQueue.main.async {
self.state.update(url: self.fileURL)
DispatchQueue.main.asyncUnsafe {
MainActor.assumeIsolated {
self.state.update(url: self.fileURL)
}
}
}
}
Expand Down

0 comments on commit 9eb4b9c

Please sign in to comment.