Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODEEXT-202

QMLLS Support for Multi-Root Workspace projects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 1.6.0
    • QML/QtQuick support
    • None
    • Windows with Cursor.

    Description

      I am having issues running the 1.6 release of the Qt Extension with a multi-root workspace.

      I have different CMakeLists.txt files in different folders, each of which is separate. QML language server support is erratic, usually not finding the modules that have been added.

      Note - If I open one of the subfolders directly, instead of the top-level directory via the Workspace, everything works as expected, including understanding my custom types.

      When I look at Output - qt-qml tab, I see "[info] [project] Creating project: <path>" multiple times, with different paths for each workspace folder. Is the extension expected to handle multiple qmlls server instances? I'm wondering if this is the root of the issue. If so, is it possible for the qmlls server instantiation to follow cmake-tools active-folder?

      I could be completely wrong with my guesses, just trying to provide as much information as possible.
       

      Attachments

        1. image-2025-07-11-12-36-23-478.png
          36 kB
          Orkun Tokdemir
        2. image-2025-07-11-12-43-24-346.png
          116 kB
          Orkun Tokdemir
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtvscodeteam Qt VS Code
            bstottle Brett Stottlemyer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes