Esri / appstudio-vscode

AppStudio Extension for Visual Studio Code
Apache License 2.0
6 stars 2 forks source link

Auto Complete not working for QML components #30

Closed marikavertzonis closed 5 years ago

marikavertzonis commented 5 years ago
        Button {
                width: 32
                height: 32

                onClicked: {
                    // font - auto complete does not list the font property
                    menu.open()
                }
        }
marikavertzonis commented 5 years ago

further research shows that there are no qmltypes files for Qt components implemented in QML. the example above shows a property thats now auto detected inside a function, but it would be the same if it was outside the onClicked straight inside the Button.

This does work (both inside and outside the function) for AppStudio framework components (that are documented in a qmltypes file)

marikavertzonis commented 5 years ago

@stephenquan - in order to quantify which components we should target support for first, could you interrogate Survey123 code to quantify the frequency/count of use of Qt components (eg: Button{, Image{) ?

marikavertzonis commented 5 years ago

testing further with 0.0.9 on windows and ubuntu - and i can successfully see the autocomplete for Qt components. it appears that the meeting room machine we were testing on yesterday had an old build that caused the problem.