Skip to content

Commit a82f682

Browse files
authored
fix: issue with cps running vscode in dev (#2217)
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Fixes CSP issue in `WebviewPanelHost.ts` and adds `baml.enablePlaygroundProxy` setting to `root.code-workspace`. > > - **Behavior**: > - Removes CSP meta tag from HTML in `WebviewPanelHost.ts` to address CSP issues when running in VSCode. > - Adds `baml.enablePlaygroundProxy` setting to `root.code-workspace` to control proxy usage. > - **Misc**: > - Minor configuration changes in `root.code-workspace`. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup> for 17952e1. You can [customize](https://app.ellipsis.dev/BoundaryML/settings/summaries) this summary. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
1 parent c5a9cbc commit a82f682

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

root.code-workspace

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@
143143
"twx\\(.*?\\).*?`([^`]*)",
144144
["twx\\.[^`]+\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"],
145145
["twx\\(.*?\\).*?\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]
146-
]
146+
],
147+
"baml.enablePlaygroundProxy": false
147148
},
148149
"extensions": {
149150
"recommendations": [

typescript/apps/vscode-ext/src/panels/WebviewPanelHost.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ export class WebviewPanelHost {
257257
<head>
258258
<meta charset="UTF-8" />
259259
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
260-
<meta http-equiv="Content-Security-Policy" content="${csp.join('; ')}">
261260
<link rel="stylesheet" type="text/css" href="${stylesUri}">
262261
<title>BAML Playground</title>
263262
<style>

0 commit comments

Comments
 (0)