Skip to content

Commit

Permalink
Attempt to restore Xcode 15.2 builds...
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Mar 21, 2024
1 parent 279e361 commit 2895108
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 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' | xcbeautify
run: xcodebuild docbuild -scheme Edit -derivedDataPath /tmp/docbuild -destination 'generic/platform=macOS'
- 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: 2 additions & 1 deletion Edit/Modules/Document/OpenPanelAccessoryViewController.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import AppKit
import MainOffender

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

kvoObservation = panel.observe(\.showsHiddenFiles, changeHandler: { [unowned self] (obj, _) in
MainActor.assumeIsolated {
MainActor.runUnsafely {
self.hiddenFilesButton.state = obj.showsHiddenFiles ? .on : .off
}
})
Expand Down
8 changes: 3 additions & 5 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.assumeIsolated {
try MainActor.runUnsafely {
let config = state.context.configuration
let theme = projectWindowController.theme
let context = Theme.Context(window: projectWindowController.window)
Expand Down Expand Up @@ -147,10 +147,8 @@ public final class TextDocument: ContainedDocument<Project> {
public override var fileURL: URL? {
didSet {
// this can be set on a non-main thread
DispatchQueue.main.asyncUnsafe {
MainActor.assumeIsolated {
self.state.update(url: self.fileURL)
}
DispatchQueue.main.async {
self.state.update(url: self.fileURL)
}
}
}
Expand Down

0 comments on commit 2895108

Please sign in to comment.