Strict null work for exthost

This commit is contained in:
Matt Bierner
2019-02-14 12:54:23 -08:00
parent e4358ff2fb
commit 10c3e9d285
2 changed files with 2 additions and 2 deletions

View File

@@ -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) });
};
}));

View File

@@ -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);