Skip to content

Commit

Permalink
Ignore documents with "output" scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
HennerM committed Jan 20, 2024
1 parent 585ea3a commit af1e3f4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/llm-ls/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,15 @@ impl LanguageServer for Backend {

async fn did_change(&self, params: DidChangeTextDocumentParams) {
let uri = params.text_document.uri.to_string();
if params.content_changes.is_empty() {
return;
}

// ignore the output scheme
if uri.starts_with("output:") {
return;
}

self.client
.log_message(MessageType::INFO, format!("{uri} changed"))
.await;
Expand Down

0 comments on commit af1e3f4

Please sign in to comment.