File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -171,9 +171,15 @@ export function ssr(ctx: Ctx): Cmd {
171171 const request = await vscode . window . showInputBox ( options ) ;
172172 if ( ! request ) return ;
173173
174- const edit = await client . sendRequest ( ra . ssr , { query : request , parseOnly : false } ) ;
175-
176- await vscode . workspace . applyEdit ( client . protocol2CodeConverter . asWorkspaceEdit ( edit ) ) ;
174+ vscode . window . withProgress ( {
175+ location : vscode . ProgressLocation . Notification ,
176+ title : "Structured search replace in progress..." ,
177+ cancellable : false ,
178+ } , async ( _progress , _token ) => {
179+ const edit = await client . sendRequest ( ra . ssr , { query : request , parseOnly : false } ) ;
180+
181+ await vscode . workspace . applyEdit ( client . protocol2CodeConverter . asWorkspaceEdit ( edit ) ) ;
182+ } ) ;
177183 } ;
178184}
179185
You can’t perform that action at this time.
0 commit comments