-
Notifications
You must be signed in to change notification settings - Fork 182
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
autocomplete does not work correctly for the resource type #373
Comments
It works correctly for the scenario with resource inside the quotes when autocomplete is initiated manually e.g. [Cmd] + [Esc] |
I am seeing the same behavior, except that it also does not work correctly when manually initiating autocomplete on Windows10 ( [ctrl] + [space] ). Running v2.0.1 on Windows 10. |
This seems to be a setting/limitation upstream in VS Code: microsoft/vscode#23962 (comment) We'll need to investigate what we can do to override it, until then you will need to manually initiate completion inside quotes. |
I was able to get this working when manually initiating inside the resource type quotes by adding this to my user settings. I have a feeling adding
|
Thanks @byron70 – the language-specific config is the best option for people who want to have this option right now. |
In my case, adding the following improved the situation.
After inserting the snippet of the resource, it will be autocomplete without moving the cursor to another line once |
Potentially also related to this: microsoft/language-server-protocol#565 We can solve this in a couple ways I think, in order of preference:
3 is probably undesirable as you don't get the rich hinting with descriptions, etc. 2 is probably the most "correct" implementation possibly, but 1 is maybe the past of least resistance in the near term. Here is an implementation of 1 from the Dart extension: https://github.com/Dart-Code/Dart-Code/blob/7df6509870d51cc99a90cf220715f4f97c681bbf/src/providers/dart_completion_item_provider.ts#L197-202 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Hi,
Having small issues with autocomplete while using the resource block
resource "" "name" {
}
Typing anything inside the "" triggers no autocomplete where removing the "" actually triggers the correct behaviour although resource is not quoted
resource helm_release "name" {
}
Expected behaviour is to autocomplete inside the quotes of the
resource ""
The text was updated successfully, but these errors were encountered: