-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat: Search + Explain with Navie #845
Conversation
1b459e3
to
6985899
Compare
2b62cec
to
f178f84
Compare
f178f84
to
af2db3f
Compare
@@ -28,12 +29,6 @@ export default function getWebviewContent( | |||
<head> | |||
<meta charset="UTF-8"> | |||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |||
<meta http-equiv="Content-Security-Policy" content=" |
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.
@dividedmind as our resident security person, and I think you added this initially, why was this added? We need to allow the UI to invoke JSON-RPC to our services.
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.
This is to prevent the webview content from being coerced to load external resources, which could cause data leak or worse. I don't think it's a good idea to remove this altogether; instead a directive like connect-src http://localhost:12345;
should be added. Although ideally I think the UI shouldn't talk to the services directly at all; instead the extension should intermediate.
62c0170
to
a0a7631
Compare
On code selection, provide a 'Search AppMaps' "Code Action" aka lightbulb action. Normalize the user's text selection and make an RPC to the AppMap search provider. Display the search results in VSCode.
Use webview
06f20d6
to
084fcab
Compare
See #859 |
No description provided.