vscode-extension: Binding Autocomplete doesn't work
I’m submitting a bug report
- Extension Version: 1.0.5
Please tell us about your environment:
-
Operating System: Windows 10
-
Visual studio code version: 1.41.1
Current behavior:
I don’t get the properties from my backing viewmodel in my view intellisense. My Aurelia plugin settings are defined like this:
"aurelia.featureToggles": {
"smartAutocomplete": true
},
Expected/desired behavior:
- What is the expected behavior? I would expect it to behave in the way described here
I suspect my plugin isn’t properly configured, as almost all other functionalities in that blogpost aren’t working as well. The only thing that does work is the open related files functionality.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 20 (11 by maintainers)
We’ve also the same problem. AutoComplete doesn’t work.
If I try to open Aurelia view data to side, I get the following message:
No file path found for {Path of the HTML Template)
The command
Open Related Aurelia File: View
works.Please let me know if there is anything more I can provide in order to get this fixed. It has to be something trivial, as our entire team (6+ people) can’t get this to work on all our Aurelia projects. I would be happy to organize a screen share if that would help you.
The new update fixes this, all is working fine now 😃 Thank you for improving our productivity!
@hiaux0 Thank you for the update! I can confirm that binding works for my first few tries.
However, autocompletion stops working if there are parsing errors when I load the project for the first time.
For example, I am following the todo quick start tutorial so my
app.ts
is:And my
app.html
is:If I load the project with an unfinished template with an unfinished
repeat.for
:I will get the following error:
And autocompletion will not work until I have a correct template and then reload the window.
@hiaux0
I just tested the branch on win10 with an existing project (which worked before), and the custom component lookup is now way more consistent and works much better.
There’s still a couple of issues though, as I can’t seem to access the view-model properties in the view at all. The properties are available, but not listed in a consistent manner when doing a bind autocomplete. I’ve tried removing quotes, manually cmd-space, allowing full auto-complete, but nothing.
4. There are some custom components that are not listed when writing<my-view-model ...
, but the view-model lookup works when written manually. Ex:<...
-autocompleteview-model ...
-autocompleteEdit: 4. was a duplicater of #115
Let me know if you want me to change anything in the source files and test stuff 😃
@arnederuwe I think @hiaux0 is working hard on the PR as we speak 😃