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
9595
9696The ` [config] ` section contains stable settings that should generally remain unchanged.
9797
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.
9999- ` disable_parse_diagnostics ` : Set to ` true ` to disable diagnostics during parsing.
100100
101101#### Experimental Configuration
Original file line number Diff line number Diff line change @@ -81,9 +81,10 @@ impl WorkspaceProtoConfigs {
8181 }
8282
8383 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) ?;
8585 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
8788 . config
8889 . include_paths
8990 . iter ( )
Original file line number Diff line number Diff line change 11pub enum Jumpable {
22 Import ( String ) ,
3- Identifier ( String )
3+ Identifier ( String ) ,
44}
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ use tower::ServiceBuilder;
1010use tracing:: Level ;
1111
1212mod config;
13+ mod context;
1314mod formatter;
1415mod lsp;
1516mod nodekind;
@@ -18,7 +19,6 @@ mod server;
1819mod state;
1920mod utils;
2021mod workspace;
21- mod context;
2222
2323#[ tokio:: main( flavor = "current_thread" ) ]
2424async fn main ( ) {
Original file line number Diff line number Diff line change @@ -663,8 +663,6 @@ Included from {}"#,
663663
664664#[ cfg( test) ]
665665mod test {
666- use std:: path:: PathBuf ;
667-
668666 use insta:: assert_yaml_snapshot;
669667
670668 use crate :: context:: hoverable:: Hoverables ;
You can’t perform that action at this time.
0 commit comments