diff options
Diffstat (limited to 'editors/code/src')
-rw-r--r-- | editors/code/src/commands.ts | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts index 5a1bc7f57..0e78f5101 100644 --- a/editors/code/src/commands.ts +++ b/editors/code/src/commands.ts | |||
@@ -171,9 +171,15 @@ export function ssr(ctx: Ctx): Cmd { | |||
171 | const request = await vscode.window.showInputBox(options); | 171 | const request = await vscode.window.showInputBox(options); |
172 | if (!request) return; | 172 | if (!request) return; |
173 | 173 | ||
174 | const edit = await client.sendRequest(ra.ssr, { query: request, parseOnly: false }); | 174 | vscode.window.withProgress({ |
175 | 175 | location: vscode.ProgressLocation.Notification, | |
176 | await vscode.workspace.applyEdit(client.protocol2CodeConverter.asWorkspaceEdit(edit)); | 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 | }); | ||
177 | }; | 183 | }; |
178 | } | 184 | } |
179 | 185 | ||