mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
Add resource hint API for commenting range provider (#206444)
Part of #185551
This commit is contained in:
@@ -565,7 +565,10 @@ export function createExtHostComments(mainContext: IMainContext, commands: ExtHo
|
||||
|
||||
set commentingRangeProvider(provider: vscode.CommentingRangeProvider | undefined) {
|
||||
this._commentingRangeProvider = provider;
|
||||
proxy.$updateCommentingRanges(this.handle);
|
||||
if (provider?.resourceHints) {
|
||||
checkProposedApiEnabled(this._extension, 'commentingRangeHint');
|
||||
}
|
||||
proxy.$updateCommentingRanges(this.handle, provider?.resourceHints);
|
||||
}
|
||||
|
||||
private _reactionHandler?: ReactionHandler;
|
||||
|
||||
Reference in New Issue
Block a user