chore(vscode): update to 1.56.0
This commit is contained in:
BIN
lib/vscode/extensions/simple-browser/media/icon.png
Normal file
BIN
lib/vscode/extensions/simple-browser/media/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
@ -4,7 +4,7 @@
|
||||
"description": "%description%",
|
||||
"enableProposedApi": true,
|
||||
"version": "1.0.0",
|
||||
"icon": "icon.png",
|
||||
"icon": "media/icon.png",
|
||||
"publisher": "vscode",
|
||||
"license": "MIT",
|
||||
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
|
||||
@ -27,6 +27,12 @@
|
||||
"onOpenExternalUri:http",
|
||||
"onOpenExternalUri:https"
|
||||
],
|
||||
"capabilities": {
|
||||
"virtualWorkspaces": true,
|
||||
"untrustedWorkspaces": {
|
||||
"supported": true
|
||||
}
|
||||
},
|
||||
"contributes": {
|
||||
"commands": [
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "../../shared.tsconfig.json",
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist/",
|
||||
"jsx": "react",
|
||||
|
@ -16,7 +16,16 @@ const showCommand = 'simpleBrowser.show';
|
||||
|
||||
const enabledHosts = new Set<string>([
|
||||
'localhost',
|
||||
'127.0.0.1'
|
||||
// localhost IPv4
|
||||
'127.0.0.1',
|
||||
// localhost IPv6
|
||||
'0:0:0:0:0:0:0:1',
|
||||
'::1',
|
||||
// all interfaces IPv4
|
||||
'0.0.0.0',
|
||||
// all interfaces IPv6
|
||||
'0:0:0:0:0:0:0:0',
|
||||
'::'
|
||||
]);
|
||||
|
||||
const openerId = 'simpleBrowser.open';
|
||||
|
@ -72,7 +72,7 @@ export class SimpleBrowserView extends Disposable {
|
||||
this.show(url);
|
||||
}
|
||||
|
||||
public dispose() {
|
||||
public override dispose() {
|
||||
this._onDidDispose.fire();
|
||||
super.dispose();
|
||||
}
|
||||
@ -90,7 +90,6 @@ export class SimpleBrowserView extends Disposable {
|
||||
const mainJs = this.extensionResourceUrl('media', 'index.js');
|
||||
const mainCss = this.extensionResourceUrl('media', 'main.css');
|
||||
const codiconsUri = this.extensionResourceUrl('media', 'codicon.css');
|
||||
const codiconsFontUri = this.extensionResourceUrl('media', 'codicon.ttf');
|
||||
|
||||
return /* html */ `<!DOCTYPE html>
|
||||
<html>
|
||||
@ -99,7 +98,7 @@ export class SimpleBrowserView extends Disposable {
|
||||
|
||||
<meta http-equiv="Content-Security-Policy" content="
|
||||
default-src 'none';
|
||||
font-src ${codiconsFontUri};
|
||||
font-src ${this._webviewPanel.webview.cspSource};
|
||||
style-src ${this._webviewPanel.webview.cspSource};
|
||||
script-src 'nonce-${nonce}';
|
||||
frame-src *;
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "../shared.tsconfig.json",
|
||||
"extends": "../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./out",
|
||||
"experimentalDecorators": true
|
||||
|
Reference in New Issue
Block a user