import * as vscode from 'vscode';
import { DevChatViewProvider } from '../panel/devchatView';
import { ExtensionContextHolder } from '../util/extensionContext';


export function regDevChatView(context: vscode.ExtensionContext) {
	ExtensionContextHolder.provider = new DevChatViewProvider(context);
	context.subscriptions.push(
		vscode.window.registerWebviewViewProvider('devchat-view', ExtensionContextHolder.provider, {
			webviewOptions: { retainContextWhenHidden: true }
		})
	);
}
