mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
null check
This commit is contained in:
@@ -73,7 +73,7 @@ export class ExtHostComments implements ExtHostCommentsShape {
|
||||
let provider = this._documentProviders.get(handle);
|
||||
return provider.provideDocumentComments(data.document, token);
|
||||
})
|
||||
.then(commentInfo => convertCommentInfo(handle, commentInfo, this._commandsConverter));
|
||||
.then(commentInfo => commentInfo ? convertCommentInfo(handle, commentInfo, this._commandsConverter) : null);
|
||||
}
|
||||
|
||||
$provideWorkspaceComments(handle: number): TPromise<modes.CommentThread[]> {
|
||||
|
||||
Reference in New Issue
Block a user