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

QSS syntax highlighting incorrectly positions colour preview box

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 1.2.0
    • 1.1.0
    • General
    • None
    • All
    • 5397246

    Description

      When editing QSS files in VS Code with the Qt Core extension installed, any lines using the color syntax will have its colour box rendered before the whitespace. See attachments for comparing the bug and expected behaviour (the latter is a mock-up).

      Shorthand (#RGB) hex codes are also not rendered.

      Testcase (test.qss)

      QMessageBox {
          color   :        #D6D6D6;
          selection-background-color:      #008000;
          selection-color:      #fff;
      }

      This can be reproduced in a clean VS Code environment, on both the current release (v1.0.0) and pre-release (v1.1.0) versions of the extension.

      Attachments

        1. example_css_testcase.jpg
          20 kB
          Luke Horwell
        2. qss_bug.jpg
          14 kB
          Luke Horwell
        3. qss_expected.jpg
          15 kB
          Luke Horwell
        4. qss_testcase.jpg
          21 kB
          Luke Horwell
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bencho Ben Cho
            lah7 Luke Horwell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes