aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
Commit message (Collapse)AuthorAgeFilesLines
* Remove PluginManager::futureSynchronizer()Eike Ziller10 hours13-40/+16
| | | | | | | Use the global synchronizer from Utils::futureSynchronizer() directly Change-Id: Ic8843bc1ff7951c041529a258f36117f08ec4b35 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Fix qbs buildChristian Kandeler11 hours1-0/+1
| | | | | Change-Id: I22ac5e5ece2c0424942f04ae65d3b02ef89c5a31 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* LanguageClient: Let clients opt out of sending the didSave messageChristian Kandeler12 hours4-2/+13
| | | | | | | | | | | | | | ... and make use of it in ClangdClient. When a file gets saved, clangd checks all open documents for whether they are affected by that. While the answer is usually "no", there is still one thread per document being started to find that out, which triggers users who keep a close watch on CPU usage. To alleviate this, we now send the didSave message only for header files. Fixes: QTCREATORBUG-28580 Change-Id: Id761cec8b04e95a795c8bd8754466bf03b6f2c28 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
* AsyncTask: Centralize setting global future synchronizerEike Ziller13 hours23-69/+0
| | | | | | | | | | | Move the global FutureSynchronizer to Utils and use it by default for AsyncTask (if that is in the main thread). This way setting a synchronizer is less prone to be forgotten. Individual uses can still override this. Change-Id: I1a12bf4d7f4cb5be99668bf0a4797108c2fe6448 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* ProjectExplorer: introduce workspace projectDavid Schulz13 hours7-6/+283
| | | | | | | | | | | | | | | A workspace project can be utilized to open projects that either do not have a project manager or which uses a project manager we do not support natively. The workspace project basically scans the folder recursively and adds all files and folders to the project tree. The user can provide a project name in the .qtcreator/project.json project file. It is also possible to exclude files and subdirectories from the project via the project trees context menu. Change-Id: If84a4d96c6217ae024af4e2869eb600e1faad372 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* ProjectExplorer: allow defining a dir filter in TreeScannerDavid Schulz13 hours3-28/+46
| | | | | | | | | This is going to be used to include hidden files in the result list of the scanner. Change-Id: I512465eba4c38c6d26107ae4022319f1c700b60c Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Android: Supply newly created device with pathJarek Kobus14 hours4-31/+42
| | | | | | | | | | Otherwise, the newly created device is going to be removed and recreated on subsequent HandleAvdsListChange() causing flickering of the devices combobox in settings. Change-Id: Idcf58f24eb7f4d4200881cfa912d0866f54d362a Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* CppEditor: Quickfix clean-upsChristian Kandeler14 hours11-335/+174
| | | | | | | | | | - Merge cppquickfixes.{h,cpp} and cppquickfix.{h,cpp}. - Remove unused functions, classes and typedefs. - Some renamings and adaptation of comments. Change-Id: I1fbcec7ee227f068527fb57552eb161a7e98bf9f Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* CppEditor: Move ReformatPointerDeclaration quickfix into its own filesChristian Kandeler14 hours9-170/+202
| | | | | | Change-Id: Ib33bbc2276b1e9992700967d91b8843047fb329e Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* CppEditor: Move RearrangeParamDeclarationList quickfix to its own filesChristian Kandeler14 hours6-94/+137
| | | | | | Change-Id: I71354ebf11d943531fef1f417e389ae28b964ccb Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Merge remote-tracking branch 'origin/13.0'Eike Ziller15 hours1-0/+7
|\ | | | | | | | | | | | | Conflicts: doc/qtcreator/src/editors/creator-only/creator-language-server.qdoc Change-Id: If93df2592a66679eeff9c8a337372e3aad65f1f1
| * Git: Avoid crash when reloading filesChristian Stenger17 hours1-0/+7
| | | | | | | | | | | | | | | | | | Explicitly reset the document when the document gets closed. Task-number: QTCREATORBUG-30824 Change-Id: I4fb3d6fd6041990e5b8b4f6b7c4fd9ebc62f5a4a Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: André Hartmann <aha_1980@gmx.de>
* | ModelEditor: More use of Utils::FilePathJochen Becher4 days11-62/+98
| | | | | | | | | | Change-Id: Ib1030959ae5eea763d3b93684b68ae6ae927839b Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | CppEditor: Fix Windows release buildChristian Kandeler4 days2-2/+1
| | | | | | | | | | | | Change-Id: Ie1fd2f29caab09f09e179e8ad7505a8a0fac6d8a Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | CppEditor: Move ConvertToCamelCase quickfix to its own filesChristian Kandeler4 days7-147/+206
| | | | | | | | | | | | Change-Id: Ic45ad1732fbf1253088db1b8adb93d752ed7cd1c Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | CppEditor: Move ConvertNumericLiteral quickfix to its own filesChristian Kandeler4 days6-188/+218
| | | | | | | | | | | | Change-Id: Ic372fa9bab08ea294ca0890610696c0f06b8fecb Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | CppEditor: Move SplitSimpleDeclaration quickfix into its own filesChristian Kandeler4 days6-126/+157
| | | | | | | | | | | | Change-Id: I74f656ed29ae2eb15afa89a0ad01c91333b99345 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | CppEditor: Move ConvertToMetaMethodCall quickfix to its own filesChristian Kandeler4 days8-233/+287
| | | | | | | | | | | | Change-Id: Ic2c64e8825cf9d7ee4b7e90fc6cdda5aca9bb8c7 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | CppEditor: Move CompleteSwitchStatement quickfix into its own filesChristian Kandeler4 days7-771/+813
| | | | | | | | | | | | Change-Id: Ibb4032c4c9715af62f644e84985712b68a11fdd9 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | CppEditor: Move AssignToLocalVariable quickfix to its own filesChristian Kandeler4 days8-461/+526
| | | | | | | | | | | | Change-Id: Ia0072846e97e4db50c60acf19af5e695e8472a6b Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Move ConvertFromAndToPointer quickfix to its own filesChristian Kandeler4 days7-672/+718
| | | | | | | | | | | | Change-Id: Ie5f80072e5225ee0394ad0dc1dde2309133aae9d Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | CppEditor: Move ExtractLiteralAsParameter quickfix to its own filesChristian Kandeler4 days8-514/+576
| | | | | | | | | | Change-Id: Ib443b2ae2b3b07685471384b0d26c8ef9deac1b2 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | CMake: Fix translatable stringEike Ziller4 days1-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Translatable strings should not start with a space, but always adding a fixed string to an existing string is not a good thing to do in any case. Languages/translators might have different opinions on this. There is no good way to do this without breaking the original string, so just do it. Amends 0e30918955eae566246b1bbd8deaef9f67ebaf07 Change-Id: I4f240d1e0e45f12ee3a7e88dd11a0b539557ab4e Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | CppEditor: Move ExtractFunction quickfix to its own filesChristian Kandeler4 days8-717/+778
| | | | | | | | | | | | Change-Id: Iff66f8bc7dc48c9c7d38c77cfe4f43915236fb1c Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | CppEditor: Move quickfixes for rewriting comments into dedicated filesChristian Kandeler4 days8-823/+888
| | | | | | | | | | | | Change-Id: If27459e7219642f6518a6c9099ca0bdae7502511 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | CppEditor: Move control statement quickfixes into dedicated filesChristian Kandeler4 days8-1256/+1355
| | | | | | | | | | | | Change-Id: Ie4fb4bb466c151cc7666aecb5307fee6f6fd56d8 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Move quickfixes for logical operations into dedicated filesChristian Kandeler5 days6-320/+349
| | | | | | | | | | | | Change-Id: Ie0009820b7320ed71331e1611d6cf9701c54c089 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | CppEditor: Move "create decl from use" quickfixes into dedicated filesChristian Kandeler5 days10-1193/+1272
| | | | | | | | | | | | Change-Id: Id93f4a5cdf7f2a36397458f3b00bb2a0cdefd69f Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | CppEditor: Move quickfixes for string literals into dedicated filesChristian Kandeler5 days7-710/+772
| | | | | | | | | | | | Change-Id: I60d9d30981a68a6393ba39f566bd174b0f391793 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | CppEditor: Move "add include" and "add forward decl" quickfixesChristian Kandeler5 days8-1449/+1516
| | | | | | | | | | | | | | | | ... to dedicated files. Change-Id: Ifb2c00241b3e77c33fdfc79227486e431ecab5d7 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | CppEditor: Move "insert definition" quickfixes into dedicated filesChristian Kandeler5 days8-2086/+2142
| | | | | | | | | | Change-Id: Ib314f43dd44d34ab1e2d9a867e95de2261e6c86a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | CppEditor: Move "move function definition" quickfixes to dedicated filesChristian Kandeler5 days10-1952/+2016
| | | | | | | | | | | | Change-Id: I4e963bd7fef1f1c9f0b69dde56298a52c74e01e4 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | CppEditor: Move ConvertQt4Connect quickfix to its own filesChristian Kandeler5 days8-463/+521
| | | | | | | | | | | | Change-Id: I04b2548d860250fd916c035de68516b7c3f1628c Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* | Merge remote-tracking branch 'origin/13.0'Eike Ziller5 days9-20/+28
|\| | | | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake doc/qtcreator/src/projects/creator-only/creator-projects-build-run-tutorial.qdoc qbs/modules/qtc/qtc.qbs Change-Id: I67a2540677a8b5c309c0c81e2a509a61d0a65aa8
| * Doc: Fix QDoc warnings for the API referenceLeena Miettinen5 days2-8/+11
| | | | | | | | | | | | Change-Id: I3507009756822f3ac795057a37c5f34a6e2bcd10 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
| * Android: Don't crash when dis- and reconnecting phone via USBAlessandro Portale6 days3-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When ADB signals a change about the list of connected devices, the whole build/run steps tree gets deleted and recreated. The AndroidBuildApkStep is a part of that tree and starts one or more "keytool" processes on creation/init. They were started with their own event loop. Those synthetic event loops caused a change in order of deletion which led to crashes with obscure backtraces. This change removes the event loop creation from "keytool" calls. The crash is avoided. The calls take ~0.5 seconds. The short UI freeze should be an acceptable hotfix trade-off for a crash in QtC13. If 0.5 seconds freeze seem too much, a better fix could be done in QtC 14. Fixes: QTCREATORBUG-30645 Fixes: QTCREATORBUG-30770 Change-Id: I8842dc87023142ae75572bf255c7f1ec808d9bab Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
| * CMake: Fix library build path for MinGWEike Ziller9 days1-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | The code that handled the MinGW case of libFoo.a -> libFoo.dll broke the case of libFoo.dll.a -> libFoo.dll that is handled by the code before that. Amends 0d8a542b4f7d8a7b4d27f42ff16d309fba6cbf22 Amends 8713919f31f2aecc7e7c15f1fc9ce7906b8fefa0 Fixes: QTCREATORBUG-30556 Change-Id: I76f60c5e646bce97169b205860babf6a0d3b08b6 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
| * RemoteLinux: Fix rsync command-line constructionChristian Kandeler11 days1-1/+2
| | | | | | | | | | | | Fixes: QTCREATORBUG-30795 Change-Id: I1311e9a9cfe9c3f6c5a4c3166a504eb27f652f9f Reviewed-by: hjk <hjk@qt.io>
| * Designer: Do not default to Qt4 module names in include statementsChristian Kandeler2024-05-071-1/+1
| | | | | | | | | | | | | | Fixes: QTCREATORBUG-30751 Change-Id: Ieca6779aa40b55536f0ce07b1803ff7a1a31004c Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
| * Editors: Update navigation history when closing with the tool buttonEike Ziller2024-05-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | The code path for the global actions (File menu, shortcut) were adding the closed document to the history, but the editor view local action did not. Move the call one level deeper, so it is done for both. That fixes Window > Go Back under some circumstances in which it didn't open closed files again. Change-Id: I74bdb02209b8ac7bb7714d9a827e3a0c30a4c9e9 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* | Lua: Fix meta file install locationMarcus Tillmanns5 days1-1/+1
| | | | | | | | | | | | Change-Id: I3dcd16057bac3ba4b5e125253b48c6a03f1ca33d Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Locator: Remove settings restoring from QtC 4.15Eike Ziller5 days8-112/+2
| | | | | | | | | | | | Change-Id: I9c263122d649bb284acc9a1fc2409b3761ca8643 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
* | LanguageClient: Fix conditionEike Ziller5 days1-1/+1
| | | | | | | | | | | | | | | | Amends 770f1b0376db49b9ea5aad906dd6165ab71d9152 Change-Id: I289bc9af8499860e58a95e9c1d83faf92c8056f9 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Editors: Add menus for back/forward buttonsEike Ziller5 days4-48/+103
| | | | | | | | | | | | | | | | | | | | | | | | Add menus to the back and forward buttons in the editor tool bar, that show history the history. Limited to one entry per consecutive same file path, because we currently don't have the means to visually distinguish multiple locations in the same file. Fixes: QTCREATORBUG-347 Change-Id: I69c5cfaf4c12ec8b59f98eb692c799babca0458a Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* | Editors: Centralize creation of EditLocation for historyEike Ziller5 days3-45/+26
| | | | | | | | | | Change-Id: I05387ccf444351de4002b706f7c03027fdd9adaf Reviewed-by: David Schulz <david.schulz@qt.io>
* | TextEditor: Move navigation history update from Widget to IEditorEike Ziller5 days2-5/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Telling the EditorManager to update the navigation history only really makes sense in the context of IEditor, not if the widget is used in some other context. For this reason the code in the text editor widget also had a check to only add history in case the current editor's widget is the text editor widget - which does not work in case of e.g. the Markdown editor or the Compiler Explorer. Signaling the request for adding navigation points to the IEditor gives these other editors that integrate text editor(s) a chance to implement this too. Change-Id: Id1bb3516519f48a3f4448ac226be21e52bb02b2b Reviewed-by: David Schulz <david.schulz@qt.io>
* | TextEditors: Do not add to history twice for Ctrl+Click navigationEike Ziller5 days1-1/+0
| | | | | | | | | | | | | | | | | | When Ctrl+Clicking to follow symbols, the original location was added twice to the history, once in the click handler, and once when the link was opened in `TextEditorWidget::openLink` Change-Id: I806165621d7ea229aa963b5b7d83c5327d8e7f14 Reviewed-by: David Schulz <david.schulz@qt.io>
* | Lua: Add better error output to fetch()Marcus Tillmanns5 days1-2/+6
| | | | | | | | | | Change-Id: Ic9092ff52130ac3cfc620ead9a1c69f112a864ac Reviewed-by: David Schulz <david.schulz@qt.io>
* | Android: Add locking mechanism when creating avdJarek Kobus5 days2-2/+7
| | | | | | | | | | | | | | | | | | | | | | Lock avd file system watcher changes when executing create avd command. Otherwise the avd file system watcher sends notifications during create avd command execution and subsequent avd list command doesn't report the device which is being added, yet. Change-Id: I1a0123d1bf14cf76e3a90e7f19416eb634e9c4a6 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* | CommandLine: Use more 1-arg c'torJarek Kobus5 days18-26/+24
| | | | | | | | | | Change-Id: If52c4094f94859d51e31862d913b1756e333e512 Reviewed-by: hjk <hjk@qt.io>