DetachHead / basedpyright

pyright fork with various type checking improvements, improved vscode support and pylance features built into the language server
https://docs.basedpyright.com
Other
1.24k stars 26 forks source link

Inlay hints, function return types : short flicker when adding whitespace around function colon #794

Closed Altonss closed 1 month ago

Altonss commented 1 month ago

When switching from

def foo(a):
    return a

to (added whitespace after or before the :):

def foo(a): 
    return a

The function return types inlay hints shortly switches from -> Any to -> An... before going back to normal state. This flickering isn't very elegant :)

System info: Vscodium 1.94.2 (flatpak, linux) BasedPyright v1.19.0 (from https://open-vsx.org/extension/detachhead/basedpyright)

DetachHead commented 1 month ago

this seems to be a bug in vscode, it happens with typescript's inlay hints too

Altonss commented 1 month ago

Indeed could reproduce, opened an issue upstream see https://github.com/microsoft/vscode/issues/231728.

DetachHead commented 1 month ago

thanks. closing in favor of that issue