File tree 1 file changed +17
-6
lines changed
lib/ruby_lsp/ruby_lsp_rails
1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -223,19 +223,30 @@ def register_additional_file_watchers(global_state:, outgoing_queue:)
223
223
id : "workspace/didChangeWatchedFilesRails" ,
224
224
method : "workspace/didChangeWatchedFiles" ,
225
225
register_options : Interface ::DidChangeWatchedFilesRegistrationOptions . new (
226
- watchers : [
227
- Interface ::FileSystemWatcher . new (
228
- glob_pattern : "**/*structure.sql" ,
229
- kind : Constant ::WatchKind ::CREATE | Constant ::WatchKind ::CHANGE | Constant ::WatchKind ::DELETE ,
230
- ) ,
231
- ] ,
226
+ watchers : [ structure_sql_file_watcher , yaml_file_watcher ] ,
232
227
) ,
233
228
) ,
234
229
] ,
235
230
) ,
236
231
)
237
232
end
238
233
234
+ sig { returns ( Interface ::FileSystemWatcher ) }
235
+ def structure_sql_file_watcher
236
+ Interface ::FileSystemWatcher . new (
237
+ glob_pattern : "**/*structure.sql" ,
238
+ kind : Constant ::WatchKind ::CREATE | Constant ::WatchKind ::CHANGE | Constant ::WatchKind ::DELETE ,
239
+ )
240
+ end
241
+
242
+ sig { returns ( Interface ::FileSystemWatcher ) }
243
+ def yaml_file_watcher
244
+ Interface ::FileSystemWatcher . new (
245
+ glob_pattern : "**/*.{yml,yaml}" ,
246
+ kind : Constant ::WatchKind ::CREATE | Constant ::WatchKind ::CHANGE | Constant ::WatchKind ::DELETE ,
247
+ )
248
+ end
249
+
239
250
sig { void }
240
251
def offer_to_run_pending_migrations
241
252
return unless @outgoing_queue
You can’t perform that action at this time.
0 commit comments