Properties autocomplete#134
Conversation
We weren't considering spaces between { and ".
Also added a sanity check to consumeString when readInitialQuote is true.
This was corrupting the state. Also stop calling endProperty when it's not needed.
When multiple blocks are open in the same line we don't increase the
indentation size for the next line, otherwise we would increase
the indentation level by 2 with code like [{ or [[.
|
I don't think there's anyway to avoid the 404ing for non-existent blueprints. |
|
The inspector is picking up on new properties as soon as they're added, so hmm I'll look into that. |
|
In answer to blueprint updates: // we could create a binding to the propertyBlueprintGroups,
// but at the moment I'm not expecting the component blueprint
// to change at runtime
this.propertyGroupsController.content = value.propertyBlueprintGroups.map(function (groupName, index) {
return {
name: groupName,
properties: value.propertyBlueprintGroupForName(groupName),
open: index === 0
};
});EDIT: Within the associated template of the blueprinteditor, the properties are passed along to the propertyGroupEditor FWIW, so I imagine the properties here is the collection that changes |
There was a problem hiding this comment.
I think this is the packageRequire you were asking about?
This is probably the best way unless we do it for you and make it available as a promise in the projectController itself.
FWIW we do the same thing in the reelDocument and maintain a private reference.
https://github.com/declarativ/filament/blob/master/core/reel-document.js#L2056
|
To implement this we were using the moduleId found in the library items. This information no longer exists since we generalized the library item. Alternatives to this approach are:
Only the second option would allows us to have a comprehensive list of module ids. |
|
Can one of the admins verify this patch? |
|
ok to test |
|
Can one of the admins verify this patch? (Reply "ok to test") |
I'm highly skeptical about this implementation, here's the reasons:
CodeEditordirectly, theCodeEditorDocumentshould be the one defining which component to use to edit... TheCodeEditoris the one that needs access to the projectController, however, waiting to load all the modules and properties only at that point in time might be too slow, it's better at extension activation.projectController."moduleLibraryItemMap.keys()"to know when a new library item is available but this is ALL of them, it forces me do manually test if it's a dependency or not, I would prefer to use theprojectController.dependenciesbut have to know how to listen on new library items there.