find widget readonly notes

This commit is contained in:
zadam
2022-05-26 16:29:54 +02:00
parent f250b72563
commit ade77e5fb8
6 changed files with 78 additions and 18 deletions

View File

@@ -91,9 +91,10 @@ export default class FindInText {
}
}
async cleanup(totalFound, currentFound) {
async findBoxClosed(totalFound, currentFound) {
const textEditor = await this.getTextEditor();
if (totalFound > 0) {
const textEditor = await this.getTextEditor();
// Clear the markers and set the caret to the
// current occurrence
const model = textEditor.model;
@@ -112,10 +113,7 @@ export default class FindInText {
}
this.findResult = null;
}
async close() {
const textEditor = await this.getTextEditor();
textEditor.focus();
}
}