diff options
-rw-r--r-- | Cargo.lock | 65 | ||||
-rw-r--r-- | crates/gen_lsp_server/Cargo.toml | 2 | ||||
-rw-r--r-- | crates/ra_lsp_server/Cargo.toml | 3 | ||||
-rw-r--r-- | crates/ra_lsp_server/src/main_loop/handlers.rs | 3 | ||||
-rw-r--r-- | crates/ra_lsp_server/src/req.rs | 2 |
5 files changed, 43 insertions, 32 deletions
diff --git a/Cargo.lock b/Cargo.lock index f45085921..1c16b281b 100644 --- a/Cargo.lock +++ b/Cargo.lock | |||
@@ -533,7 +533,7 @@ dependencies = [ | |||
533 | "crossbeam-channel 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", | 533 | "crossbeam-channel 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", |
534 | "flexi_logger 0.14.1 (registry+https://github.com/rust-lang/crates.io-index)", | 534 | "flexi_logger 0.14.1 (registry+https://github.com/rust-lang/crates.io-index)", |
535 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", | 535 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", |
536 | "lsp-types 0.59.0 (registry+https://github.com/rust-lang/crates.io-index)", | 536 | "lsp-types 0.60.0 (registry+https://github.com/rust-lang/crates.io-index)", |
537 | "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", | 537 | "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", |
538 | "serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)", | 538 | "serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)", |
539 | ] | 539 | ] |
@@ -602,6 +602,16 @@ dependencies = [ | |||
602 | ] | 602 | ] |
603 | 603 | ||
604 | [[package]] | 604 | [[package]] |
605 | name = "idna" | ||
606 | version = "0.2.0" | ||
607 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
608 | dependencies = [ | ||
609 | "matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||
610 | "unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", | ||
611 | "unicode-normalization 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||
612 | ] | ||
613 | |||
614 | [[package]] | ||
605 | name = "indexmap" | 615 | name = "indexmap" |
606 | version = "1.0.2" | 616 | version = "1.0.2" |
607 | source = "registry+https://github.com/rust-lang/crates.io-index" | 617 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -772,17 +782,14 @@ dependencies = [ | |||
772 | 782 | ||
773 | [[package]] | 783 | [[package]] |
774 | name = "lsp-types" | 784 | name = "lsp-types" |
775 | version = "0.59.0" | 785 | version = "0.60.0" |
776 | source = "registry+https://github.com/rust-lang/crates.io-index" | 786 | source = "registry+https://github.com/rust-lang/crates.io-index" |
777 | dependencies = [ | 787 | dependencies = [ |
778 | "bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", | 788 | "bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", |
779 | "num-derive 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", | ||
780 | "num-traits 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||
781 | "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", | 789 | "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", |
782 | "serde_derive 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", | ||
783 | "serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)", | 790 | "serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)", |
784 | "url 1.7.2 (registry+https://github.com/rust-lang/crates.io-index)", | 791 | "serde_repr 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", |
785 | "url_serde 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", | 792 | "url 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)", |
786 | ] | 793 | ] |
787 | 794 | ||
788 | [[package]] | 795 | [[package]] |
@@ -881,16 +888,6 @@ dependencies = [ | |||
881 | ] | 888 | ] |
882 | 889 | ||
883 | [[package]] | 890 | [[package]] |
884 | name = "num-derive" | ||
885 | version = "0.2.5" | ||
886 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
887 | dependencies = [ | ||
888 | "proc-macro2 0.4.30 (registry+https://github.com/rust-lang/crates.io-index)", | ||
889 | "quote 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", | ||
890 | "syn 0.15.44 (registry+https://github.com/rust-lang/crates.io-index)", | ||
891 | ] | ||
892 | |||
893 | [[package]] | ||
894 | name = "num-integer" | 891 | name = "num-integer" |
895 | version = "0.1.41" | 892 | version = "0.1.41" |
896 | source = "registry+https://github.com/rust-lang/crates.io-index" | 893 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -1016,6 +1013,11 @@ version = "1.0.1" | |||
1016 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1013 | source = "registry+https://github.com/rust-lang/crates.io-index" |
1017 | 1014 | ||
1018 | [[package]] | 1015 | [[package]] |
1016 | name = "percent-encoding" | ||
1017 | version = "2.1.0" | ||
1018 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1019 | |||
1020 | [[package]] | ||
1019 | name = "pest" | 1021 | name = "pest" |
1020 | version = "2.1.1" | 1022 | version = "2.1.1" |
1021 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1023 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -1261,7 +1263,7 @@ dependencies = [ | |||
1261 | "flexi_logger 0.14.1 (registry+https://github.com/rust-lang/crates.io-index)", | 1263 | "flexi_logger 0.14.1 (registry+https://github.com/rust-lang/crates.io-index)", |
1262 | "gen_lsp_server 0.2.0", | 1264 | "gen_lsp_server 0.2.0", |
1263 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", | 1265 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", |
1264 | "lsp-types 0.59.0 (registry+https://github.com/rust-lang/crates.io-index)", | 1266 | "lsp-types 0.60.0 (registry+https://github.com/rust-lang/crates.io-index)", |
1265 | "parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", | 1267 | "parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", |
1266 | "ra_ide_api 0.1.0", | 1268 | "ra_ide_api 0.1.0", |
1267 | "ra_prof 0.1.0", | 1269 | "ra_prof 0.1.0", |
@@ -1278,7 +1280,6 @@ dependencies = [ | |||
1278 | "test_utils 0.1.0", | 1280 | "test_utils 0.1.0", |
1279 | "thread_worker 0.1.0", | 1281 | "thread_worker 0.1.0", |
1280 | "threadpool 1.7.1 (registry+https://github.com/rust-lang/crates.io-index)", | 1282 | "threadpool 1.7.1 (registry+https://github.com/rust-lang/crates.io-index)", |
1281 | "url_serde 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||
1282 | ] | 1283 | ] |
1283 | 1284 | ||
1284 | [[package]] | 1285 | [[package]] |
@@ -1731,6 +1732,16 @@ dependencies = [ | |||
1731 | ] | 1732 | ] |
1732 | 1733 | ||
1733 | [[package]] | 1734 | [[package]] |
1735 | name = "serde_repr" | ||
1736 | version = "0.1.5" | ||
1737 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1738 | dependencies = [ | ||
1739 | "proc-macro2 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", | ||
1740 | "quote 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", | ||
1741 | "syn 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", | ||
1742 | ] | ||
1743 | |||
1744 | [[package]] | ||
1734 | name = "serde_yaml" | 1745 | name = "serde_yaml" |
1735 | version = "0.8.9" | 1746 | version = "0.8.9" |
1736 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1747 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -2046,12 +2057,14 @@ dependencies = [ | |||
2046 | ] | 2057 | ] |
2047 | 2058 | ||
2048 | [[package]] | 2059 | [[package]] |
2049 | name = "url_serde" | 2060 | name = "url" |
2050 | version = "0.2.0" | 2061 | version = "2.1.0" |
2051 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2062 | source = "registry+https://github.com/rust-lang/crates.io-index" |
2052 | dependencies = [ | 2063 | dependencies = [ |
2064 | "idna 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||
2065 | "matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", | ||
2066 | "percent-encoding 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)", | ||
2053 | "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", | 2067 | "serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)", |
2054 | "url 1.7.2 (registry+https://github.com/rust-lang/crates.io-index)", | ||
2055 | ] | 2068 | ] |
2056 | 2069 | ||
2057 | [[package]] | 2070 | [[package]] |
@@ -2220,6 +2233,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
2220 | "checksum heck 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "20564e78d53d2bb135c343b3f47714a56af2061f1c928fdb541dc7b9fdd94205" | 2233 | "checksum heck 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "20564e78d53d2bb135c343b3f47714a56af2061f1c928fdb541dc7b9fdd94205" |
2221 | "checksum humansize 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b6cab2627acfc432780848602f3f558f7e9dd427352224b0d9324025796d2a5e" | 2234 | "checksum humansize 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b6cab2627acfc432780848602f3f558f7e9dd427352224b0d9324025796d2a5e" |
2222 | "checksum idna 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "38f09e0f0b1fb55fdee1f17470ad800da77af5186a1a76c026b679358b7e844e" | 2235 | "checksum idna 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "38f09e0f0b1fb55fdee1f17470ad800da77af5186a1a76c026b679358b7e844e" |
2236 | "checksum idna 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "02e2673c30ee86b5b96a9cb52ad15718aa1f966f5ab9ad54a8b95d5ca33120a9" | ||
2223 | "checksum indexmap 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7e81a7c05f79578dbc15793d8b619db9ba32b4577003ef3af1a91c416798c58d" | 2237 | "checksum indexmap 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7e81a7c05f79578dbc15793d8b619db9ba32b4577003ef3af1a91c416798c58d" |
2224 | "checksum indicatif 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2c60da1c9abea75996b70a931bba6c750730399005b61ccd853cee50ef3d0d0c" | 2238 | "checksum indicatif 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2c60da1c9abea75996b70a931bba6c750730399005b61ccd853cee50ef3d0d0c" |
2225 | "checksum inotify 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "40b54539f3910d6f84fbf9a643efd6e3aa6e4f001426c0329576128255994718" | 2239 | "checksum inotify 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "40b54539f3910d6f84fbf9a643efd6e3aa6e4f001426c0329576128255994718" |
@@ -2241,7 +2255,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
2241 | "checksum lock_api 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ed946d4529956a20f2d63ebe1b69996d5a2137c91913fe3ebbeff957f5bca7ff" | 2255 | "checksum lock_api 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ed946d4529956a20f2d63ebe1b69996d5a2137c91913fe3ebbeff957f5bca7ff" |
2242 | "checksum lock_api 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f8912e782533a93a167888781b836336a6ca5da6175c05944c86cf28c31104dc" | 2256 | "checksum lock_api 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f8912e782533a93a167888781b836336a6ca5da6175c05944c86cf28c31104dc" |
2243 | "checksum log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7" | 2257 | "checksum log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7" |
2244 | "checksum lsp-types 0.59.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8961cde7f6f856771910edf37ff0729e59e02d2a8592a94c27495b746320e6ed" | 2258 | "checksum lsp-types 0.60.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fe3edefcd66dde1f7f1df706f46520a3c93adc5ca4bc5747da6621195e894efd" |
2245 | "checksum maplit 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "08cbb6b4fef96b6d77bfc40ec491b1690c779e77b05cd9f07f787ed376fd4c43" | 2259 | "checksum maplit 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "08cbb6b4fef96b6d77bfc40ec491b1690c779e77b05cd9f07f787ed376fd4c43" |
2246 | "checksum matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08" | 2260 | "checksum matches 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08" |
2247 | "checksum memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "88579771288728879b57485cc7d6b07d648c9f0141eb955f8ab7f9d45394468e" | 2261 | "checksum memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "88579771288728879b57485cc7d6b07d648c9f0141eb955f8ab7f9d45394468e" |
@@ -2252,7 +2266,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
2252 | "checksum net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)" = "42550d9fb7b6684a6d404d9fa7250c2eb2646df731d1c06afc06dcee9e1bcf88" | 2266 | "checksum net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)" = "42550d9fb7b6684a6d404d9fa7250c2eb2646df731d1c06afc06dcee9e1bcf88" |
2253 | "checksum nodrop 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)" = "2f9667ddcc6cc8a43afc9b7917599d7216aa09c463919ea32c59ed6cac8bc945" | 2267 | "checksum nodrop 0.1.13 (registry+https://github.com/rust-lang/crates.io-index)" = "2f9667ddcc6cc8a43afc9b7917599d7216aa09c463919ea32c59ed6cac8bc945" |
2254 | "checksum notify 4.0.12 (registry+https://github.com/rust-lang/crates.io-index)" = "3572d71f13ea8ed41867accd971fd564aa75934cf7a1fae03ddb8c74a8a49943" | 2268 | "checksum notify 4.0.12 (registry+https://github.com/rust-lang/crates.io-index)" = "3572d71f13ea8ed41867accd971fd564aa75934cf7a1fae03ddb8c74a8a49943" |
2255 | "checksum num-derive 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "eafd0b45c5537c3ba526f79d3e75120036502bebacbb3f3220914067ce39dbf2" | ||
2256 | "checksum num-integer 0.1.41 (registry+https://github.com/rust-lang/crates.io-index)" = "b85e541ef8255f6cf42bbfe4ef361305c6c135d10919ecc26126c4e5ae94bc09" | 2269 | "checksum num-integer 0.1.41 (registry+https://github.com/rust-lang/crates.io-index)" = "b85e541ef8255f6cf42bbfe4ef361305c6c135d10919ecc26126c4e5ae94bc09" |
2257 | "checksum num-traits 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "6ba9a427cfca2be13aa6f6403b0b7e7368fe982bfa16fccc450ce74c46cd9b32" | 2270 | "checksum num-traits 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "6ba9a427cfca2be13aa6f6403b0b7e7368fe982bfa16fccc450ce74c46cd9b32" |
2258 | "checksum num_cpus 1.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "bcef43580c035376c0705c42792c294b66974abbfd2789b511784023f71f3273" | 2271 | "checksum num_cpus 1.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "bcef43580c035376c0705c42792c294b66974abbfd2789b511784023f71f3273" |
@@ -2267,6 +2280,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
2267 | "checksum paste 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "423a519e1c6e828f1e73b720f9d9ed2fa643dce8a7737fb43235ce0b41eeaa49" | 2280 | "checksum paste 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "423a519e1c6e828f1e73b720f9d9ed2fa643dce8a7737fb43235ce0b41eeaa49" |
2268 | "checksum paste-impl 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "4214c9e912ef61bf42b81ba9a47e8aad1b2ffaf739ab162bf96d1e011f54e6c5" | 2281 | "checksum paste-impl 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "4214c9e912ef61bf42b81ba9a47e8aad1b2ffaf739ab162bf96d1e011f54e6c5" |
2269 | "checksum percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831" | 2282 | "checksum percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831" |
2283 | "checksum percent-encoding 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" | ||
2270 | "checksum pest 2.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "933085deae3f32071f135d799d75667b63c8dc1f4537159756e3d4ceab41868c" | 2284 | "checksum pest 2.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "933085deae3f32071f135d799d75667b63c8dc1f4537159756e3d4ceab41868c" |
2271 | "checksum pest_derive 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "833d1ae558dc601e9a60366421196a8d94bc0ac980476d0b67e1d0988d72b2d0" | 2285 | "checksum pest_derive 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "833d1ae558dc601e9a60366421196a8d94bc0ac980476d0b67e1d0988d72b2d0" |
2272 | "checksum pest_generator 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "63120576c4efd69615b5537d3d052257328a4ca82876771d6944424ccfd9f646" | 2286 | "checksum pest_generator 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "63120576c4efd69615b5537d3d052257328a4ca82876771d6944424ccfd9f646" |
@@ -2320,6 +2334,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
2320 | "checksum serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)" = "fec2851eb56d010dc9a21b89ca53ee75e6528bab60c11e89d38390904982da9f" | 2334 | "checksum serde 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)" = "fec2851eb56d010dc9a21b89ca53ee75e6528bab60c11e89d38390904982da9f" |
2321 | "checksum serde_derive 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)" = "cb4dc18c61206b08dc98216c98faa0232f4337e1e1b8574551d5bad29ea1b425" | 2335 | "checksum serde_derive 1.0.99 (registry+https://github.com/rust-lang/crates.io-index)" = "cb4dc18c61206b08dc98216c98faa0232f4337e1e1b8574551d5bad29ea1b425" |
2322 | "checksum serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)" = "051c49229f282f7c6f3813f8286cc1e3323e8051823fce42c7ea80fe13521704" | 2336 | "checksum serde_json 1.0.40 (registry+https://github.com/rust-lang/crates.io-index)" = "051c49229f282f7c6f3813f8286cc1e3323e8051823fce42c7ea80fe13521704" |
2337 | "checksum serde_repr 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "cd02c7587ec314570041b2754829f84d873ced14a96d1fd1823531e11db40573" | ||
2323 | "checksum serde_yaml 0.8.9 (registry+https://github.com/rust-lang/crates.io-index)" = "38b08a9a90e5260fe01c6480ec7c811606df6d3a660415808c3c3fa8ed95b582" | 2338 | "checksum serde_yaml 0.8.9 (registry+https://github.com/rust-lang/crates.io-index)" = "38b08a9a90e5260fe01c6480ec7c811606df6d3a660415808c3c3fa8ed95b582" |
2324 | "checksum sha-1 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "23962131a91661d643c98940b20fcaffe62d776a823247be80a48fcb8b6fce68" | 2339 | "checksum sha-1 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "23962131a91661d643c98940b20fcaffe62d776a823247be80a48fcb8b6fce68" |
2325 | "checksum slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" | 2340 | "checksum slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" |
@@ -2357,7 +2372,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
2357 | "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" | 2372 | "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" |
2358 | "checksum unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c" | 2373 | "checksum unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c" |
2359 | "checksum url 1.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dd4e7c0d531266369519a4aa4f399d748bd37043b00bde1e4ff1f60a120b355a" | 2374 | "checksum url 1.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dd4e7c0d531266369519a4aa4f399d748bd37043b00bde1e4ff1f60a120b355a" |
2360 | "checksum url_serde 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "74e7d099f1ee52f823d4bdd60c93c3602043c728f5db3b97bdb548467f7bddea" | 2375 | "checksum url 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "75b414f6c464c879d7f9babf951f23bc3743fb7313c081b2e6ca719067ea9d61" |
2361 | "checksum uuid 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)" = "90dbc611eb48397705a6b0f6e917da23ae517e4d127123d2cf7674206627d32a" | 2376 | "checksum uuid 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)" = "90dbc611eb48397705a6b0f6e917da23ae517e4d127123d2cf7674206627d32a" |
2362 | "checksum vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "05c78687fb1a80548ae3250346c3db86a80a7cdd77bda190189f2d0a0987c81a" | 2377 | "checksum vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "05c78687fb1a80548ae3250346c3db86a80a7cdd77bda190189f2d0a0987c81a" |
2363 | "checksum version_check 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd" | 2378 | "checksum version_check 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd" |
diff --git a/crates/gen_lsp_server/Cargo.toml b/crates/gen_lsp_server/Cargo.toml index d0ca19f52..7011aa1bf 100644 --- a/crates/gen_lsp_server/Cargo.toml +++ b/crates/gen_lsp_server/Cargo.toml | |||
@@ -8,7 +8,7 @@ license = "MIT OR Apache-2.0" | |||
8 | description = "Generic LSP server scaffold." | 8 | description = "Generic LSP server scaffold." |
9 | 9 | ||
10 | [dependencies] | 10 | [dependencies] |
11 | lsp-types = "0.59.0" | 11 | lsp-types = "0.60.0" |
12 | log = "0.4.3" | 12 | log = "0.4.3" |
13 | serde_json = "1.0.34" | 13 | serde_json = "1.0.34" |
14 | serde = { version = "1.0.83", features = ["derive"] } | 14 | serde = { version = "1.0.83", features = ["derive"] } |
diff --git a/crates/ra_lsp_server/Cargo.toml b/crates/ra_lsp_server/Cargo.toml index c282d6db8..2c69a6993 100644 --- a/crates/ra_lsp_server/Cargo.toml +++ b/crates/ra_lsp_server/Cargo.toml | |||
@@ -12,8 +12,7 @@ serde = { version = "1.0.83", features = ["derive"] } | |||
12 | crossbeam-channel = "0.3.5" | 12 | crossbeam-channel = "0.3.5" |
13 | flexi_logger = "0.14.0" | 13 | flexi_logger = "0.14.0" |
14 | log = "0.4.3" | 14 | log = "0.4.3" |
15 | url_serde = "0.2.0" | 15 | lsp-types = { version = "0.60.0", features = ["proposed"] } |
16 | lsp-types = { version = "0.59.0", features = ["proposed"] } | ||
17 | rustc-hash = "1.0" | 16 | rustc-hash = "1.0" |
18 | parking_lot = "0.9.0" | 17 | parking_lot = "0.9.0" |
19 | 18 | ||
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index a3d3f167c..b465707f8 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs | |||
@@ -16,7 +16,6 @@ use ra_syntax::{AstNode, SyntaxKind, TextRange, TextUnit}; | |||
16 | use rustc_hash::FxHashMap; | 16 | use rustc_hash::FxHashMap; |
17 | use serde::{Deserialize, Serialize}; | 17 | use serde::{Deserialize, Serialize}; |
18 | use serde_json::to_value; | 18 | use serde_json::to_value; |
19 | use url_serde::Ser; | ||
20 | 19 | ||
21 | use crate::{ | 20 | use crate::{ |
22 | cargo_target_spec::{runnable_args, CargoTargetSpec}, | 21 | cargo_target_spec::{runnable_args, CargoTargetSpec}, |
@@ -736,7 +735,7 @@ pub fn handle_code_lens_resolve(world: WorldSnapshot, code_lens: CodeLens) -> Re | |||
736 | title, | 735 | title, |
737 | command: "rust-analyzer.showReferences".into(), | 736 | command: "rust-analyzer.showReferences".into(), |
738 | arguments: Some(vec![ | 737 | arguments: Some(vec![ |
739 | to_value(&Ser::new(&lens_params.text_document.uri)).unwrap(), | 738 | to_value(&lens_params.text_document.uri).unwrap(), |
740 | to_value(code_lens.range.start).unwrap(), | 739 | to_value(code_lens.range.start).unwrap(), |
741 | to_value(locations).unwrap(), | 740 | to_value(locations).unwrap(), |
742 | ]), | 741 | ]), |
diff --git a/crates/ra_lsp_server/src/req.rs b/crates/ra_lsp_server/src/req.rs index b2f3c509d..1b23f0c3d 100644 --- a/crates/ra_lsp_server/src/req.rs +++ b/crates/ra_lsp_server/src/req.rs | |||
@@ -1,7 +1,6 @@ | |||
1 | use lsp_types::{Location, Position, Range, TextDocumentIdentifier, Url}; | 1 | use lsp_types::{Location, Position, Range, TextDocumentIdentifier, Url}; |
2 | use rustc_hash::FxHashMap; | 2 | use rustc_hash::FxHashMap; |
3 | use serde::{Deserialize, Serialize}; | 3 | use serde::{Deserialize, Serialize}; |
4 | use url_serde; | ||
5 | 4 | ||
6 | pub use lsp_types::{ | 5 | pub use lsp_types::{ |
7 | notification::*, request::*, ApplyWorkspaceEditParams, CodeActionParams, CodeLens, | 6 | notification::*, request::*, ApplyWorkspaceEditParams, CodeActionParams, CodeLens, |
@@ -98,7 +97,6 @@ impl Notification for PublishDecorations { | |||
98 | #[derive(Serialize, Debug)] | 97 | #[derive(Serialize, Debug)] |
99 | #[serde(rename_all = "camelCase")] | 98 | #[serde(rename_all = "camelCase")] |
100 | pub struct PublishDecorationsParams { | 99 | pub struct PublishDecorationsParams { |
101 | #[serde(with = "url_serde")] | ||
102 | pub uri: Url, | 100 | pub uri: Url, |
103 | pub decorations: Vec<Decoration>, | 101 | pub decorations: Vec<Decoration>, |
104 | } | 102 | } |