diff options
Diffstat (limited to 'src/qtvstools/Editors/Editor.QtDesigner.cs')
-rw-r--r-- | src/qtvstools/Editors/Editor.QtDesigner.cs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/qtvstools/Editors/Editor.QtDesigner.cs b/src/qtvstools/Editors/Editor.QtDesigner.cs index 01dc46ec..13e3f60c 100644 --- a/src/qtvstools/Editors/Editor.QtDesigner.cs +++ b/src/qtvstools/Editors/Editor.QtDesigner.cs @@ -71,16 +71,21 @@ namespace QtVsTools.Editors if (project == null) return; string filePath = document.FullName; + string[] itemId = null; + itemId = new[] { document.ProjectItem?.Name }; var lastWriteTime = File.GetLastWriteTime(filePath); while (!process.WaitForExit(1000)) { var latestWriteTime = File.GetLastWriteTime(filePath); if (lastWriteTime != latestWriteTime) { lastWriteTime = latestWriteTime; - QtProjectTracker.RefreshIntelliSense(project, runQtTools: true); + QtProjectTracker.RefreshIntelliSense( + project, runQtTools: true, selectedFiles: itemId); } } - if (lastWriteTime != File.GetLastWriteTime(filePath)) - QtProjectTracker.RefreshIntelliSense(project, runQtTools: true); + if (lastWriteTime != File.GetLastWriteTime(filePath)) { + QtProjectTracker.RefreshIntelliSense( + project, runQtTools: true, selectedFiles: itemId); + } }); } #endif |