description:localize('vscode.extension.contributes.labels.prefix','URI prefix on which to match the rules on. For example file:///myFolder'),
description:localize('vscode.extension.contributes.resourceLabelFormatters.scheme','URI scheme on which to match the formatter on. For example "file". Simple glob patterns are supported.'),
},
uri:{
description:localize('vscode.extension.contributes.labels.uri',"Rules for formatting uri resource labels."),
authority:{
type:'string',
description:localize('vscode.extension.contributes.resourceLabelFormatters.authority','URI authority on which to match the formatter on. Simple glob patterns are supported.'),
},
formatting:{
description:localize('vscode.extension.contributes.resourceLabelFormatters.formatting',"Rules for formatting uri resource labels."),
type:'object',
properties:{
label:{
type:'string',
description:localize('vscode.extension.contributes.labels.uri.label',"Label rules to display. For example: myLabel:/${path}. ${path}, ${scheme} and ${authority} are supported as variables.")
description:localize('vscode.extension.contributes.resourceLabelFormatters.label',"Label rules to display. For example: myLabel:/${path}. ${path}, ${scheme} and ${authority} are supported as variables.")
},
separator:{
type:'string',
description:localize('vscode.extension.contributes.labels.uri.separator',"Separator to be used in the uri label display. '/' or '\' as an example.")
description:localize('vscode.extension.contributes.resourceLabelFormatters.separator',"Separator to be used in the uri label display. '/' or '\' as an example.")
},
tildify:{
type:'boolean',
description:localize('vscode.extension.contributes.labels.uri.tildify',"Controls if the start of the uri label should be tildified when possible.")
description:localize('vscode.extension.contributes.resourceLabelFormatters.tildify',"Controls if the start of the uri label should be tildified when possible.")
},
normalizeDriveLetter:{
type:'boolean',
description:localize('vscode.extension.contributes.labels.uri.normalizeDriveLetter',"Controls if the drive letters should be upper cased.")
}
}
},
workspace:{
description:localize('vscode.extension.contributes.labels.workspace',"Rules for formatting workspace labels."),
type:'object',
properties:{
suffix:{
workspaceSuffix:{
type:'string',
description:localize('vscode.extension.contributes.labels.workspace.suffix',"Suffix appended to the workspace label.")
description:localize('vscode.extension.contributes.resourceLabelFormatters.formatting.workspaceSuffix',"Suffix appended to the workspace label.")
}
}
},
}
}
}
}
...
...
@@ -86,7 +77,7 @@ function hasDriveLetter(path: string): boolean {