Наша сборка Qt VS Tools
giy
2022-09-02 ca47896204482bf4a6979e3838bf7f09f61cebeb
QtVsTools.Package/QML/Debugging/QmlFileSystem.cs
@@ -1,6 +1,6 @@
/****************************************************************************
**
** Copyright (C) 2018 The Qt Company Ltd.
** Copyright (C) 2022 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt VS Tools.
@@ -36,6 +36,8 @@
namespace QtVsTools.Qml.Debug
{
    using QtVsTools.Core;
    struct QmlFile
    {
        public string QrcPath;
@@ -92,9 +94,8 @@
                using (var reader = XmlReader.Create(new StringReader(xmlText), settings)) {
                    rccXml = XDocument.Load(reader);
                }
            } catch (Exception e) {
                System.Diagnostics.Debug.WriteLine(
                    e.Message + "\r\n\r\nStacktrace:\r\n" + e.StackTrace);
            } catch (Exception exception) {
                exception.Log();
                return;
            }
@@ -156,8 +157,7 @@
            qrcPath = string.Format("qrc:///{0}", qrcPath);
            QmlFile file;
            if (!files.TryGetValue(qrcPath, out file))
            if (!files.TryGetValue(qrcPath, out QmlFile file))
                return default(QmlFile);
            return file;
@@ -190,8 +190,7 @@
                return default(QmlFile);
            }
            QmlFile file;
            if (files.TryGetValue(fullPath, out file))
            if (files.TryGetValue(fullPath, out QmlFile file))
                return file;
            return new QmlFile