mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
move view container registry api into view descriptor service
This commit is contained in:
@@ -378,7 +378,7 @@ export class MainThreadComments extends Disposable implements MainThreadComments
|
||||
this._commentService.registerCommentController(providerId, provider);
|
||||
this._commentControllers.set(handle, provider);
|
||||
|
||||
const commentsPanelAlreadyConstructed = !!this._viewDescriptorService.getViewDescriptor(COMMENTS_VIEW_ID);
|
||||
const commentsPanelAlreadyConstructed = !!this._viewDescriptorService.getViewDescriptorById(COMMENTS_VIEW_ID);
|
||||
if (!commentsPanelAlreadyConstructed) {
|
||||
this.registerView(commentsPanelAlreadyConstructed);
|
||||
this.registerViewOpenedListener(commentsPanelAlreadyConstructed);
|
||||
|
||||
Reference in New Issue
Block a user