Skip to content

Commit b42864c

Browse files
authored
fix: scm module support chinese title #2977 (#3219)
1 parent bec0669 commit b42864c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/scm/src/browser/scm-util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function getSCMResourceGroupContextValue(resource: ISCMResourceGroup | IS
2121

2222
export function getSCMRepositoryDesc(repository: ISCMRepository) {
2323
const hasRootUri = repository.provider.rootUri;
24-
const title = hasRootUri ? basename(repository.provider.rootUri!.toString()) : repository.provider.label;
24+
const title = hasRootUri ? basename(repository.provider.rootUri.path) : repository.provider.label;
2525

2626
const type = hasRootUri ? repository.provider.label : '';
2727

0 commit comments

Comments
 (0)