cfn-lint-visual-studio-code icon indicating copy to clipboard operation
cfn-lint-visual-studio-code copied to clipboard

Allow users to turn off intrinsic function suggestions

Open liamdawson opened this issue 2 years ago • 2 comments

Whenever I press ctrl-space to see properties I can set for a resource, this is what I see:

image

This means I must always scroll to see any relevant properties for a resource after pressing ctrl-space.

I can hide these suggestions by turning off editor.suggest.showValues for YAML files, but this means that I also lose suggestions for the values of properties. For example, UpdateReplacePolicy then no longer suggests Delete/Retain/Snapshot. Instead, I would like to turn off suggestions for intrinsic functions alone.

For reference, this is what I would like to see when I press ctrl-space in this context:

image

(I achieved that by manually commenting out the customTags in the extension on disk, which is only a temporary solution, and probably has other side effects)

liamdawson avatar May 03 '23 04:05 liamdawson

Additionally, I continue to see suggestions after turning off the following settings:

  • cfnLint.completion
  • cfnLint.enableAutocomplete

liamdawson avatar May 03 '23 04:05 liamdawson

PR will fix the issue with the not being able to disable completion and clean up the settings to the ones that matter.

The other issue that will take a little more effort is to figure out the right spots to provide intrinsic function completion.

kddejong avatar Dec 13 '23 18:12 kddejong