-
Notifications
You must be signed in to change notification settings - Fork 82
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
Fix copy/paste and context menus for Shiny and other content in Viewer pane #3430
Merged
Merged
Changes from 23 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
c4b1464
expose a way to set URIs directly on a webview (WIP)
jmcphers 5257228
initial webview uri plumbing
jmcphers 1a98d77
add a hook to execute js in the webview
jmcphers 1c1b1bd
provide a way to await frame creation; begin migrating event handlers
jmcphers d0d81a1
return a real frame from event
jmcphers 7968cb7
we can only pass plain objects across electron boundary
jmcphers 40eba9e
wait for target url before resolving frame
jmcphers 832482d
complete forwarding of context menu events
jmcphers dddb8e9
first working example
jmcphers f0fae06
better detection of load finish events
jmcphers be14eaf
clean up comments and logging
jmcphers 6e3b53d
document webview-events.js
jmcphers 6f86d53
begin working on reload/nav
jmcphers f70fdde
remove inner click handler; finish connecting nav messages
jmcphers 6a1d2e4
Merge remote-tracking branch 'origin/main' into bugfix/copy-paste-viewer
jmcphers d245ee9
track navigation and re-inject script
jmcphers 134ff13
Merge remote-tracking branch 'origin/main' into bugfix/copy-paste-viewer
jmcphers 0b6be6c
hide nonce in user-facing preview bar
jmcphers a0ee1c8
less aggressive reload (to preserve history)
jmcphers 12aa6de
ask Positron to open external URLs
jmcphers e0a8c77
clean up unused event; add docs
jmcphers d8ab5f8
use electron dependency injection to toggle old/new behavior
jmcphers aca57ff
Merge remote-tracking branch 'origin/main' into bugfix/copy-paste-viewer
jmcphers 607861d
Merge remote-tracking branch 'origin/main' into bugfix/copy-paste-viewer
jmcphers bc8da7d
simplify access to pending navigations
jmcphers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/vs/workbench/contrib/positronPreview/browser/positronPreview.web.contribution.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (C) 2024 Posit Software, PBC. All rights reserved. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
import { InstantiationType, registerSingleton } from 'vs/platform/instantiation/common/extensions'; | ||
import { PositronPreviewService } from 'vs/workbench/contrib/positronPreview/browser/positronPreviewServiceImpl'; | ||
import { IPositronPreviewService } from 'vs/workbench/contrib/positronPreview/browser/positronPreviewSevice'; | ||
|
||
// Register the Positron preview service. | ||
registerSingleton(IPositronPreviewService, PositronPreviewService, InstantiationType.Delayed); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Tiny idea: You can just call
get
and avoidhas
thenget
.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.
Good idea! Done in bc8da7d