Skip to content

Commit 7d22e3b

Browse files
committed
1 parent 9ca1b43 commit 7d22e3b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/vs/workbench/contrib/workspace/browser/workspace.contribution.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import { isSingleFolderWorkspaceIdentifier, toWorkspaceIdentifier } from 'vs/pla
4040
import { Schemas } from 'vs/base/common/network';
4141
import { STATUS_BAR_PROMINENT_ITEM_BACKGROUND, STATUS_BAR_PROMINENT_ITEM_FOREGROUND } from 'vs/workbench/common/theme';
4242
import { IStorageService, StorageScope, StorageTarget } from 'vs/platform/storage/common/storage';
43+
import { splitName } from 'vs/base/common/labels';
4344

4445
const STARTUP_PROMPT_SHOWN_KEY = 'workspace.trust.startupPrompt.shown';
4546

@@ -138,7 +139,9 @@ export class WorkspaceTrustRequestHandler extends Disposable implements IWorkben
138139
const workspaceIdentifier = toWorkspaceIdentifier(this.workspaceContextService.getWorkspace())!;
139140
const isSingleFolderWorkspace = isSingleFolderWorkspaceIdentifier(workspaceIdentifier);
140141
if (isSingleFolderWorkspaceIdentifier(workspaceIdentifier) && workspaceIdentifier.uri.scheme === Schemas.file) {
141-
checkboxText = localize('checkboxString', "I trust the authors of all files in the parent folder");
142+
const { parentPath } = splitName(workspaceIdentifier.uri.fsPath);
143+
const { name } = splitName(parentPath);
144+
checkboxText = localize('checkboxString', "Trust the authors of all files in the parent folder '{0}'", name);
142145
}
143146

144147
// Show Workspace Trust Start Dialog

0 commit comments

Comments
 (0)