1

Closed

Intellisense/autocompletion incorrectly invoked upon comma

description

If passing a string inline as a parameter, intellisense/autocompletion is incorrectly invoked upon typing a comma:
function blah(foo: string, bar: number){
    
}

blah('hola,')
As soon as you type the comma after "hola" (but still within the bounds of the string), autocompletion incorrectly appears.

Playground Repro
Closed Apr 26, 2013 at 7:48 PM by danquirk
This is fixed in our latest bits.

@rb126 - I opened https://typescript.codeplex.com/workitem/965 to track your suggestion. I agree it'd be nice to mimic that behavior, it's definitely thrown me off at times as well.

comments

danquirk wrote Feb 14, 2013 at 10:49 PM

Thanks for the report, marked as an active issue for investigation.

rb126 wrote Mar 4, 2013 at 4:07 PM

Is there a way to get Intellisense/autocompletion to kick in when you type things like '.', ';' and '('? I'm used to this in C# but can't see a way to turn it on in TS. It breaks up my flow to have to keep hitting Enter to accept the completion all the time.