Skip to content

Commit ecdf439

Browse files
author
Benjamin Pasero
committed
💄 use path label when presenting paths to user
1 parent f66741d commit ecdf439

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/vs/platform/windows/electron-main/windowsMainService.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import { IDialogMainService } from 'vs/platform/dialogs/electron-main/dialogs';
4040
import { withNullAsUndefined } from 'vs/base/common/types';
4141
import { isWindowsDriveLetter, toSlashes, parseLineAndColumnAware } from 'vs/base/common/extpath';
4242
import { CharCode } from 'vs/base/common/charCode';
43+
import { getPathLabel } from 'vs/base/common/labels';
4344

4445
export interface IWindowState {
4546
workspace?: IWorkspaceIdentifier;
@@ -880,11 +881,12 @@ export class WindowsMainService extends Disposable implements IWindowsMainServic
880881
let message, detail;
881882
if (uri.scheme === Schemas.file) {
882883
message = localize('pathNotExistTitle', "Path does not exist");
883-
detail = localize('pathNotExistDetail', "The path '{0}' does not seem to exist anymore on disk.", uri.fsPath);
884+
detail = localize('pathNotExistDetail', "The path '{0}' does not seem to exist anymore on disk.", getPathLabel(uri.fsPath, this.environmentService));
884885
} else {
885886
message = localize('uriInvalidTitle', "URI can not be opened");
886887
detail = localize('uriInvalidDetail', "The URI '{0}' is not valid and can not be opened.", uri.toString());
887888
}
889+
888890
const options: MessageBoxOptions = {
889891
title: product.nameLong,
890892
type: 'info',

0 commit comments

Comments
 (0)