This commit is contained in:
Benjamin Pasero
2022-04-27 13:03:47 +02:00
committed by GitHub
parent 9219c076f2
commit 0425f27e47
2 changed files with 21 additions and 5 deletions

View File

@@ -177,10 +177,11 @@ export class LabelService extends Disposable implements ILabelService {
if (!formatting) {
// Without a formatter we have to fallback to figuring out what the
// label could be given the environment. For that we convert the
// given resource to the default scheme and remote authority that
// is present in an attempt to e.g. resolve a proper relative path
// if that is needed.
// label could be that best matches the environment and workspace
// the user is in.
// As such, we convert the given resource to the default scheme and
// remote authority that is present in an attempt to e.g. resolve a
// proper relative path if that is needed.
const defaultResource = toLocalResource(resource, this.environmentService.remoteAuthority, this.pathService.defaultUriScheme);