Skip to content

Commit

Permalink
Call the appropriate method
Browse files Browse the repository at this point in the history
  • Loading branch information
jm-observer committed Aug 1, 2024
1 parent 751fc46 commit d95d6da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lapce-app/src/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ impl Doc {
self.buffer.with_untracked(|b| b.line_ending())
}

pub fn on_update(&self, edits: Option<SmallVec<[SyntaxEdit; 3]>>) {
fn on_update(&self, edits: Option<SmallVec<[SyntaxEdit; 3]>>) {
batch(|| {
self.trigger_syntax_change(edits);
self.trigger_head_change();
Expand Down Expand Up @@ -800,7 +800,7 @@ impl Doc {
}

/// Request semantic styles for the buffer from the LSP through the proxy.
fn get_semantic_styles(&self) {
pub fn get_semantic_styles(&self) {
if !self.loaded() {
return;
}
Expand Down
3 changes: 2 additions & 1 deletion lapce-app/src/window_tab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1926,7 +1926,8 @@ impl WindowTabData {
// todo filter by language
self.main_split.docs.with_untracked(|x| {
for doc in x.values() {
doc.on_update(None);
doc.get_code_lens();
doc.get_semantic_styles();
}
});
}
Expand Down

0 comments on commit d95d6da

Please sign in to comment.