mojo icon indicating copy to clipboard operation
mojo copied to clipboard

[BUG]: VScode trim parallelize definition

Open rd4com opened this issue 1 year ago • 3 comments

Bug description

the autocomplete suggest: (function) fn parallelize[func: fn(Int, /) capturing

it seems that the definition is trimmed compared to the one in the docs: parallelize[func: fn(Int, /) capturing -> None]()

https://docs.modular.com/mojo/stdlib/algorithm/functional.html#parallelize

same for vectorize: (function) fn vectorize[simd_width: Int, func: fn[Int](Int, /) capturing

Steps to reproduce

from algorithm import parallelize

fn main():
    parallelize    #cursor here     

System information

- Ubuntu 23.04
- Mojo 0.5

rd4com avatar Nov 02 '23 21:11 rd4com