-
Notifications
You must be signed in to change notification settings - Fork 257
Support textDocument/didSave manifest cargo rebuilds #1246
Conversation
I tended to be defensive here by recording whether a client uses workspace/didChangeWatchedFile notifications. If it does we don't consider textDocument/didSave for cargo rebuilds. This prevents double builds if a client sends both kinds of notification. |
Support cargo rebuilding when client does not send workspace/didChangeWatchedFiles notifications. * Update clippy 1838bfe5a9ff951ffd716e4632156113d95d14a4 * Update cargo 907c0febe7045fa02dff2a35c5e36d3bd59ea50d * Fix build/rustc.rs compile (rm make_glob_map / analysis usage)
c1f3c17
to
d4ff22a
Compare
Thank you, looks good! In general I’d say LSP clients should support file watching on their side since that’s in the spec and preferable, but it’s good that it’s gonna work out either way. @bors r+ |
📌 Commit d4ff22a has been approved by |
Support textDocument/didSave manifest cargo rebuilds * Support cargo rebuilding when client does not send _workspace/didChangeWatchedFiles_ notifications. * Update clippy `1838bfe5a9ff951ffd716e4632156113d95d14a4` * Update cargo `907c0febe7045fa02dff2a35c5e36d3bd59ea50d` Should fix #1240
💔 Test failed - checks-travis |
Looks good, spurious completion error |
This work has been scheduled for LSP4E, in the meantime we have implemented |
Hi, as for
|
@norru this code should be available in >= 2019-01-22 builds of rls. It isn't in today's yet. It may be worth getting eclipse working with a local compiled rls so testing is easier in future. Of course, I'm not sure how hard that is maybe it's too much of a pain. |
We don't backport changes/fixes unless they're critical or wide-reaching; The fix should already be in the newest nightly. |
@alexheretic @Xanewok It's fine, this is not high-priority. I only wasn't sure whether I had missed something, which I haven't. It does happen that I'll have to wait a little longer for the changes to filter through. For this change having RLS built from source is not worth the hassle. Thanks! |
Not fixed as I guess this is expected until
|
Yep |
submodule: update rls from c9d25b to e2145d Update rls rust-lang/rls@c9d25b6...e2145d rust-lang/rls#1276 - h-michael:clippy, r=Xanewok rust-lang/rls#1269 - rust-lang:dependabot/cargo/rand-0.6.5, r=Xanewok Remove extra backticks in contributing.md rust-lang/rls#1267 from h-michael/contributingmd rust-lang/rls#1268 from matthiaskrgr/rustup rust-lang/rls#1262 from rust-lang/dependabot/cargo/tokio-0.1.15 rust-lang/rls#1264 - h-michael:pub-crate, r=alexheretic rust-lang/rls#1261 - rust-lang:dependabot/cargo/tokio-timer-0.2.9, r=Xanewok rust-lang/rls#1263 - Xanewok:update-clippy, r=Xanewok rust-lang/rls#1257 from Xanewok/architecture rust-lang/rls#1258 - rust-lang:dependabot/cargo/lsp-types-0.55.1, r=Xanewok rust-lang/rls#1255 - Xanewok:you-only-complete-once-fool, r=Xanewok rust-lang/rls#1252 - rust-lang:dependabot/cargo/cargo_metadata-0.7.0, r=alexheretic rust-lang/rls#1253 - rust-lang:dependabot/cargo/lsp-types-0.55.0, r=Xanewok rust-lang/rls#1254 - rust-lang:dependabot/cargo/serde_json-1.0.37, r=Xanewok dependabot: Explicitly list default allowed_updates dependabot: Add automerge strategy for clippy_lints rust-lang/rls#1251 - Xanewok:translate-deglob-test, r=Xanewok rust-lang/rls#1250 from alexheretic/master rust-lang/rls#1244 - Xanewok:translate-tests, r=alexheretic rust-lang/rls#1247 - alexheretic:register-more-clippy, r=Xanewok rust-lang/rls#1230 - emilio:testing-testing, r=Xanewok rust-lang/rls#1246 from alexheretic/did-save-manifest Merge branch 'beta-version-bump' of https://github.com/rust-lang-nursery/rls
submodule: update rls from c9d25b to f331ff7 Update rls rust-lang/rls@c9d25b6...e2145d rust-lang/rls#1276 - h-michael:clippy, r=Xanewok rust-lang/rls#1269 - rust-lang:dependabot/cargo/rand-0.6.5, r=Xanewok Remove extra backticks in contributing.md rust-lang/rls#1267 from h-michael/contributingmd rust-lang/rls#1268 from matthiaskrgr/rustup rust-lang/rls#1262 from rust-lang/dependabot/cargo/tokio-0.1.15 rust-lang/rls#1264 - h-michael:pub-crate, r=alexheretic rust-lang/rls#1261 - rust-lang:dependabot/cargo/tokio-timer-0.2.9, r=Xanewok rust-lang/rls#1263 - Xanewok:update-clippy, r=Xanewok rust-lang/rls#1257 from Xanewok/architecture rust-lang/rls#1258 - rust-lang:dependabot/cargo/lsp-types-0.55.1, r=Xanewok rust-lang/rls#1255 - Xanewok:you-only-complete-once-fool, r=Xanewok rust-lang/rls#1252 - rust-lang:dependabot/cargo/cargo_metadata-0.7.0, r=alexheretic rust-lang/rls#1253 - rust-lang:dependabot/cargo/lsp-types-0.55.0, r=Xanewok rust-lang/rls#1254 - rust-lang:dependabot/cargo/serde_json-1.0.37, r=Xanewok dependabot: Explicitly list default allowed_updates dependabot: Add automerge strategy for clippy_lints rust-lang/rls#1251 - Xanewok:translate-deglob-test, r=Xanewok rust-lang/rls#1250 from alexheretic/master rust-lang/rls#1244 - Xanewok:translate-tests, r=alexheretic rust-lang/rls#1247 - alexheretic:register-more-clippy, r=Xanewok rust-lang/rls#1230 - emilio:testing-testing, r=Xanewok rust-lang/rls#1246 from alexheretic/did-save-manifest Merge branch 'beta-version-bump' of https://github.com/rust-lang-nursery/rls
1838bfe5a9ff951ffd716e4632156113d95d14a4
907c0febe7045fa02dff2a35c5e36d3bd59ea50d
Should fix #1240