Skip to content

Change Hover#range to be optional#48004

Merged
jrieken merged 1 commit into
microsoft:masterfrom
nikeee:patch-1
Apr 17, 2018
Merged

Change Hover#range to be optional#48004
jrieken merged 1 commit into
microsoft:masterfrom
nikeee:patch-1

Conversation

@nikeee

@nikeee nikeee commented Apr 16, 2018

Copy link
Copy Markdown
Contributor

The docs of Hover#range in monaco.d.ts and modes.ts state:

When missing, the editor will use the range at the current position or the current position itself.

This implies that the range field should be optional as it can be missing. When looking at the references to Hover#range, we find out that there might pop up warnings in modesContentHover.ts when vscode is compiled with strictNullChecks later.

The docs of `Hover#range` state:

> When missing, the editor will use the range at the current position or the current position itself.

This implies that the `range` field should be optional as it can be missing.
@jrieken

jrieken commented Apr 17, 2018

Copy link
Copy Markdown
Contributor

Looks good, merging but as said earlier: It is unlikely that monaco.d.ts. will properly support strict-null-checks because a good chunk of it is taken directly from our sources

@jrieken jrieken merged commit 54e5387 into microsoft:master Apr 17, 2018
@jrieken jrieken added this to the April 2018 milestone Apr 17, 2018
@nikeee nikeee deleted the patch-1 branch April 17, 2018 18:37
@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