forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.tsx
More file actions
22 lines (17 loc) · 784 Bytes
/
index.tsx
File metadata and controls
22 lines (17 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import './index.css';
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { IVsCodeApi } from '../react-common/postOffice';
import { detectBaseTheme } from '../react-common/themeDetector';
import { MainPanel } from './mainPanel';
// This special function talks to vscode from a web panel
export declare function acquireVsCodeApi(): IVsCodeApi;
const baseTheme = detectBaseTheme();
// tslint:disable:no-typeof-undefined
ReactDOM.render(
<MainPanel baseTheme={baseTheme} skipDefault={typeof acquireVsCodeApi !== 'undefined'}/>, // Turn this back off when we have real variable explorer data
document.getElementById('root') as HTMLElement
);