sig/steep/server/change_buffer.rbs in steep-1.6.0 vs sig/steep/server/change_buffer.rbs in steep-1.7.0.dev.1
- old
+ new
@@ -1,16 +1,18 @@
module Steep
module Server
- module ChangeBuffer : _WithProject
+ module ChangeBuffer : _WithProject, _WithMutex
interface _WithProject
def project: () -> Project
end
+ interface _WithMutex
+ def mutex: () -> Mutex
+ end
+
type changes = Hash[Pathname, Array[Services::ContentChange]]
- attr_reader mutex: Thread::Mutex
-
attr_reader buffered_changes: changes
# Yields `buffered_changes` to modify with synchronization
#
def push_buffer: [A] () { (changes) -> A } -> A
@@ -27,10 +29,10 @@
# Load changes from a request with `DidChangeTextDocumentParams` into `buffered_changes`
#
def collect_changes: (untyped request) -> void
# Reset the content of `uri` to `text`
- #
+ #
def reset_change: (uri: String, text: String) -> void
end
end
end