Skip to content

Commit 75448fe

Browse files
committed
In ShowComponentHierarchy, changed output path for the temporary html and javascript
1 parent ed01a35 commit 75448fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/commands/showComponentHierarchy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ export class ShowComponentHierarchy {
112112
const outputJsFilename = 'showComponentHierarchy.js';
113113
let htmlContent = this.generateHtmlContent(webview, outputJsFilename);
114114

115-
this.fsUtils.writeFile(this.extensionContext?.asAbsolutePath(path.join('src', 'commands', 'showComponentHierarchy.html')), htmlContent, () => { }); // For debugging
115+
this.fsUtils.writeFile(this.extensionContext?.asAbsolutePath(path.join('out', 'showComponentHierarchy.html')), htmlContent, () => { }); // For debugging
116116
this.fsUtils.writeFile(
117-
this.extensionContext?.asAbsolutePath(path.join('src', 'commands', outputJsFilename)),
117+
this.extensionContext?.asAbsolutePath(path.join('out', outputJsFilename)),
118118
jsContent,
119119
() => {
120120
webview.html = htmlContent;
@@ -261,7 +261,7 @@ export class ShowComponentHierarchy {
261261
htmlContent = htmlContent.replace(/<script /g, `<script nonce="${nonce}" `);
262262
htmlContent = htmlContent.replace('cspSource', webview.cspSource);
263263

264-
const jsPath = vscode.Uri.joinPath(this.extensionContext.extensionUri, 'src', 'commands', outputJsFilename);
264+
const jsPath = vscode.Uri.joinPath(this.extensionContext.extensionUri, 'out', outputJsFilename);
265265
const jsUri = webview.asWebviewUri(jsPath);
266266
htmlContent = htmlContent.replace('showComponentHierarchy.js', jsUri.toString());
267267
return htmlContent;

0 commit comments

Comments
 (0)