ipatalas / vscode-postfix-ts

Postfix notation for TypeScript/Javascript - extension for VS Code
MIT License
158 stars 43 forks source link

enumerable.forEach autocomplete adds additional '.array.forEach' using intellisense #6

Closed jrieken closed 7 years ago

jrieken commented 7 years ago

From @james-gould on April 10, 2017 9:50

Steps to Reproduce:

  1. Create an array and add a few elements.
  2. Create a function and, using intellisense, write a forEach loop for the array you've just made as such:
var myArr = [1, 2, 3];

myArr.forE

press tab to complete the forEach statement

  1. Autocomplete creates the statement, but adds in myArr.array.forEach and sets focus to array to be changed.

Would be nice to be able to autocomplete the foreach on a predefined array without needing to remove the array element from the statement when using autocomplete.

Copied from original issue: Microsoft/vscode#24424

jrieken commented 7 years ago

The foreach you are completion is a snippet not a semantic completion. There is an awesome post-fix completions extension to which I am forwarding this request.

jrieken commented 7 years ago

Feature request for having things like forEach et al