]> git.lizzy.rs Git - rust.git/commit
Merge #5480
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Thu, 23 Jul 2020 12:33:24 +0000 (12:33 +0000)
committerGitHub <noreply@github.com>
Thu, 23 Jul 2020 12:33:24 +0000 (12:33 +0000)
commit85532e2df3f713f0fb9096328e86ec7e74934c12
tree243b2e6000eca4941ae9c1a869730ac31cd4591c
parent803f3613ba041a24b50c7e8249e9ee3195836ea8
parent1b5a74ef18389f7d1a90cb6945a17bc412f707b4
Merge #5480

5480: Fix snippetTextEdits applying to other files r=matklad a=TimoFreiberg

Fixes #4551
`vscode.window.visibleTextEditors` only contains editors whose contents are being displayed at the moment, so the previous logic only worked if the other file for which a snippetTextEdit is being received was visible in a separate split.

I feel that this is a hacky approach, so feel free to reject it for something nicer :)

Co-authored-by: Timo Freiberg <timo.freiberg@gmail.com>