debt - remove lib.array-ext.d.ts and support Array.includes (fix #102566) (#105404)

This commit is contained in:
Benjamin Pasero
2020-08-26 13:07:30 +02:00
committed by GitHub
parent 0681925277
commit f922e8b757
8 changed files with 9 additions and 20 deletions

View File

@@ -1120,7 +1120,7 @@ class ColorProviderAdapter {
provideColors(resource: URI, token: CancellationToken): Promise<extHostProtocol.IRawColorInfo[]> {
const doc = this._documents.getDocument(resource);
return asPromise(() => this._provider.provideDocumentColors(doc, token)).then(colors => {
if (!Array.isArray<vscode.ColorInformation>(colors)) {
if (!Array.isArray(colors)) {
return [];
}