File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 4545 "name" : " Test"
4646 }
4747 ]
48- }
48+ },
49+ "viewsWelcome" : [
50+ {
51+ "view" : " metrics-file" ,
52+ "contents" : " View tree to see where improvements can be made!\n [View Tree](command:myExtension.showPanel)\n "
53+ }
54+ ]
4955 },
5056 "scripts" : {
5157 "lint" : " eslint ." ,
Original file line number Diff line number Diff line change @@ -8,16 +8,18 @@ function createPanel(context) {
88 // create one new tab
99 vscode . ViewColumn . One ,
1010 {
11- enableScripts : true
11+ enableScripts : true ,
12+ retainContextWhenHidden : true
1213 }
1314 ) ;
1415
16+ panel . iconPath = vscode . Uri . joinPath ( context . extensionUri , 'media' , 'favicon.ico' ) ;
17+
1518 const bundlePath = vscode . Uri . joinPath ( context . extensionUri , 'build' , 'bundle.js' ) ;
1619
1720 // set webview URI to pass into html script
1821 const bundleURI = panel . webview . asWebviewUri ( bundlePath ) ;
1922
20-
2123 // render html of webview here
2224 panel . webview . html = createWebviewHTML ( bundleURI ) ;
2325}
You can’t perform that action at this time.
0 commit comments