mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
Comment provider with correct registration and dispose.
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user