mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-07-08 15:22:47 +00:00
this code should no longer need
This commit is contained in:
parent
cf220c530c
commit
7912b5e8be
@ -196,19 +196,6 @@ export default class DiffStreamer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.typingTimer = later(this, this.#streamNextChar, this.typingDelay);
|
this.typingTimer = later(this, this.#streamNextChar, this.typingDelay);
|
||||||
} else {
|
|
||||||
if (!this.suggestion || !this.selectedText || !this.jsDiff) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const originalDiff = this.jsDiff.diffWordsWithSpace(
|
|
||||||
this.selectedText,
|
|
||||||
this.suggestion
|
|
||||||
);
|
|
||||||
|
|
||||||
this.typingTimer = null;
|
|
||||||
this.diff = this.#formatDiffWithTags(originalDiff, false);
|
|
||||||
this.isStreaming = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user