mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Disable broken struct field rainbowing
This commit is contained in:
parent
43d5a49653
commit
2b200f6e1a
3 changed files with 7 additions and 23 deletions
|
@ -463,8 +463,8 @@ impl Analysis {
|
|||
}
|
||||
|
||||
/// Computes syntax highlighting for the given file.
|
||||
pub fn highlight_as_html(&self, file_id: FileId) -> Cancelable<String> {
|
||||
self.with_db(|db| syntax_highlighting::highlight_as_html(db, file_id, true))
|
||||
pub fn highlight_as_html(&self, file_id: FileId, rainbow: bool) -> Cancelable<String> {
|
||||
self.with_db(|db| syntax_highlighting::highlight_as_html(db, file_id, rainbow))
|
||||
}
|
||||
|
||||
/// Computes completions at the given position.
|
||||
|
@ -472,7 +472,7 @@ impl Analysis {
|
|||
self.with_db(|db| completion::completions(db, position).map(Into::into))
|
||||
}
|
||||
|
||||
/// Computes assists (aks code actons aka intentions) for the given
|
||||
/// Computes assists (aka code actions aka intentions) for the given
|
||||
/// position.
|
||||
pub fn assists(&self, frange: FileRange) -> Cancelable<Vec<Assist>> {
|
||||
self.with_db(|db| assists::assists(db, frange))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue