Rename back to highlight and check event's again highlight range
This commit is contained in:
@@ -425,16 +425,14 @@ impl Analysis {
|
||||
self.with_db(|db| runnables::runnables(db, file_id))
|
||||
}
|
||||
|
||||
/// Computes syntax highlighting for the given file.
|
||||
/// Computes syntax highlighting for the given file
|
||||
pub fn highlight(&self, file_id: FileId) -> Cancelable<Vec<HighlightedRange>> {
|
||||
self.with_db(|db| syntax_highlighting::highlight(db, file_id))
|
||||
self.with_db(|db| syntax_highlighting::highlight(db, file_id, None))
|
||||
}
|
||||
|
||||
/// Computes syntax highlighting for the given file range.
|
||||
pub fn highlight_range(&self, frange: FileRange) -> Cancelable<Vec<HighlightedRange>> {
|
||||
self.with_db(|db| {
|
||||
syntax_highlighting::highlight_range(db, frange.file_id, Some(frange.range))
|
||||
})
|
||||
self.with_db(|db| syntax_highlighting::highlight(db, frange.file_id, Some(frange.range)))
|
||||
}
|
||||
|
||||
/// Computes syntax highlighting for the given file.
|
||||
|
||||
Reference in New Issue
Block a user