forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebPanelProvider.ts
More file actions
20 lines (17 loc) · 899 Bytes
/
webPanelProvider.ts
File metadata and controls
20 lines (17 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { inject, injectable } from 'inversify';
import { ViewColumn } from 'vscode';
import { IServiceContainer } from '../../ioc/types';
import { IWebPanel, IWebPanelMessageListener, IWebPanelProvider } from './types';
import { WebPanel } from './webPanel';
@injectable()
export class WebPanelProvider implements IWebPanelProvider {
constructor(@inject(IServiceContainer) private serviceContainer: IServiceContainer) {
}
// tslint:disable-next-line:no-any
public create(viewColumn: ViewColumn, listener: IWebPanelMessageListener, title: string, mainScriptPath: string, embeddedCss?: string, settings?: any) : IWebPanel {
return new WebPanel(viewColumn, this.serviceContainer, listener, title, mainScriptPath, embeddedCss, settings);
}
}