allegro / typescript-strict-plugin

Typescript plugin that allows turning on strict mode in specific files or directories.
MIT License
332 stars 29 forks source link

Provide strict quick info in plugin #69

Closed hnra closed 6 months ago

hnra commented 6 months ago

This PR overrides the getQuickInfoAtPosition function on the LS proxy object in the plugin. Quick info shows up e.g. when hovering your cursor over a variable (see screenshots). It is important to show the correct type here since this is a way to evaluate type functions.

Without override:

unstrict

With override:

strict

KostkaBrukowa commented 6 months ago

Thanks for cotribution! Published with 2.3.1