Skip to content

Add undefined to TextDocuments#get(uri: string)#339

Merged
dbaeumer merged 1 commit into
microsoft:masterfrom
nikeee:textdocuments-get-undefined
Apr 16, 2018
Merged

Add undefined to TextDocuments#get(uri: string)#339
dbaeumer merged 1 commit into
microsoft:masterfrom
nikeee:textdocuments-get-undefined

Conversation

@nikeee

@nikeee nikeee commented Apr 13, 2018

Copy link
Copy Markdown
Contributor

As the documentation of TextDocuments#get(uri: string) funtion states:

Returns the document for the given URI. Returns undefined if the document is not mananged by this instance.

The return type does not reflect that it can return undefined. This commit adds that.

This might be a breaking change for existing code bases (which use strictNullChecks), so feel free to reject this PR.

As the documentation of this funtion states:
> * Returns the document for the given URI. Returns undefined if
> * the document is not mananged by this instance.

The return type does not reflect that it can return undefined. This commit adds that.
@dbaeumer dbaeumer merged commit d9023cf into microsoft:master Apr 16, 2018
@nikeee nikeee deleted the textdocuments-get-undefined branch April 16, 2018 09:52
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