File tree Expand file tree Collapse file tree 5 files changed +6
-7
lines changed Expand file tree Collapse file tree 5 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ clang_format_path = "/usr/bin/clang-format" # clang-format binary to execute in
95
95
96
96
The ` [config] ` section contains stable settings that should generally remain unchanged.
97
97
98
- - ` include_paths ` : Directories to search for ` .proto ` files.
98
+ - ` include_paths ` : Directories to search for ` .proto ` files. Absolute or relative to LSP workspace root.
99
99
- ` disable_parse_diagnostics ` : Set to ` true ` to disable diagnostics during parsing.
100
100
101
101
#### Experimental Configuration
Original file line number Diff line number Diff line change @@ -81,9 +81,10 @@ impl WorkspaceProtoConfigs {
81
81
}
82
82
83
83
pub fn get_include_paths ( & self , uri : & Url ) -> Option < Vec < PathBuf > > {
84
- let c = self . get_config_for_uri ( uri) ?;
84
+ let cfg = self . get_config_for_uri ( uri) ?;
85
85
let w = self . get_workspace_for_uri ( uri) ?. to_file_path ( ) . ok ( ) ?;
86
- let mut ipath: Vec < PathBuf > = c
86
+
87
+ let mut ipath: Vec < PathBuf > = cfg
87
88
. config
88
89
. include_paths
89
90
. iter ( )
Original file line number Diff line number Diff line change 1
1
pub enum Jumpable {
2
2
Import ( String ) ,
3
- Identifier ( String )
3
+ Identifier ( String ) ,
4
4
}
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ use tower::ServiceBuilder;
10
10
use tracing:: Level ;
11
11
12
12
mod config;
13
+ mod context;
13
14
mod formatter;
14
15
mod lsp;
15
16
mod nodekind;
@@ -18,7 +19,6 @@ mod server;
18
19
mod state;
19
20
mod utils;
20
21
mod workspace;
21
- mod context;
22
22
23
23
#[ tokio:: main( flavor = "current_thread" ) ]
24
24
async fn main ( ) {
Original file line number Diff line number Diff line change @@ -663,8 +663,6 @@ Included from {}"#,
663
663
664
664
#[ cfg( test) ]
665
665
mod test {
666
- use std:: path:: PathBuf ;
667
-
668
666
use insta:: assert_yaml_snapshot;
669
667
670
668
use crate :: context:: hoverable:: Hoverables ;
You can’t perform that action at this time.
0 commit comments