Finalize TreeItemLabel API

Fixes #61579
This commit is contained in:
Alex Ross
2020-11-12 15:58:19 +01:00
parent 5758f6fcd4
commit b785be4c73
3 changed files with 18 additions and 24 deletions

View File

@@ -33,7 +33,6 @@ function toTreeItemLabel(label: any, extension: IExtensionDescription): ITreeIte
if (label
&& typeof label === 'object'
&& typeof label.label === 'string') {
checkProposedApiEnabled(extension);
let highlights: [number, number][] | undefined = undefined;
if (Array.isArray(label.highlights)) {
highlights = (<[number, number][]>label.highlights).filter((highlight => highlight.length === 2 && typeof highlight[0] === 'number' && typeof highlight[1] === 'number'));