-
Notifications
You must be signed in to change notification settings - Fork 33k
Moving away from execCommand
for pasting
#239233
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
Merged
Merged
Conversation
This file contains hidden or 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
execCommand
for pasting
deepak1556
reviewed
Apr 4, 2025
deepak1556
approved these changes
Apr 4, 2025
bpasero
reviewed
Apr 4, 2025
@@ -751,6 +751,11 @@ export class NativeHostMainService extends Disposable implements INativeHostMain | |||
return clipboard.readText(type); | |||
} | |||
|
|||
async triggerPaste(windowId: number | undefined): Promise |
|||
const window = this.windowById(windowId); | |||
return window?.win?.webContents.paste() ?? Promise.resolve(); |
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.
Fyi, no need to use Promise.resolve()
lszomoru
pushed a commit
that referenced
this pull request
Apr 5, 2025
* adding code to invetsigate the clipboard * adding more code * adding change * adding logs * adding notes * making deubgging easier * adding code to fix paste * adding code to allow await before trigger paste * removing all logs * removing log * refactoring * removing change * adding fix after call * polishing * fixing merge conflict * polishing
lszomoru
added a commit
that referenced
this pull request
Apr 6, 2025
* Add zx package * Add stub task and script * Add missing file * Remove code * Another try * Fingers crossed * Another try * Add remaining steps * Add back tasks * Fix things * Another try * More fixes * Use deemon * Fixing things * watcher - perf improvements for non-recursive watching (#245644) * Feedback: before / after selectors not rendering correctly (#245645) Fixes #244575 * Add highlights rule for character escapes (#245647) * ci: split gnu arm targets for cli stage (#245651) * Fix inline edit acceptance on click (#245649) fix clicking insertion does not accept * Feedback: variables render differently in Insiders (#245650) Fixes #244579 * !important different color (#245654) Fixes #244632 * @Property css different color (#245656) Fixes #244634 * > different color (#245658) Fixes #244631 * notifications - adopt more `NotificationPriority.OPTIONAL` (#245664) * Adds more inline completion tests * Fixes CI * feat: enable gpu channel async from the runtime (#241640) * Update WinGet configuration file location & extension (#242241) * Update WinGet configuration file location & extension * Remove prerelease: true & add securityContext * High CPU on large workspace with many TypeScript watched folders (fix #245366) (#245670) * High CPU on large workspace with many TypeScript watched folders (fix #245366) * reduce throttle delay * Moving away from `execCommand` for pasting (#239233) * adding code to invetsigate the clipboard * adding more code * adding change * adding logs * adding notes * making deubgging easier * adding code to fix paste * adding code to allow await before trigger paste * removing all logs * removing log * refactoring * removing change * adding fix after call * polishing * fixing merge conflict * polishing * Fixing property initializiation order (#245673) fixing property initializiation order * voice - fix some leaks (#245676) * update css service (#245688) * Engineering - bump deemon (#245634) * Engineering - bump deemon * Bump deemon again * Always run the Codesign post-job * Another fix * Try signing in parallel * Clean up signing script Update task name Tweak script Some more cleanup Some more cleanup More cleanup * Attempt to run signing in parallel --------- Co-authored-by: Benjamin PaseroCo-authored-by: Alex Ross <[email protected]> Co-authored-by: Robo Co-authored-by: Benjamin Christopher Simmonds <[email protected]> Co-authored-by: Henning Dieterichs Co-authored-by: Muhammad Danish Co-authored-by: Aiday Marlen Kyzy Co-authored-by: Martin Aeschlimann
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
No description provided.