Skip to content

EditContext: Removing surfacing of the textAreaDomNode on ICodeEditor - refactoring#232957

Merged
aiday-mar merged 5 commits intomainfrom
simple-reindeer
Nov 6, 2024
Merged

EditContext: Removing surfacing of the textAreaDomNode on ICodeEditor - refactoring#232957
aiday-mar merged 5 commits intomainfrom
simple-reindeer

Conversation

@aiday-mar
Copy link
Contributor

@aiday-mar aiday-mar commented Nov 4, 2024

Recently I have added the method getTextAreaDomNode on the ICodeEditor interface.
This can now be accessed by all the users of the ICodeEditor.
The only instance where this is needed is in the clipboard.ts file.
So instead in this PR I directly fetch the text area

This code is not clean, but serves as a workaround because a dom node which has an edit context set, can not receive a 'paste' command execution. The text area is needed in order to be able to call execCommand('paste') on it and handle the paste event

@aiday-mar aiday-mar self-assigned this Nov 4, 2024
@aiday-mar aiday-mar marked this pull request as ready for review November 4, 2024 10:37
@aiday-mar aiday-mar enabled auto-merge (squash) November 4, 2024 10:37
@vs-code-engineering vs-code-engineering bot added this to the November 2024 milestone Nov 4, 2024
@aiday-mar aiday-mar marked this pull request as draft November 4, 2024 11:16
auto-merge was automatically disabled November 4, 2024 11:16

Pull request was converted to draft

@aiday-mar
Copy link
Contributor Author

Will check if this is necessary

@aiday-mar aiday-mar marked this pull request as ready for review November 6, 2024 16:05
@aiday-mar aiday-mar enabled auto-merge (squash) November 6, 2024 16:05
@aiday-mar aiday-mar changed the title Removing surfacing of the textAreaDomNode on ICodeEditor EditContext: Removing surfacing of the textAreaDomNode on ICodeEditor - refactoring Nov 6, 2024
@aiday-mar aiday-mar merged commit 1863cac into main Nov 6, 2024
@aiday-mar aiday-mar deleted the simple-reindeer branch November 6, 2024 16:56
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants