mirror of
https://github.com/Microsoft/vscode
synced 2024-10-12 06:17:18 +00:00
Fix also the case when the find widget is open
This commit is contained in:
parent
c994f3ddee
commit
6d3956c515
|
@ -228,6 +228,9 @@ export class CommonFindController extends Disposable implements editorCommon.IEd
|
|||
}
|
||||
|
||||
public setSearchString(searchString: string): void {
|
||||
if (this._state.isRegex) {
|
||||
searchString = strings.escapeRegExpCharacters(searchString);
|
||||
}
|
||||
this._state.change({ searchString: searchString }, false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue