Skip to content

Commit 3c477e8

Browse files
Clarify toast message that appears on row delete (#20493)
* Clarify toast message that appears on row delete * Generated loc's
1 parent 8303255 commit 3c477e8

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

localization/l10n/bundle.l10n.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1931,7 +1931,7 @@
19311931
"Unable to open Table Explorer: No target node provided.": "Unable to open Table Explorer: No target node provided.",
19321932
"Changes saved successfully.": "Changes saved successfully.",
19331933
"Row created.": "Row created.",
1934-
"Row removed.": "Row removed.",
1934+
"Row marked for removal.": "Row marked for removal.",
19351935
"{0} (Preview)/{0} is the table name": {
19361936
"message": "{0} (Preview)",
19371937
"comment": ["{0} is the table name"]

localization/xliff/vscode-mssql.xlf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2889,8 +2889,8 @@
28892889
<trans-unit id="++CODE++2f34dcbb175e7163055db4c74f8da053a82783ca89ca052d216bc867598b3ef3">
28902890
<source xml:lang="en">Row created.</source>
28912891
</trans-unit>
2892-
<trans-unit id="++CODE++d25169d1cd9a1ad455e2189423ab2b7341b1274e599218785aee69402ee977fc">
2893-
<source xml:lang="en">Row removed.</source>
2892+
<trans-unit id="++CODE++bec1d11423719e75365ab2e2d94e69229e18d8e25440ece25c0855deac353687">
2893+
<source xml:lang="en">Row marked for removal.</source>
28942894
</trans-unit>
28952895
<trans-unit id="++CODE++141b69f95916694982e525599db8205af7ecd6ced92d36c8aec6c5a9daa1e90e">
28962896
<source xml:lang="en">Rows per page</source>

src/constants/locConstants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2123,7 +2123,7 @@ export class TableExplorer {
21232123
);
21242124
public static changesSavedSuccessfully = l10n.t("Changes saved successfully.");
21252125
public static rowCreatedSuccessfully = l10n.t("Row created.");
2126-
public static rowRemoved = l10n.t("Row removed.");
2126+
public static rowMarkedForRemoval = l10n.t("Row marked for removal.");
21272127

21282128
public static title = (tableName: string) =>
21292129
l10n.t({

src/tableExplorer/tableExplorerWebViewController.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,9 @@ export class TableExplorerWebViewController extends ReactWebviewPanelController<
478478

479479
try {
480480
await this._tableExplorerService.deleteRow(state.ownerUri, payload.rowId);
481-
vscode.window.showInformationMessage(LocConstants.TableExplorer.rowRemoved);
481+
vscode.window.showInformationMessage(
482+
LocConstants.TableExplorer.rowMarkedForRemoval,
483+
);
482484

483485
// Remove from newRows tracking if it was a new row
484486
state.newRows = state.newRows.filter((row) => row.id !== payload.rowId);

test/unit/tableExplorerWebViewController.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,11 @@ suite("TableExplorerWebViewController - Reducers", () => {
379379
// Assert
380380
expect(mockTableExplorerService.deleteRow.calledOnceWith("test-owner-uri", 0)).to.be
381381
.true;
382-
expect(showInformationMessageStub.calledOnceWith(LocConstants.TableExplorer.rowRemoved))
383-
.to.be.true;
382+
expect(
383+
showInformationMessageStub.calledOnceWith(
384+
LocConstants.TableExplorer.rowMarkedForRemoval,
385+
),
386+
).to.be.true;
384387
expect(controller.state.resultSet?.rowCount).to.equal(1);
385388
expect(controller.state.resultSet?.subset.length).to.equal(1);
386389
});

0 commit comments

Comments
 (0)