提交 ae6677bc 编写于 作者: J Joao Moreno

contextview: logs

related to #41680
上级 64b699b5
......@@ -8,6 +8,7 @@ import { IContextViewService, IContextViewDelegate } from './contextView';
import { ContextView } from 'vs/base/browser/ui/contextview/contextview';
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
import { IMessageService } from 'vs/platform/message/common/message';
import { ILogService } from 'vs/platform/log/common/log';
export class ContextViewService implements IContextViewService {
public _serviceBrand: any;
......@@ -17,7 +18,8 @@ export class ContextViewService implements IContextViewService {
constructor(
container: HTMLElement,
@ITelemetryService telemetryService: ITelemetryService,
@IMessageService messageService: IMessageService
@IMessageService messageService: IMessageService,
@ILogService private logService: ILogService
) {
this.contextView = new ContextView(container);
}
......@@ -29,10 +31,12 @@ export class ContextViewService implements IContextViewService {
// ContextView
public setContainer(container: HTMLElement): void {
this.logService.trace('ContextViewService#setContainer');
this.contextView.setContainer(container);
}
public showContextView(delegate: IContextViewDelegate): void {
this.logService.trace('ContextViewService#showContextView');
this.contextView.show(delegate);
}
......@@ -41,6 +45,7 @@ export class ContextViewService implements IContextViewService {
}
public hideContextView(data?: any): void {
this.logService.trace('ContextViewService#hideContextView');
this.contextView.hide(data);
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册