Skip to content
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

Feature - Extension Host: Document enter event #212

Merged
merged 9 commits into from
Apr 3, 2019

Conversation

bryphe
Copy link
Member

@bryphe bryphe commented Apr 3, 2019

This adds support for sending the document enter event (ExtHostDocumentsAndEditors - $acceptDocumentAndEditorsDelta).

@@ -155,6 +155,10 @@ module BufferNotification = {
bufferId: int,
buffers: list(BufferMetadata.t),
};

let getBufferMetadata = (id, v: t) => {
v.buffers |> List.filter((b: BufferMetadata.t) => b.id == id) |> List.hd;
Copy link
Member

Choose a reason for hiding this comment

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

@bryphe hd can throw a Failure which might cause a runtime collapse we could wrap this in a try or not sure if theres an alternative that returns an option

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call - I refactored to use List.nth_opt instead 👍

@bryphe bryphe merged commit d81f3ac into master Apr 3, 2019
@bryphe bryphe deleted the feature/exthost/document-enter branch April 3, 2019 14:48
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.

2 participants