Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #792 from autozimu/option
Browse files Browse the repository at this point in the history
trace and trigger_characters should all be Option.
  • Loading branch information
Xanewok authored Mar 27, 2018
2 parents 4ebefb6 + c07e698 commit 10bbc1c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cargo_metadata = "0.5.2"
env_logger = "0.5"
failure = "0.1.1"
jsonrpc-core = "8.0.1"
languageserver-types = "0.31"
languageserver-types = "0.35"
lazy_static = "1"
log = "0.4"
racer = "2.0.12"
Expand Down
2 changes: 1 addition & 1 deletion src/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ fn initialize(root_path: String) -> Request<server::InitializeRequest> {
text_document: None,
experimental: None,
},
trace: TraceOption::Off,
trace: Some(TraceOption::Off),
};
Request {
id: next_id(),
Expand Down
4 changes: 2 additions & 2 deletions src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ fn server_caps() -> ServerCapabilities {
hover_provider: Some(true),
completion_provider: Some(CompletionOptions {
resolve_provider: Some(true),
trigger_characters: vec![".".to_string(), ":".to_string()],
trigger_characters: Some(vec![".".to_string(), ":".to_string()]),
}),
definition_provider: Some(true),
references_provider: Some(true),
Expand Down Expand Up @@ -359,7 +359,7 @@ mod test {
text_document: None,
experimental: None,
},
trace: ::ls_types::TraceOption::Off,
trace: Some(::ls_types::TraceOption::Off),
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub fn initialize_with_opts<'a>(
text_document: None,
experimental: None,
},
trace: TraceOption::Off,
trace: Some(TraceOption::Off),
};
Request {
id,
Expand Down

0 comments on commit 10bbc1c

Please sign in to comment.