mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
Preserve value if one was passed in (#193939)
Fixes https://github.com/microsoft/vscode/issues/192898
This commit is contained in:
committed by
GitHub
parent
be8a9dbf0c
commit
3fba5b2f64
@@ -34,7 +34,7 @@ registerAction2(class TextSearchQuickAccessAction extends Action2 {
|
|||||||
override async run(accessor: ServicesAccessor, match: RenderableMatch | undefined): Promise<any> {
|
override async run(accessor: ServicesAccessor, match: RenderableMatch | undefined): Promise<any> {
|
||||||
const quickInputService = accessor.get(IQuickInputService);
|
const quickInputService = accessor.get(IQuickInputService);
|
||||||
const searchText = getSearchText(accessor) ?? '';
|
const searchText = getSearchText(accessor) ?? '';
|
||||||
quickInputService.quickAccess.show(TEXT_SEARCH_QUICK_ACCESS_PREFIX + searchText);
|
quickInputService.quickAccess.show(TEXT_SEARCH_QUICK_ACCESS_PREFIX + searchText, { preserveValue: !!searchText });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user