workarounds for #16819 - TS2.1 compiler issues

This commit is contained in:
kieferrm
2016-12-07 16:57:43 -08:00
parent e9b68079a9
commit 499a648057
3 changed files with 3 additions and 3 deletions

View File

@@ -166,7 +166,7 @@ export class DiagnosticCollection implements vscode.DiagnosticCollection {
this._checkDisposed();
let result = this._data[uri.toString()];
if (Array.isArray(result)) {
return Object.freeze(result.slice(0));
return <vscode.Diagnostic[]>Object.freeze(result.slice(0));
}
}