Skip to content

Commit

Permalink
Fix loading UI (#11486)
Browse files Browse the repository at this point in the history
  • Loading branch information
michelleangela authored Sep 29, 2023
1 parent 1bde544 commit 68c7be9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Extension/src/LanguageServer/settingsPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class SettingsPanel {
localResourceRoots: [
vscode.Uri.file(util.extensionPath),
vscode.Uri.file(path.join(util.extensionPath, 'ui')),
vscode.Uri.file(path.join(util.extensionPath, 'out', 'ui'))]
vscode.Uri.file(path.join(util.extensionPath, 'dist', 'ui'))]
}
);

Expand Down Expand Up @@ -389,7 +389,7 @@ export class SettingsPanel {
content = content.replace(
/{{cpp_image_uri}}/g,
cppImageUri.toString());
const settingsJsUri: vscode.Uri = this.panel.webview.asWebviewUri(vscode.Uri.file(path.join(util.extensionPath, 'out/ui/settings.js')));
const settingsJsUri: vscode.Uri = this.panel.webview.asWebviewUri(vscode.Uri.file(path.join(util.extensionPath, 'dist/ui/settings.js')));
content = content.replace(
/{{settings_js_uri}}/g,
settingsJsUri.toString());
Expand Down
3 changes: 2 additions & 1 deletion Extension/ui/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,4 +389,5 @@ class SettingsApp {
}
}

export const app: SettingsApp = new SettingsApp();
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const app: SettingsApp = new SettingsApp();

0 comments on commit 68c7be9

Please sign in to comment.