pxt-microbit icon indicating copy to clipboard operation
pxt-microbit copied to clipboard

JS editor: Intellisense for function randint() is not complete

Open Sheila111 opened this issue 3 years ago • 1 comments

Describe the bug JS editor: Intellisense for function randint() is not complete

Steps to reproduce the behavior 1.Navigate to https://makecode.microbit.org/beta# 2.Create a new project 3.Type rand and choose the randint intellisense

Expect behavior Complete intellisense for function randint() as in Python editor 4

Actual behavior JS editor: Intellisense for function randint() is not complete. 3

Additional context 1.OS: Windows(rs6) 2.makecode.microbit.org version: 3.1.75 3.Microsoft MakeCode version: 6.13.18

Sheila111 avatar Apr 19 '21 06:04 Sheila111

By "not complete" do you mean it doesn't produce the full snippet "randint(0,10)" ?

If so, this is currently by design. We switched out the JS intellisense engine which came with a lot of fixes but snippet auto complete doesn't work in JS for any APIs right now.

darzu avatar Apr 20 '21 20:04 darzu