-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web variable viewer #10154
Web variable viewer #10154
Conversation
// Allow js and js.map files to be loaded by webpack in the webview. | ||
testFiles | ||
.filter((f) => f.fsPath.toLowerCase().endsWith('.js') || f.fsPath.toLowerCase().endsWith('.js.map')) | ||
.forEach((f) => this.webviewHost?.webview!.asWebviewUri(f)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testFiles
fails to be read in the browser. vscfs.readDirectory
throws saying that this.options.rootPath
(the webview-side/viewers
directory) isn't a directory.
It could be something with the path, but this doesn't seem needed.
(I've asked @rchiodo , but please let me know if I misinterpreted anything)
const proxy = workspaceService.getConfiguration('http').get('proxy', ''); | ||
if (proxy) { | ||
this.requestOptions = { headers: { proxy: workspaceService.getConfiguration('http').get('proxy', '') } }; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default, the code here used to mean that requestOptions was { headers: { proxy: '' } }
which makes request fail in the browser.
Codecov Report
@@ Coverage Diff @@
## main #10154 +/- ##
=====================================
- Coverage 60% 60% -1%
=====================================
Files 203 203
Lines 9236 9241 +5
Branches 1490 1492 +2
=====================================
- Hits 5632 5628 -4
- Misses 3129 3136 +7
- Partials 475 477 +2
|
It's working!
Feedback always appreciated 🙏
Fixes #9664