Comment provider with correct registration and dispose.

This commit is contained in:
Peng Lyu
2018-04-11 19:05:31 -07:00
parent 05716c1812
commit 54a7a3ac33
6 changed files with 276 additions and 257 deletions

View File

@@ -57,10 +57,7 @@ export class ExtHostComments implements ExtHostCommentsShape {
return asWinJsPromise(token => {
let provider = this._providers.get(handle);
return provider.provideComments(data.document, token);
// const allProviderResults = values(this._providers).map(provider => provider.provideComments(data.document, token));
// return TPromise.join(allProviderResults);
})
// .then(flatten)
.then(comments => comments.map(x => convertCommentThread(x, this._commandsConverter)));
}
}