mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
Potential new formatter for userdata in serverless. (#114296)
* Potential new formatter for userdata in serverless. Fixes #114234. * Move userData formatter to userDataInit Allow `priority` for fomratters without authorities * Move formatting to web.main.ts * Remove priority
This commit is contained in:
@@ -112,7 +112,7 @@ export class LabelService extends Disposable implements ILabelService {
|
||||
|
||||
this.formatters.forEach(formatter => {
|
||||
if (formatter.scheme === resource.scheme) {
|
||||
if (!bestResult && !formatter.authority) {
|
||||
if (!formatter.authority && (!bestResult || formatter.priority)) {
|
||||
bestResult = formatter;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user