@@ -4,7 +4,6 @@ use std::error::Error;
4
4
use std:: fmt;
5
5
use std:: path:: PathBuf ;
6
6
7
- use languageserver_types as ls_types;
8
7
use racer;
9
8
use rls_analysis:: DefKind ;
10
9
use rls_span as span;
@@ -14,9 +13,9 @@ use url::Url;
14
13
use crate :: config;
15
14
use crate :: actions:: hover;
16
15
17
- pub use languageserver_types :: notification:: Notification as LSPNotification ;
18
- pub use languageserver_types :: request:: Request as LSPRequest ;
19
- pub use languageserver_types :: * ;
16
+ pub use lsp_types :: notification:: Notification as LSPNotification ;
17
+ pub use lsp_types :: request:: Request as LSPRequest ;
18
+ pub use lsp_types :: * ;
20
19
21
20
/// Errors that can occur when parsing a file URI.
22
21
#[ derive( Debug ) ]
@@ -277,7 +276,7 @@ impl Default for InitializationOptions {
277
276
}
278
277
}
279
278
280
- // Subset of flags from ls_types ::ClientCapabilities that affects this RLS.
279
+ // Subset of flags from lsp_types ::ClientCapabilities that affects this RLS.
281
280
// Passed in the `initialize` request under `capabilities`.
282
281
#[ derive( Debug , PartialEq , Deserialize , Serialize , Clone , Copy , Default ) ]
283
282
#[ serde( default ) ]
@@ -287,8 +286,8 @@ pub struct ClientCapabilities {
287
286
}
288
287
289
288
impl ClientCapabilities {
290
- pub fn new ( params : & ls_types :: InitializeParams ) -> ClientCapabilities {
291
- // ls_types ::ClientCapabilities is a rather awkward object to use internally
289
+ pub fn new ( params : & lsp_types :: InitializeParams ) -> ClientCapabilities {
290
+ // lsp_types ::ClientCapabilities is a rather awkward object to use internally
292
291
// (for instance it doesn't Clone). Instead we pick out the bits of it that we
293
292
// are going to handle into ClientCapabilities. The upside of
294
293
// using this very simple struct is that it can be kept thread safe
0 commit comments