simpler, but less clean fix for #12111

This commit is contained in:
Johannes Rieken
2016-09-29 16:07:30 +02:00
parent 2a388da352
commit 35540a82a4
6 changed files with 62 additions and 15 deletions

View File

@@ -163,7 +163,7 @@ class TextEditorDecorationType implements vscode.TextEditorDecorationType {
constructor(proxy: MainThreadEditorsShape, options: vscode.DecorationRenderOptions) {
this.key = TextEditorDecorationType._Keys.nextId();
this._proxy = proxy;
this._proxy.$registerTextEditorDecorationType(this.key, options);
this._proxy.$registerTextEditorDecorationType(this.key, <any>/* URI vs Uri */ options);
}
public dispose(): void {

View File

@@ -143,7 +143,7 @@ export function fromRangeOrRangeWithMessage(ranges: vscode.Range[] | vscode.Deco
return {
range: fromRange(r.range),
hoverMessage: r.hoverMessage,
renderOptions: r.renderOptions
renderOptions: <any> /* URI vs Uri */r.renderOptions
};
});
} else {