Add resource hint API for commenting range provider (#206444)

Part of #185551
This commit is contained in:
Alex Ross
2024-02-28 16:01:25 +01:00
committed by GitHub
parent 4a050aaac8
commit 85a26649de
8 changed files with 70 additions and 17 deletions

View File

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