mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
workarounds for #16819 - TS2.1 compiler issues
This commit is contained in:
@@ -107,6 +107,6 @@ export class ExtHostConfiguration extends ExtHostConfigurationShape {
|
||||
mixin(result, config, false);
|
||||
}
|
||||
|
||||
return Object.freeze(result);
|
||||
return <WorkspaceConfiguration>Object.freeze(result);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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