Use clearer name for csp webview element

#76489
This commit is contained in:
Matt Bierner
2019-07-09 11:31:03 -07:00
parent f963c9a2a8
commit c01a3a718d
14 changed files with 18 additions and 18 deletions

View File

@@ -60,7 +60,7 @@ export interface IEnvironment {
globalStorageHome: URI;
userHome: URI;
webviewResourceRoot: string;
webviewCspRule: string;
webviewCspSource: string;
}
export interface IStaticWorkspaceData {

View File

@@ -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) {

View File

@@ -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 {

View File

@@ -8,7 +8,7 @@ import * as vscode from 'vscode';
export interface WebviewInitData {
readonly webviewResourceRoot: string;
readonly webviewCspRule: string;
readonly webviewCspSource: string;
}
export function toWebviewResource(