Skip to content

Commit d9b345b

Browse files
committed
Avoid having quotes inside quotes (for microsoft#91368)
1 parent 2d313c9 commit d9b345b

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/vs/editor/browser/services/bulkEditService.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export interface IBulkEditOptions {
1616
progress?: IProgress<IProgressStep>;
1717
showPreview?: boolean;
1818
label?: string;
19+
quotableLabel?: string;
1920
}
2021

2122
export interface IBulkEditResult {

src/vs/editor/contrib/rename/rename.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ class RenameController implements IEditorContribution {
206206
this._bulkEditService.apply(renameResult, {
207207
editor: this.editor,
208208
showPreview: inputFieldResult.wantsPreview,
209-
label: nls.localize('label', "Renaming '{0}'", loc?.text)
209+
label: nls.localize('label', "Renaming '{0}'", loc?.text),
210+
quotableLabel: nls.localize('quotableLabel', "Renaming {0}", loc?.text),
210211
}).then(result => {
211212
if (result.ariaSummary) {
212213
alert(nls.localize('aria', "Successfully renamed '{0}' to '{1}'. Summary: {2}", loc!.text, inputFieldResult.newName, result.ariaSummary));

src/vs/workbench/services/bulkEdit/browser/bulkEditService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ export class BulkEditService implements IBulkEditService {
443443
// If the code editor is readonly still allow bulk edits to be applied #68549
444444
codeEditor = undefined;
445445
}
446-
const bulkEdit = this._instaService.createInstance(BulkEdit, options?.label, codeEditor, options?.progress, edits);
446+
const bulkEdit = this._instaService.createInstance(BulkEdit, options?.quotableLabel || options?.label, codeEditor, options?.progress, edits);
447447
return bulkEdit.perform().then(() => {
448448
return { ariaSummary: bulkEdit.ariaMessage() };
449449
}).catch(err => {

0 commit comments

Comments
 (0)