mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
refactor
This commit is contained in:
@@ -19,7 +19,6 @@ import { ICommentService } from 'vs/workbench/services/comments/electron-browser
|
||||
import { COMMENTS_PANEL_ID } from 'vs/workbench/parts/comments/electron-browser/commentsPanel';
|
||||
import { IPanelService } from 'vs/workbench/services/panel/common/panelService';
|
||||
import URI from 'vs/base/common/uri';
|
||||
import { IRange } from 'vs/editor/common/core/range';
|
||||
import { ITextModel } from 'vs/editor/common/model';
|
||||
|
||||
@extHostNamedCustomer(MainContext.MainThreadComments)
|
||||
@@ -93,7 +92,10 @@ export class MainThreadComments extends Disposable implements MainThreadComments
|
||||
async provideNewCommentRange(model: ITextModel): Promise<modes.NewCommentAction[]> {
|
||||
const result: modes.NewCommentAction[] = [];
|
||||
for (const handle of keys(this._providers)) {
|
||||
result.push(await this._proxy.$provideNewCommentRange(handle, model.uri));
|
||||
let newCommentRange = await this._proxy.$provideNewCommentRange(handle, model.uri);
|
||||
if (newCommentRange) {
|
||||
result.push(newCommentRange);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user