aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Ensure pre-compiled header is accessible from generated sourcesAli Can Demiralp2024-03-041-1/+1
| | | | | | | | | | | | | | | The project directory was removed from the additional include directories passed to generated sources in 3746c90a3ee718342ce7f1f4415a07635c7cd1fc due to raising an error about inconsistency of arguments passed to different CL tasks. However it is necessary for the generated sources within the build directory to be able to locate the pre-compiled header in the source directory. This commit adds the project directory to all CL tasks, preventing the warning as well as allowing access to the precompiled header. Change-Id: Ia1cddbf89c258d0c2e43b90f355ea29a7bf4508d Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io> Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Amend commit 7875ba, fixes "Must select Qt" not disappearingKarsten Heimrich2024-03-011-2/+2
| | | | | | | | | | | | | While working on the mentioned commit, certain sections of the code has been temporarily commented out to make moving the code easier. It seems I accidentally overlooked enabling these sections afterwards. Fixes: QTVSADDINBUG-1176 Change-Id: I7ae90fa1e7d82f03d1d0a0cb330154bb68ab8863 Reviewed-by: Ali Can Demiralp <ali.demiralp@qt.io> Reviewed-by: Robert Löhning <robert.loehning@qt.io> Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Fix package InitializeAsync call delayMiguel Costa2024-02-293-9/+17
| | | | | | | | | | | | | | Specified some additional auto-load contexts for the AsyncPackage, to handle the case where VS is started with the option to immediately load a solution/project. Also, the wait-event that signals initialization complete is now static and async. An await for initialization was added to the QML LSP client, to avoid the consequences of race conditions between MEF and package initialization. Change-Id: Ib065e12be1ace5d6275bf178d5ce2e1fc504b7ec Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Pass project path to qmlls as build dirMiguel Costa2024-02-291-5/+18
| | | | | | | Fixes: QTVSADDINBUG-1171 Change-Id: I260d3c5689ac10cf4926886cd6a7bf83246b976e Reviewed-by: Ali Can Demiralp <ali.demiralp@qt.io> Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Rework QmlLspClientMiguel Costa2024-02-296-207/+310
| | | | | | | | | | Including: * Encapsulated stream monitoring (to log exchanged LSP messages) in utility class (QtVsTools.Core.Common.Utils.StreamMonitor). * Disconnect from server when solution closes. Change-Id: I84e8eacb43db498c1a081a22f17a28242e2990ad Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Fix opening the source files of Qt Designer Custom Widget projectsAli Can Demiralp2024-02-291-5/+5
| | | | | | | Fixes: QTVSADDINBUG-1160 Fixes: QTVSADDINBUG-1177 Change-Id: I238c71be48fe0ced82dc6688b1d0b077d37c4107 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Change source license to LicenseRef-Qt-Commercial or GPL-3.0-onlyAli Can Demiralp2024-02-28485-485/+485
| | | | | | | | ... WITH Qt-GPL-exception. Fixes: QTVSADDINBUG-1179 Change-Id: I74fe451eec352af13436548cfd9a28f832fc0757 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Squish: Shorten object nameRobert Löhning2024-02-265-5/+5
| | | | | Change-Id: I2abd5f5f0aca0160a22b8b7489c86ca9e9498c69 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Prevent deprecation warning / error in Qt quick application templateAli Can Demiralp2024-02-261-1/+1
| | | | | | | | | Prevent C4996: 'Qt::AA_EnableHighDpiScaling': High-DPI scaling is always enabled. This attribute no longer has any effect. Fixes: QTVSADDINBUG-1178 Change-Id: I1d2d308662a63d6b4348f6bdec8f747fc731d6c5 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Fix recognition of QMake extra argumentsAli Can Demiralp2024-02-141-2/+3
| | | | | | | | | | Prevented QMake extra arguments from being escaped as this caused them to be unrecognized. If a QMake call fails, the failed command is now printed along with the error. Fixes: QTVSADDINBUG-1158 Change-Id: I66cf54b13599b25ece5ae3f5251744f503fc2b78 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Fix RCC failure when using precompiled headers and /W4 /WXAli Can Demiralp2024-02-132-10/+18
| | | | | | | | | The parameters for compilation of precompiled and regular sources are made identical. Warning C4711 has been disabled for RCC generated files. Fixes: QTVSADDINBUG-992 Change-Id: I125ff96b2ad211a1ce0e3666ba3aac9e20c8f9d6 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Build fix inside VS while not using vstools -startvsKarsten Heimrich2024-02-091-4/+1
| | | | | Change-Id: Id65788cef693510ee29f412e3bced76ece6551a8 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Update the property documentations to https://doc.qt.io/qt-6/Ali Can Demiralp2024-02-098-113/+113
| | | | | Change-Id: If4742a7872895270260d3ae86f27b2e2bf1979f8 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Check if the main window is visible alreadyKarsten Heimrich2024-02-092-28/+33
| | | | | | | | We might miss the window activated event in case VS is configured to start right into the main window or loads a solution on startup. Change-Id: Iabb58850813ceb4282f17494702fd512285e1b28 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Make searching for dev releases an opt-inKarsten Heimrich2024-02-094-19/+138
| | | | | | Fixes: QTVSADDINBUG-1115 Change-Id: If8b45ad2188aaf4e1c7755e56c217607f4a5cfba Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Port Qt VS Tools to ARM64Karsten Heimrich2024-02-099-24/+464
| | | | | | Fixes: QTVSADDINBUG-1055 Change-Id: I41df504e8286518b43bec59fa3ab2ed3d1b5ba86 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Use MSBuild package references and reduce dependenciesKarsten Heimrich2024-02-091-13/+3
| | | | | | Task-number: QTVSADDINBUG-1055 Change-Id: I158789253824b135cbb7bbfb50fc28b6e36ff571 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Convert to auto-propertyKarsten Heimrich2024-02-091-9/+2
| | | | | | Change-Id: Ie30b1deba53da7bec50941955497e04c12f80e24 Reviewed-by: Ali Can Demiralp <ali.demiralp@qt.io> Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Fix null reference exceptionKarsten Heimrich2024-02-091-0/+6
| | | | | | | | | If VS is started with an project as startup argument, our extension takes some time to get fully loaded. If the user is fast enough, he can start a new Qt project wizard in the meantime and we will throw. Change-Id: I9cc0225094db5c7a93af2d2cfb71585e63da0ed2 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Change compiler-flavor MOC property from a string to an enumAli Can Demiralp2024-02-091-2/+9
| | | | | Change-Id: I59e6be847af54aec1c542c8cead8cfa35975604f Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Simplify initialization of MOC optionsAli Can Demiralp2024-02-091-60/+13
| | | | | Change-Id: I034155e7e6b2e258010c4605fff1155348bb0c91 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Fix incorrect string and string list MOC propertiesAli Can Demiralp2024-02-092-6/+4
| | | | | Change-Id: Idb3d9b1c03800b710db7a02b674a34864693f16f Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Update the VS interface of MOC command line options to match 6.6.1Ali Can Demiralp2024-02-093-0/+165
| | | | | Change-Id: I3c841bd3e642e793cf691be5441c35044d64c812 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Fix RCC interface consistency issuesAli Can Demiralp2024-02-093-22/+25
| | | | | | | | | Fixed temp file parameter of RCC being ignored. Matched the order of parameters in the RCC targets, xml and cs to the command line for easier maintenance. Change-Id: I7e07c47647824b8455b67c153473e5d3ca721546 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Update the VS interface of RCC command line options to match 6.6.1Ali Can Demiralp2024-02-094-14/+120
| | | | | Change-Id: I43bdd43e4e508bc67ea7429e510afb01e42e81ea Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Change generator and connections UIC properties from strings to enumsAli Can Demiralp2024-02-091-4/+18
| | | | | Change-Id: Ic2faec7ab52a3165786a318df682a009c74b166a Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Update the VS interface of UIC command line options to match 6.6.1Ali Can Demiralp2024-02-093-13/+196
| | | | | Change-Id: I83a323c4586d13d0cdf17d031029c26b7c27264e Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Add deploy tool the option to prepend the Qt tools directory to pathAli Can Demiralp2024-02-093-0/+22
| | | | | | | | This solves the issue where a Qt installation in user's path variables may interfere with the deploy tool. Change-Id: I14b413de90b1427bf53479e5d46017f86004a900 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Simplify initialization of REPC optionsAli Can Demiralp2024-02-081-17/+5
| | | | | Change-Id: Ic70ee26902e1deabdf557342b99178d06a10138d Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Fix argument null exceptionKarsten Heimrich2024-02-021-2/+2
| | | | | | Fixes: QTVSADDINBUG-1170 Change-Id: I1f78105d63a90433dac30af9c5d23871ba1d697e Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Unify the project settings for standard VS and Qt templatesAli Can Demiralp2024-02-011-13/+21
| | | | | | | | | | | Several C++ and linker properties of projects created by the wizard were missing or not identical to the properties created by the VS internal project wizard. This is no longer the case. Fixes: QTVSADDINBUG-807 Change-Id: I767a85050c5e008d397cc9ed73b20159f6d55fc5 Reviewed-by: Miguel Costa <miguel.costa@qt.io> Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Open source files in CMake projects for consistency with MSBuildAli Can Demiralp2024-02-013-5/+27
| | | | | | | | | | CMake projects created with the project wizard will now open their primary source file on creation. Note that the "CMake Overview Pages" page will still also open, in addition to the source file. Fixes: QTVSADDINBUG-1160 Change-Id: I18658ae0ee99530f69cd29df5f0e784f372abdd3 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Disable project model input for ActiveQt wizardMiguel Costa2024-01-293-1/+4
| | | | | | Fixes: QTVSADDINBUG-1159 Change-Id: Ib667004420093bca8ad4fefb58e02356aa3910cf Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Update Designer Plugin template for Qt/CMakeMiguel Costa2024-01-295-0/+36
| | | | | | Task-number: QTVSADDINBUG-1159 Change-Id: Ibe4a443a6df86b03f3dabf02c88ce311524f3096 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Update Empty template for Qt/CMakeMiguel Costa2024-01-297-1/+37
| | | | | | Task-number: QTVSADDINBUG-1159 Change-Id: Ifad13de417b03c7c873dc1fb09b5dbd101b4926f Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Fix exception in ListQrcMiguel Costa2024-01-291-0/+4
| | | | | Change-Id: If0f3d4dbaecb2377c5e396052dada7ab0208d65d Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Cleanup and centralize Qt version handling codeKarsten Heimrich2024-01-292-100/+29
| | | | | | | | | | * Remove duplicated Qt version checking * Remove unused methods for Qt version checking * Unite Qt version handling in one place * Remove overloads taking a Registry hive Change-Id: I9873227f2d49eba84913398e03e7af1bbb3e46b7 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Prevent VS from loading the extension if we throw during startupKarsten Heimrich2024-01-291-3/+15
| | | | | | | Writes an entry into the activity log if available. Change-Id: Ia384ec009154caa2422bcb10e934f0b02165d741 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Remove custom exception class and use existing C# exception typesKarsten Heimrich2024-01-2911-59/+38
| | | | | Change-Id: Ia41b6c27cd86465fa1d70094a278e6fc78556fd5 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Remove QtVsTest and related codeKarsten Heimrich2024-01-2929-3669/+18
| | | | | Change-Id: I5251cf0e9b00b3e4fe3d019d608f592b6293d1f3 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Add QTDIR to PATH when debuggingMiguel Costa2024-01-252-8/+10
| | | | | | | | | | | | | When a native debugger session is starting, check if QTDIR is defined as environment variable and, if so, add a reference to it to PATH. For CMake projects, this eliminates the need to set the PATH variable in a preset, which in VS 2019 causes the compiler to not be found during generation. Fixes: QTVSADDINBUG-1164 Change-Id: Ib9b5fd263a49fd1b51147d710cd3ae837248eec1 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Add utility environment variables parserMiguel Costa2024-01-253-0/+58
| | | | | Change-Id: I7f42579a68b75e8e324ed38c68cd7f7ef149bd32 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Implement OnAfterPackageLoadedAsync overrideMiguel Costa2024-01-231-23/+23
| | | | | | | | | | Setting up a background task for "finalizing the initialization" is now replaced with an override of OnAfterPackageLoadedAsync, which serves the same purpose but is managed by VS, thus freeing the InitializeAsync of that added overhead. Change-Id: I81bf30394f65c564f7f04cf384c2389beb7f9024 Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Doc: Fix typo "gile" > "file"Leena Miettinen2024-01-221-1/+1
| | | | | Change-Id: I83a5aa17d7bed65bba367795efa3fabdf64f3148 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Doc: Update writing style and screenshotsLeena Miettinen2024-01-223-147/+147
| | | | | | | | | | | Follow the guidelines from the Microsoft Style Guide: - Use "go to" for menus, commands, views, and tabs - Avoid "you can" - Avoid "field" and "checkbox" (talk about the actions, not the UI) Change-Id: Ifa3903c455983480c7cb4340b8d287465cfea23a Reviewed-by: Miguel Costa <miguel.costa@qt.io> Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Copy QtVsTools keys only once into the new QtProject registry treeKarsten Heimrich2024-01-223-7/+20
| | | | | | | | | | | | | | | | Set a flag to copy keys only once. This commit amends commits 79c929 and 201cea, addressing the following issues: Issue 1: * Versions are copied to the new registry tree on start-up. * Versions are deleted in the new tree from the Qt versions UI. * Versions are copied again to the new tree on the next start-up. Issue 2: * Overwriting QtVsTools settings that might have changed between the two trees on the next start-up. Change-Id: Ie2cf1b7049fa34d76d4016ebf0ed6cd572e4cdf1 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Doc: Describe turning on QML language serverLeena Miettinen2024-01-222-1/+58
| | | | | Change-Id: I34b11ee8a252ec5c34b4fc5885a4c8ab441cc318 Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* If version is null, Path.Combine() will throw an exceptionKarsten Heimrich2024-01-191-1/+2
| | | | | | | Change-Id: I4ea95cb09d76576f111d5210a7bfc6c30d90d10b Fixes: QTVSADDINBUG-1161 Reviewed-by: Ali Can Demiralp <ali.demiralp@qt.io> Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
* Do not add stale Qt versions from qtversion.xmlKarsten Heimrich2024-01-191-0/+2
| | | | | | | | Task-number: QTVSADDINBUG-1163 Change-Id: Ib3fcaa607f5ce191b981dc7d7357b430f75adffe Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Ali Can Demiralp <ali.demiralp@qt.io> Reviewed-by: Miguel Costa <miguel.costa@qt.io>
* Fix build errors in QML LSP patchMiguel Costa2024-01-192-2/+11
| | | | | Change-Id: I6a4fe0aedeafa619b30d6f8b47c010afaac5124b Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>