Skip to content

Conversation

jpogran
Copy link
Contributor

@jpogran jpogran commented Aug 27, 2024

This commit removes the static snippets file in favor of using the Terraform Language Server to provide snippets completions.

The file was a legacy feature from when there was no language server to provide more specific snippets. These snippets used the existing VS Code api to provide a minimal completion experience, but there was no facility to control when or where these snippets appeared. This frequently caused confusion for users as the snippets in the file were not always relevant to the current context and could not be disabled.

The Terraform Language Server provides a more powerful and context-aware completion experience that can suggest completions for all Terraform language constructs. This is combined with the editor.suggest.preview and terraform.experimentalFeatures.prefillRequiredFields settings to provide a more accurate and helpful completion experience.

@jpogran jpogran self-assigned this Aug 27, 2024
This commit removes the static snippets file in favor of using the Terraform Language Server to provide snippets completions.

The file was a legacy feature from when there was no language server to provide more specific snippets. These snippets used the existing VS Code api to provide a minimal completion experience, but there was no facility to control when or where these snippets appeared. This frequently caused confusion for users as the snippets in the file were not always relevant to the current context and could not be disabled.

The Terraform Language Server provides a more powerful and context-aware completion experience that can suggest completions for all Terraform language constructs. This is combined with the `editor.suggest.preview` and `terraform.experimentalFeatures.prefillRequiredFields` settings to provide a more accurate and helpful completion experience.
@jpogran jpogran force-pushed the remove_snippets_file branch from ed9fe0e to a284779 Compare August 27, 2024 19:03
@jpogran jpogran marked this pull request as ready for review August 27, 2024 19:06
@jpogran jpogran requested a review from a team as a code owner August 27, 2024 19:06
Copy link
Member

@ansgarm ansgarm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@ansgarm ansgarm merged commit 813786f into pre-release Aug 28, 2024
@ansgarm ansgarm deleted the remove_snippets_file branch August 28, 2024 08:04
@radeksimko
Copy link
Member

@jpogran I think this closed #1130 , right?

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants