mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 17:23:05 -05:00
Merge from vscode a348d103d1256a06a2c9b3f9b406298a9fef6898 (#15681)
* Merge from vscode a348d103d1256a06a2c9b3f9b406298a9fef6898 * Fixes and cleanup * Distro * Fix hygiene yarn * delete no yarn lock changes file * Fix hygiene * Fix layer check * Fix CI * Skip lib checks * Remove tests deleted in vs code * Fix tests * Distro * Fix tests and add removed extension point * Skip failing notebook tests for now * Disable broken tests and cleanup build folder * Update yarn.lock and fix smoke tests * Bump sqlite * fix contributed actions and file spacing * Fix user data path * Update yarn.locks Co-authored-by: ADS Merger <karlb@microsoft.com>
This commit is contained in:
@@ -37,6 +37,9 @@ export class SimpleBrowserView extends Disposable {
|
||||
}, {
|
||||
enableScripts: true,
|
||||
retainContextWhenHidden: true,
|
||||
localResourceRoots: [
|
||||
vscode.Uri.joinPath(extensionUri, 'media')
|
||||
]
|
||||
}));
|
||||
|
||||
this._register(this._webviewPanel.webview.onDidReceiveMessage(e => {
|
||||
@@ -69,7 +72,7 @@ export class SimpleBrowserView extends Disposable {
|
||||
this.show(url);
|
||||
}
|
||||
|
||||
public dispose() {
|
||||
public override dispose() {
|
||||
this._onDidDispose.fire();
|
||||
super.dispose();
|
||||
}
|
||||
@@ -86,8 +89,7 @@ export class SimpleBrowserView extends Disposable {
|
||||
|
||||
const mainJs = this.extensionResourceUrl('media', 'index.js');
|
||||
const mainCss = this.extensionResourceUrl('media', 'main.css');
|
||||
const codiconsUri = this.extensionResourceUrl('node_modules', 'vscode-codicons', 'dist', 'codicon.css');
|
||||
const codiconsFontUri = this.extensionResourceUrl('node_modules', 'vscode-codicons', 'dist', 'codicon.ttf');
|
||||
const codiconsUri = this.extensionResourceUrl('media', 'codicon.css');
|
||||
|
||||
return /* html */ `<!DOCTYPE html>
|
||||
<html>
|
||||
@@ -96,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 *;
|
||||
@@ -126,7 +128,7 @@ export class SimpleBrowserView extends Disposable {
|
||||
class="reload-button icon"><i class="codicon codicon-refresh"></i></button>
|
||||
</nav>
|
||||
|
||||
<input class="url-input" type="text" value=${url}>
|
||||
<input class="url-input" type="text">
|
||||
|
||||
<nav class="controls">
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user