mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
@@ -60,7 +60,7 @@ export interface IEnvironment {
|
||||
globalStorageHome: URI;
|
||||
userHome: URI;
|
||||
webviewResourceRoot: string;
|
||||
webviewCspRule: string;
|
||||
webviewCspSource: string;
|
||||
}
|
||||
|
||||
export interface IStaticWorkspaceData {
|
||||
|
||||
@@ -69,8 +69,8 @@ export class ExtHostEditorInsets implements ExtHostEditorInsetsShape {
|
||||
return toWebviewResource(that._initData, this._uuid, resource);
|
||||
}
|
||||
|
||||
get cspRule(): string {
|
||||
return that._initData.webviewCspRule;
|
||||
get cspSource(): string {
|
||||
return that._initData.webviewCspSource;
|
||||
}
|
||||
|
||||
set options(value: vscode.WebviewOptions) {
|
||||
|
||||
@@ -41,8 +41,8 @@ export class ExtHostWebview implements vscode.Webview {
|
||||
return toWebviewResource(this._initData, this._uuid, resource);
|
||||
}
|
||||
|
||||
public get cspRule(): string {
|
||||
return this._initData.webviewCspRule;
|
||||
public get cspSource(): string {
|
||||
return this._initData.webviewCspSource;
|
||||
}
|
||||
|
||||
public get html(): string {
|
||||
|
||||
@@ -8,7 +8,7 @@ import * as vscode from 'vscode';
|
||||
|
||||
export interface WebviewInitData {
|
||||
readonly webviewResourceRoot: string;
|
||||
readonly webviewCspRule: string;
|
||||
readonly webviewCspSource: string;
|
||||
}
|
||||
|
||||
export function toWebviewResource(
|
||||
|
||||
Reference in New Issue
Block a user