mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
✏️ git: use discard instead of clean
This commit is contained in:
@@ -430,8 +430,8 @@ export class CommandCenter {
|
||||
}
|
||||
|
||||
const basename = path.basename(resource.uri.fsPath);
|
||||
const message = localize('confirm clean', "Are you sure you want to clean changes in {0}?", basename);
|
||||
const yes = localize('clean', "Clean Changes");
|
||||
const message = localize('confirm discard', "Are you sure you want to discard changes in {0}?", basename);
|
||||
const yes = localize('discard', "Discard Changes");
|
||||
const pick = await window.showWarningMessage(message, { modal: true }, yes);
|
||||
|
||||
if (pick !== yes) {
|
||||
@@ -443,8 +443,8 @@ export class CommandCenter {
|
||||
|
||||
@command('git.cleanAll')
|
||||
async cleanAll(): Promise<void> {
|
||||
const message = localize('confirm clean all', "Are you sure you want to clean all changes?");
|
||||
const yes = localize('clean', "Clean Changes");
|
||||
const message = localize('confirm discard all', "Are you sure you want to discard ALL changes?");
|
||||
const yes = localize('discard', "Discard Changes");
|
||||
const pick = await window.showWarningMessage(message, { modal: true }, yes);
|
||||
|
||||
if (pick !== yes) {
|
||||
|
||||
Reference in New Issue
Block a user