Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user