steep icon indicating copy to clipboard operation
steep copied to clipboard

langserver: Support --with-expectations-path option

Open tk0miya opened this issue 2 years ago • 1 comments

Add --with-expectations=PATH option to the langserver subcommand. It suppresses warnings and info messages using expectations file like check command does. And it helps to users to develop RBS files gradually.

tk0miya avatar Aug 06 '23 18:08 tk0miya

With this patch, many warnings/infos for the Steep project are suppressed on my VSCode.

Before: スクリーンショット 2023-08-07 3 23 27

After: スクリーンショット 2023-08-07 3 31 40

Some warnings are still shown. But it must be helpful to typing gradually :-)

Note: I noticed https://github.com/soutaro/steep/issues/468 had been filed after I created this patch. I'm unsure which is better to enable the "expectations" mode in the langserver. Please let me know if you feel other way is better. Thanks,

tk0miya avatar Aug 06 '23 18:08 tk0miya