From 6ac42735693684b733d235d1919a523928a25c49 Mon Sep 17 00:00:00 2001 From: Marcin Krzyzanowski Date: Wed, 13 Sep 2023 18:56:56 +0200 Subject: [PATCH] Update API --- Package.swift | 2 +- Sources/NeonPlugin/NeonPlugin.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index a120ae4..6dd81f0 100644 --- a/Package.swift +++ b/Package.swift @@ -12,7 +12,7 @@ let package = Package( targets: ["NeonPlugin"]), ], dependencies: [ - .package(url: "https://github.com/krzyzanowskim/STTextView", from: "0.8.12"), + .package(url: "https://github.com/krzyzanowskim/STTextView", from: "0.8.13"), .package(url: "https://github.com/ChimeHQ/Neon.git", from: "0.5.1"), .package(url: "https://github.com/krzyzanowskim/tree-sitter-xcframework", from: "0.208.3") ], diff --git a/Sources/NeonPlugin/NeonPlugin.swift b/Sources/NeonPlugin/NeonPlugin.swift index 7730ed1..1c124ad 100644 --- a/Sources/NeonPlugin/NeonPlugin.swift +++ b/Sources/NeonPlugin/NeonPlugin.swift @@ -9,7 +9,7 @@ public struct NeonPlugin: STPlugin { self.theme = theme } - public func setUp(context: Context) { + public func setUp(context: any Context) { context.events.onWillChangeText { affectedRange in let range = NSRange(affectedRange, in: context.textView.textContentManager)