Make sure asWebviewUri also handles replacing commit

This commit is contained in:
Matt Bierner
2019-09-12 16:07:02 -07:00
parent f22a2b8143
commit 54ac29790e
2 changed files with 6 additions and 3 deletions

View File

@@ -40,7 +40,9 @@ export class ExtHostWebview implements vscode.Webview {
}
public get cspSource(): string {
return this._initData.webviewCspSource.replace('{{uuid}}', this._handle);
return this._initData.webviewCspSource
.replace('{{uuid}}', this._handle)
.replace('{{commit}}', this._initData.commit || '211fa02efe8c041fd7baa8ec3dce199d5185aa44');
}
public get html(): string {