tgjones / HlslTools

A Visual Studio extension that provides enhanced support for editing High Level Shading Language (HLSL) files
http://timjones.io/blog/archive/2016/04/25/hlsl-tools-for-visual-studio-v1.0-released
Other
562 stars 97 forks source link

Autocomplete erroneously replaces language keywords #112

Closed Friendly0Fire closed 5 years ago

Friendly0Fire commented 7 years ago

Steps to reproduce:

  1. With Intellisense on, try entering certain HLSL keywords (definitely happens with in, out and all of the rgbaxyzw single-letter accessors) and pressing space or enter.
  2. Rather than keeping the keyword in place, autocomplete will replace it with something (could be a type, could be a variable, anything in the list) instead.
AdamJMiles commented 7 years ago

I'm experiencing some rather awkward autocomplete too. Would this be an example of what you're talking about @Friendly0Fire ?

image

Typing the opening parenthesis at this point will autocomplete ProcessIsolineTessFactors.

Friendly0Fire commented 7 years ago

Yep! It's also happening when I try typing eg somefloat4.xy, it'll try to autocomplete the xy away to some random thing.

Even for things I want autocomplete on, it has a tendency to go find something oddly distant, like picking an obscure built-in function that barely matches instead of the local variable that shares the same first 8 letters as what I typed.

PathogenDavid commented 7 years ago

This is a duplicate of #36. The main issue is that HLSL tools isn't aware of language keywords at all.

It's obviously far from ideal, but I've gotten into the habit of pressing escape to cancel the Intellisense prompt whenever I'm typing a language keyword.

tgjones commented 5 years ago

Closing this as a dupe of #36. Keyword completion is really important to add.