Update comment range

This commit is contained in:
Peng Lyu
2019-03-01 10:06:37 -08:00
parent 804373ac4d
commit 15d782f4a4
5 changed files with 47 additions and 1 deletions

View File

@@ -129,6 +129,7 @@ export interface MainThreadCommentsShape extends IDisposable {
$updateCommentingRangesCommands(handle: number, commentingRangesHandle: number, command: modes.Command): void;
$setInputValue(handle: number, commentThreadHandle: number, input: string): void;
$updateCommentThreadCommands(handle: number, commentThreadHandle: number, acceptInputCommands: modes.Command[]): void;
$updateCommentThreadRange(handle: number, commentThreadHandle: number, range: IRange): void;
$registerDocumentCommentProvider(handle: number, features: CommentProviderFeatures): void;
$unregisterDocumentCommentProvider(handle: number): void;
$registerWorkspaceCommentProvider(handle: number, extensionId: ExtensionIdentifier): void;

View File

@@ -295,6 +295,11 @@ export class ExtHostCommentThread implements vscode.CommentThread {
return this._resource;
}
set range(range: vscode.Range) {
this._range = range;
this._proxy.$updateCommentThreadRange(this._commentControlHandle, this.handle, extHostTypeConverter.Range.from(this._range));
}
get range(): vscode.Range {
return this._range;
}