提交 10c3e9d2 编写于 作者: M Matt Bierner

Strict null work for exthost

上级 e4358ff2
......@@ -63,7 +63,7 @@ export class ExtHostDocumentSaveParticipant implements ExtHostDocumentSavePartic
return undefined;
}
const document = this._documents.getDocumentData(resource).document;
const document = this._documents.getDocument(resource);
return this._deliverEventAsyncAndBlameBadListeners(listener, <any>{ document, reason: TextDocumentSaveReason.to(reason) });
};
}));
......
......@@ -812,7 +812,7 @@ export namespace DocumentLink {
}
export function to(link: modes.ILink): vscode.DocumentLink {
let target = undefined;
let target: URI | undefined = undefined;
if (link.url) {
try {
target = typeof link.url === 'string' ? URI.parse(link.url, true) : URI.revive(link.url);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册