Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Premature completion of AC #4136

Closed
bclothier opened this issue Jun 28, 2018 · 6 comments
Closed

Premature completion of AC #4136

bclothier opened this issue Jun 28, 2018 · 6 comments
Assignees
Labels
bug Identifies work items for known bugs feature-autocomplete
Milestone

Comments

@bclothier
Copy link
Contributor

Given the desired output of a code like this:
Foo("bar", "baz")

Typing Foo(" gets us Foo("|"). So far, so good.

Now type in bar, then type " again, and the cursor ends up at Foo("bar")|... Not so good. I prefer that it be Foo("bar"|) so that I can continue filling out the arguments.

Incidentally, if the desired expression typed out is If Foo("bar", "baz") Then, the AC causes the line to go red as soon as we try to fill out the line. That's a bit of a distraction, especially as we weren't done with the line.

@bclothier bclothier added enhancement Feature requests, or enhancements to existing features. Ideas. Anything within the project's scope. feature-autocomplete labels Jun 28, 2018
@retailcoder retailcoder added bug Identifies work items for known bugs and removed enhancement Feature requests, or enhancements to existing features. Ideas. Anything within the project's scope. labels Jun 28, 2018
@retailcoder
Copy link
Member

I consider this a bug; typing " given |" should result in "| regardless of what comes after the ".

@retailcoder
Copy link
Member

Not sure I understand the bit about If..Then going red.. is it fixed by fixing the unexpected jumping?

@retailcoder
Copy link
Member

This should be fixed now; if not then SCP needs more unit tests.

@retailcoder
Copy link
Member

Okay, the behavior is kind of fixed.... if the code is legal in the first place.

e.g. If foo(" goes to If foo("|") as expected; then typing the " at If foo("bar|") now gives If foo("bar""|")` which is different than the previous behavior, but not entirely weird.

Re-closing the closing perenthesis "skips" over it, which is expected. I'm debating whether re-closing the double quotes should skip over too, or whether it should do what it currently does, i.e. insert a new pair.

@retailcoder
Copy link
Member

Per chat: typing " given if foo("abc|") should result in if foo("abc"|), i.e. typing the pair-closing character should skip over the existing pair-closing character. Leaving it as an open bug.

@Vogel612 Vogel612 added this to TODO in Release 2.3.0 via automation Aug 20, 2018
@Vogel612 Vogel612 added this to the 2.3.0 Release milestone Aug 20, 2018
@retailcoder
Copy link
Member

This scenario just needs a unit test, I believe it's currently fixed in #4387

@retailcoder retailcoder self-assigned this Sep 27, 2018
Semi-automatic bug tracker automation moved this from ToDo to Done Oct 25, 2018
Release 2.3.0 automation moved this from TODO to Done Oct 25, 2018
retailcoder added a commit to retailcoder/Rubberduck that referenced this issue Oct 25, 2018
IvenBach pushed a commit to IvenBach/Rubberduck that referenced this issue Oct 31, 2018
@Vogel612 Vogel612 modified the milestone: 2.3.0 Release Nov 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identifies work items for known bugs feature-autocomplete
Projects
Release 2.3.0
  
Done
Development

No branches or pull requests

3 participants