Skip to content

Allow text change events to report their source #150966 #150967

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kachurovskiy
Copy link

This PR contributes to #150966

Tested by listening to vscode.workspace.onDidChangeTextDocument and checking event.source, then pasting something into the editor.

* Optional identifier of the top-most intent that triggered this event e.g. all editing operations
* triggered by user pasting text from clipboard will have "paste" source.
*/
readonly source?: string | undefined;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't accept direct changes to the API, they must go through a proposal-process in which they are examined and discussed. See https://github.com/Microsoft/vscode/wiki/Extension-API-process for details.

For this particular case I see a conflict with TextDocumentChangeReason a few lines above. I believe it serves a similar/same intent

@alexdima alexdima self-requested a review November 16, 2022 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants