Omnisharp-vscode: HOW TO TURN OFF SPACE AUTO COMPLETE!!???

Created on 10 Mar 2020  路  7Comments  路  Source: OmniSharp/omnisharp-vscode

The space auto complete in this extention is horrid. It doesn't consider what you typed past the first couple of letters. EVEN IF YOU WAIT TO PRESS SPACEBAR.
AND WHY IS THE AUTO COMPLETE BUTTON SPACEBAR???????
We use spacebar all the freaking time when coding. Why is such an important button the AUTOCOMPLETE.

After searching Google, this is a problem that has been around for at least 2 years. The only solution is to turn off autocomplete all together. Why can't I rebind it?

Bad design. Bad planning. Useless feature in current implementation.

ps. Its broken in insider too.
pss. It happens with ONLY your extension installed, and stops when disabling setting in the extension. The problem is 100% this and only this.

Steps to reproduce

  1. Make sure Omnisharp is working on your active file. If your open directory is too large, Omnisharp does nothing. (another failure of this extension)
  2. Type anything that is not a command, that you intend to use as a variable. Some examples are i, and input. (I use these all the time, and they are corrected every time, hence my frustration)
  3. Press space (as a normal person would do when they have finished writing a word. What kind of monster doesn't put a space between their variable names and the =)

Expected behavior

Normal typing behavior as defined by every computer, phone, tablet, ect.

Actual behavior

Your typed word or letter changes into a long variable name that doesn't even work in the context of the code.

Editor-IntelliSense Needs Investigation Triaged

Most helpful comment

Workaround using Code Snippets:

image
image
image

At least now I can type var/*space*/ in peace, without it turning into EnvironmentVariableTarget.

P.S. @rhys-vdw I have faced the same problem T_T

P.P.S. Also works: disable "Accept Suggestion On Commit Character":
image
(I prefer to keep this setting enabled, because it's helpful usually.)

All 7 comments

Thanks for the report. Do you have a code sample or screenshot showing this behavior? Thanks!

Space should not be considered a commit character unless you have used the arrow keys to select something. Please let me know is this is not what you are seeing. A screen-shot or precise repo would help a lot :)

Could this be related? I get this madness when typing . in a comment, then space will autocomplete it.

image
image

Sorry couldn't work out how to attach video.

Its going to be a duplicate of many reports because its a problem that has existed for 2 years. @cartermp

I don't feel like taking a video of typing 'input' and pressing space. @jmarolf @cartermp

I did not and have never used the arrow keys. @jmarolf

Yes. @rhys-vdw

OmniSharp is returning completion items while in doc comments and the completion items are not being returned as suggestions. Possible fix would be to first check if service.ShouldTriggerCompletion() returns true prior to generating a completion list here - https://github.com/OmniSharp/omnisharp-roslyn/blob/master/src/OmniSharp.Roslyn.CSharp/Services/Intellisense/IntellisenseService.cs#L42. Also, not sure if the method of determining suggestion mode will always be accurate here - https://github.com/OmniSharp/omnisharp-roslyn/blob/master/src/OmniSharp.Roslyn.CSharp/Services/Intellisense/IntellisenseService.cs#L56

Workaround using Code Snippets:

image
image
image

At least now I can type var/*space*/ in peace, without it turning into EnvironmentVariableTarget.

P.S. @rhys-vdw I have faced the same problem T_T

P.P.S. Also works: disable "Accept Suggestion On Commit Character":
image
(I prefer to keep this setting enabled, because it's helpful usually.)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tstivers1990 picture tstivers1990  路  3Comments

mattwoberts picture mattwoberts  路  3Comments

jwbay picture jwbay  路  3Comments

jrmcdona picture jrmcdona  路  3Comments

slevengood picture slevengood  路  3Comments