// Copyright (C) 2021 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include #include // To debug: // // * simple logging can be redirected to a file // passing -l to the qmlls command // // * more complex debugging can use named pipes: // // mkfifo qmllsIn // mkfifo qmllsOut // // this together with a qmllsEcho script that can be defined as // // #!/bin/sh // cat -u < ~/qmllsOut & // cat -u > ~/qmllsIn // // allows to use qmllsEcho as lsp server, and still easily start // it in a terminal // // qmlls < ~/qmllsIn > ~/qmllsOut // // * statup can be slowed down to have the time to attach via the // -w flag. using namespace Qt::StringLiterals; int main(int argv, char *argc[]) { QCoreApplication::setApplicationVersion(QLatin1String(QT_VERSION_STR)); QCoreApplication::setApplicationName("qmlls"_L1); return QmlLsp::qmllsMain(argv, argc); }