mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
workarounds for #16819 - TS2.1 compiler issues
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user