Skip to content

Add note to differentiate btw TextDoc & TextEditor#41307

Merged
jrieken merged 2 commits intomicrosoft:masterfrom
seanpoulter:issue-40653
Jan 9, 2018
Merged

Add note to differentiate btw TextDoc & TextEditor#41307
jrieken merged 2 commits intomicrosoft:masterfrom
seanpoulter:issue-40653

Conversation

@seanpoulter
Copy link
Contributor

These are some of the things I wish I had known before using the TextDocument event listeners.

cc @jrieken, #40653

These are some of the things I wish I had known before using the
TextDocument event listeners.

cc @jrieken, #40653
* An event that is emitted when a [text document](#TextDocument) is disposed.
*
* To add an event listener when a visible text document is closed, use the [TextEditor](#TextEditor) events in the
* [window](#_window) namespace. Note that this event is not emitted when a [text document]#TextDocument is closed
Copy link
Member

Choose a reason for hiding this comment

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

[text document]#TextDocument that's actually a markup issue. Also, it should better be 'text editor' because that's what users 'visually close' (pressing the X).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed it to:
not emitted when a [TextEditor](#TextEditor) is closed and the document remains open

@jrieken
Copy link
Member

jrieken commented Jan 9, 2018

lgtm. thanks

@jrieken jrieken merged commit f277f7e into microsoft:master Jan 9, 2018
@jrieken jrieken added this to the January 2018 milestone Jan 9, 2018
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
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