Skip to content

Commit 761ac6d

Browse files
committed
Check feature flags
1 parent a513c3a commit 761ac6d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoload/lsp/internal/linked_editing_range.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,20 @@ function! lsp#internal#linked_editing_range#_enable() abort
1616
let s:Dispose = lsp#callbag#merge(
1717
\ lsp#callbag#pipe(
1818
\ lsp#callbag#fromEvent(['InsertEnter']),
19+
\ lsp#callbag#filter({ -> g:lsp_linked_editing_range_enabled }),
1920
\ lsp#callbag#flatMap({ -> s:request_sync() }),
2021
\ lsp#callbag#subscribe({
2122
\ 'next': { x -> call('s:prepare', x) }
2223
\ })
2324
\ ),
2425
\ lsp#callbag#pipe(
2526
\ lsp#callbag#fromEvent(['InsertLeave']),
27+
\ lsp#callbag#filter({ -> g:lsp_linked_editing_range_enabled }),
2628
\ lsp#callbag#subscribe({ -> s:clear() })
2729
\ ),
2830
\ lsp#callbag#pipe(
2931
\ lsp#callbag#fromEvent(['TextChanged', 'TextChangedI', 'TextChangedP']),
32+
\ lsp#callbag#filter({ -> g:lsp_linked_editing_range_enabled }),
3033
\ lsp#callbag#delay(0),
3134
\ lsp#callbag#subscribe({ -> s:sync() })
3235
\ ),

0 commit comments

Comments
 (0)