Skip to content
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

Permit usage of javaagent (no prompt) if resource not in workspace #2087

Merged
merged 1 commit into from Sep 7, 2021

Conversation

rgrunber
Copy link
Member

@rgrunber
Copy link
Member Author

May need to do some checking workspace.workspaceFolders but this seems to be working.

src/javaServerStarter.ts Outdated Show resolved Hide resolved
@rgrunber rgrunber force-pushed the fix-1965 branch 3 times, most recently from 9d3e446 to b3823a7 Compare September 1, 2021 15:41
@rgrunber
Copy link
Member Author

rgrunber commented Sep 1, 2021

I'll just need to test this in Theia to confirm it'd work as expected.

@sunix
Copy link

sunix commented Sep 1, 2021

ok let me know if you need some help to test it.

- Fixes redhat-developer#1965

Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
@rgrunber
Copy link
Member Author

rgrunber commented Sep 2, 2021

Ok, so I've verified this should work in Theia.

In Theia, workspace trust is undefined, so in that case we check whether the agentFlag value is in the workspace. If so, we show the security prompt, and otherwise we allow it. If a client supports workspace trust, the entire security prompt should be skipped.

@rgrunber rgrunber merged commit 0375939 into redhat-developer:master Sep 7, 2021
@rgrunber rgrunber deleted the fix-1965 branch September 7, 2021 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants