Skip to content

Commit b290623

Browse files
committed
Apply HACK to avoid TextEditor disposed error
1 parent 2f1929a commit b290623

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/commands/compare-selection-with-text1.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class CompareSelectionWithText1Command {
1515
const textInfo = this._selectionInfoBuilder.extract(editor);
1616
this._selectionInfoRegistry.set(TextKey.REGISTER2, textInfo);
1717

18+
await 'HACK'; // HACK: To avoid TextEditor has been disposed error
1819
await this._diffPresenter.takeDiff(TextKey.REGISTER1, TextKey.REGISTER2);
1920
} catch (e) {
2021
this._handleError(e);

0 commit comments

Comments
 (0)