Disable broken struct field rainbowing

This commit is contained in:
Pascal Hertleif 2019-05-25 16:29:39 +02:00
parent 43d5a49653
commit 2b200f6e1a
No known key found for this signature in database
GPG key ID: EDBB1A8D2047A074
3 changed files with 7 additions and 23 deletions

View file

@ -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))