mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 09:35:37 -05:00
Merge from vscode 3a6dcb42008d509900b3a3b2d695564eeb4dbdac (#5098)
This commit is contained in:
@@ -184,6 +184,12 @@ export class MainThreadCommentThread implements modes.CommentThread2 {
|
||||
private _onDidChangeCollasibleState = new Emitter<modes.CommentThreadCollapsibleState | undefined>();
|
||||
public onDidChangeCollasibleState = this._onDidChangeCollasibleState.event;
|
||||
|
||||
private _isDisposed: boolean;
|
||||
|
||||
get isDisposed(): boolean {
|
||||
return this._isDisposed;
|
||||
}
|
||||
|
||||
constructor(
|
||||
public commentThreadHandle: number,
|
||||
public controller: MainThreadCommentController,
|
||||
@@ -191,7 +197,9 @@ export class MainThreadCommentThread implements modes.CommentThread2 {
|
||||
public threadId: string,
|
||||
public resource: string,
|
||||
private _range: IRange
|
||||
) { }
|
||||
) {
|
||||
this._isDisposed = false;
|
||||
}
|
||||
|
||||
batchUpdate(
|
||||
range: IRange,
|
||||
@@ -210,7 +218,16 @@ export class MainThreadCommentThread implements modes.CommentThread2 {
|
||||
this._collapsibleState = collapsibleState;
|
||||
}
|
||||
|
||||
dispose() { }
|
||||
dispose() {
|
||||
this._isDisposed = true;
|
||||
this._onDidChangeAcceptInputCommand.dispose();
|
||||
this._onDidChangeAdditionalCommands.dispose();
|
||||
this._onDidChangeCollasibleState.dispose();
|
||||
this._onDidChangeComments.dispose();
|
||||
this._onDidChangeInput.dispose();
|
||||
this._onDidChangeLabel.dispose();
|
||||
this._onDidChangeRange.dispose();
|
||||
}
|
||||
|
||||
toJSON(): any {
|
||||
return {
|
||||
@@ -493,6 +510,8 @@ export class MainThreadComments extends Disposable implements MainThreadComments
|
||||
return undefined;
|
||||
}
|
||||
|
||||
console.log('createCommentThread', commentThreadHandle);
|
||||
|
||||
return provider.createCommentThread(commentThreadHandle, threadId, resource, range);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user