Skip to content

Open new file buffer via API#18747

Merged
jrieken merged 1 commit intomasterfrom
ben/12283
Jan 19, 2017
Merged

Open new file buffer via API#18747
jrieken merged 1 commit intomasterfrom
ben/12283

Conversation

@bpasero
Copy link
Member

@bpasero bpasero commented Jan 18, 2017

Second approach for some new API to fix #12283

This time I settled on:

openTextDocument(options?: { language: string; }):

This is a bit of an ugly overload to be fair, so I am open to a different API shape. The reason it works nicely is because the first overload is a URI and the second is a string. The alternative would be to introduce a method like openUntitledTextDocument, which also a bit ugly, but more explicit at least.

@bpasero bpasero added this to the January 2017 milestone Jan 18, 2017
@bpasero bpasero self-assigned this Jan 18, 2017
@bpasero bpasero requested a review from jrieken January 18, 2017 18:16
@jrieken jrieken merged commit 9ddc762 into master Jan 19, 2017
@jrieken jrieken deleted the ben/12283 branch January 19, 2017 10:07
@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.

Feature Request: Open new file buffer via API

3 participants