提交 499a6480 编写于 作者: K kieferrm

workarounds for #16819 - TS2.1 compiler issues

上级 e9b68079
...@@ -124,7 +124,7 @@ export class Scanner { ...@@ -124,7 +124,7 @@ export class Scanner {
export abstract class Marker { export abstract class Marker {
_markerBrand: any; _markerBrand: any;
static toString(marker: Marker[]): string { static toString(marker?: Marker[]): string {
let result = ''; let result = '';
for (const m of marker) { for (const m of marker) {
result += m.toString(); result += m.toString();
......
...@@ -107,6 +107,6 @@ export class ExtHostConfiguration extends ExtHostConfigurationShape { ...@@ -107,6 +107,6 @@ export class ExtHostConfiguration extends ExtHostConfigurationShape {
mixin(result, config, false); mixin(result, config, false);
} }
return Object.freeze(result); return <WorkspaceConfiguration>Object.freeze(result);
} }
} }
...@@ -166,7 +166,7 @@ export class DiagnosticCollection implements vscode.DiagnosticCollection { ...@@ -166,7 +166,7 @@ export class DiagnosticCollection implements vscode.DiagnosticCollection {
this._checkDisposed(); this._checkDisposed();
let result = this._data[uri.toString()]; let result = this._data[uri.toString()];
if (Array.isArray(result)) { if (Array.isArray(result)) {
return Object.freeze(result.slice(0)); return <vscode.Diagnostic[]>Object.freeze(result.slice(0));
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册