aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/haskell
Commit message (Collapse)AuthorAgeFilesLines
* Remove the Haskell pluginEike Ziller2025-03-1228-1740/+0
| | | | | | | | | | | | Nowadays the same can be achieved by opening projects as a Workspace. Users need to install and register the language server themselves anyway and adding a build & run configuration are trivial. So this plugin is a lot of code that doesn't really improve the user experience over the stock generic support. Change-Id: Iad25a8e23b4fcbdaa5682f21bef6014156b07a5e Reviewed-by: hjk <[email protected]>
* Project managers: Replace various uses of ProjectConfiguration::target()Christian Kandeler2025-03-111-5/+3
| | | | | | | Some were wrong, others unneeded. Change-Id: I308288e75f8d1b192863171661d72d27f1e6da07 Reviewed-by: hjk <[email protected]>
* Haskell: Remove unneeded call to Target::updateDefaultRunConfigurationsChristian Kandeler2025-03-071-1/+0
| | | | | | | As per b1dbd7e3580fb92879e0b3e0c9d21c1fd8dc4012. Change-Id: Ic901f958c07003cd66237df7122c976cdc32c2f3 Reviewed-by: Eike Ziller <[email protected]>
* ProjectExplorer: Replace uses of Target signals and member functionsChristian Kandeler2025-03-061-1/+1
| | | | | | | | | ... with ones of BuildConfiguration and BuildSystem. This change handles the obvious cases. The remaining contexts have the Target class as their central component and need closer examination. Change-Id: I05963a5d7924c8f0f348ebf8fc00cddfda4a43bc Reviewed-by: hjk <[email protected]>
* ProjectExplorer: Make run configurations per build configurationChristian Kandeler2025-03-061-5/+3
| | | | | | | | Fixes: QTCREATORBUG-20986 Task-number: QTCREATORBUG-32380 Change-Id: Id5bcb8fcc6d97375f15a1266ae040ea637df9683 Reviewed-by: hjk <[email protected]> Reviewed-by: Christian Stenger <[email protected]>
* Haskell: Remove dead endsJarek Kobus2025-02-144-43/+2
| | | | | | | Detected by Axivion plugin. Change-Id: I3028fd73f293af8c7c9342b9921f96572b3d8492 Reviewed-by: Eike Ziller <[email protected]>
* ProjectExplorer: Switch BuildSystem to "per build config" approachChristian Kandeler2025-02-111-2/+1
| | | | | | | | - Create BuildSystem object centrally in BuildConfiguration - Remove fallback BuildSystem from Target Change-Id: Iff808a1ea7798180f3675b91f18cb3c66e927b8f Reviewed-by: hjk <[email protected]>
* ProjectExplorer: Replace various direct calls to Target::project()Christian Kandeler2025-02-061-7/+3
| | | | | | | ... with more suitable ones in the respective context. Change-Id: Iecd1b8e49389a7c7fdedff1d4a1328f859346ad1 Reviewed-by: hjk <[email protected]>
* Haskell: Make HaskellBuildSystem "per build config"Christian Kandeler2025-02-051-4/+5
| | | | | Change-Id: I6255c09a1cc1e817b53ac26ebe52b7161839e29a Reviewed-by: hjk <[email protected]>
* Haskell: Dissolve buildconfiguration.{h,cpp}Christian Kandeler2025-02-036-150/+105
| | | | | Change-Id: I361584e00dc2b756f1c1d5625ca868165822e8b7 Reviewed-by: Eike Ziller <[email protected]>
* Utils: Rename FilePath::toString() into toUrlishString()hjk2025-01-104-8/+8
| | | | | | | | | | | | | | | | toString() is almost always the wrong conversion, but unfortunately too easy to find and often even working at least for local setup. This here raises the bar as the non-availability of the "obvious" toString() hopefully helps people to think about the semantics of the needed conversion and choose the right toXXX() function. The chosen new name is intentional ugly to reduce the likelihood that this (still almost always wrong) function is used out of convenience. Change-Id: I57f1618dd95ef2629d7d978688d130275e096c0f Reviewed-by: Eike Ziller <[email protected]>
* PE: Rename SimpleTargetRunner into ProcessRunnerJarek Kobus2025-01-061-1/+1
| | | | | Change-Id: Ie666fe0811aa63c54edf12934c6db4e17b26c252 Reviewed-by: hjk <[email protected]>
* ProjectExplorer: Dismantle NamedWidgethjk2024-12-031-5/+4
| | | | | | | | | | ... which was really just a widget with a name. Providing the name separately simplifies the code and makes the setup structurally more similar to the BaseAspect::addToLayout() machinery. Change-Id: I0c528e0afb3c22eb0acac8f181cc36a6ab74d95b Reviewed-by: Christian Kandeler <[email protected]>
* Plugins: Improve display names of pluginsAlessandro Portale2024-11-191-0/+1
| | | | | | | | | | | This introduces a field "DisplayName" to PluginSpec and the plugin spec json files. If present in the spec, PluginSpec::displayName returns it, or otherways falls back to more established fields. Fixes: QTCREATORBUG-31761 Change-Id: I4f4c4f3e33b17dfb2ec63644b1f50b3b9c6c024a Reviewed-by: Leena Miettinen <[email protected]> Reviewed-by: Eike Ziller <[email protected]>
* Core: Provide settings categories centrallyChristian Kandeler2024-11-152-2/+5
| | | | | | | | | It was conceptually wrong that an options page was supposed to set its category's display name and icon. Instead, categories are now explicitly registered with name and icon. Change-Id: Ic10b3791c8068176f55470e6845ab4832160b8e7 Reviewed-by: Eike Ziller <[email protected]>
* Wizards: Use is[Any]PluginRunningAlessandro Portale2024-10-301-1/+1
| | | | | | | | | | | | | | This replaces all occurrences of value('Plugins').indexOf('MyPlugin') >= 0 with isPluginRunning('myplugin') And combines OR'ed sequences with AnyPluginRunning. Tests for (Boot2Qt || Boot2QtQdb) are reduced to just boot2qt, since the other one is history. Change-Id: I21206116e2263579349c77ba3914f8ebfe1f089e Reviewed-by: Eike Ziller <[email protected]>
* ProjectExplorer: Display build configuration specific variables againhjk2024-10-181-3/+0
| | | | | | | | Continues d308b86847abad8. Task-number: QTCREATORBUG-31614 Change-Id: I408d96ccd6854b7bb62e13252c00ed3a29788b4c Reviewed-by: Christian Kandeler <[email protected]>
* ProjectExplorer: improve treescanner scan resultDavid Schulz2024-09-171-1/+1
| | | | | | | | | | | Allow returning all folders scanned by the treescanner. This will be used in the WorkspaceProject to also show empty folders in the project tree. Additionally we are now able to iterate over the complete tree of folder nodes and add the paths to the watcher instead of walking the directory tree again to collect all directories to watch. Change-Id: Ibe7bed9ccee8317918e06fc78ca85f74102d46fc Reviewed-by: Marcus Tillmanns <[email protected]>
* ExtensionSystem: Add PluginId and VendorIdMarcus Tillmanns2024-09-021-0/+2
| | | | | Change-Id: I4f47f95e1f4ff4af73c2b81320087b4592007993 Reviewed-by: Alessandro Portale <[email protected]>
* Merge remote-tracking branch 'origin/14.0'Eike Ziller2024-07-251-0/+13
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/android/androidmanager.cpp src/plugins/android/androidrunner.cpp src/plugins/android/androidrunner.h src/plugins/qmldesigner/components/texteditor/texteditorview.cpp src/plugins/qmldesigner/components/texteditor/texteditorview.h src/plugins/qmldesigner/designmodecontext.cpp src/plugins/qmldesigner/designmodecontext.h src/plugins/qmljseditor/qmljseditingsettingspage.cpp Change-Id: Idada49bb7441e8c5b748bd75b2e6bb2351bd323e
| * Haskell: Add wizard files to qbs buildChristian Stenger2024-07-221-0/+13
| | | | | | | | | | Change-Id: I5aa07fa430baa8b860e3ae540d8b0c1e1ce765c5 Reviewed-by: Christian Kandeler <[email protected]>
* | ProjectManager: Simplify Project::setBuildSystemCreator()Jarek Kobus2024-07-161-1/+1
|/ | | | | | | Make it a template method. Change-Id: I3f0510c89d7f0bfe2f814dadc4d8de01c0e1cc89 Reviewed-by: Christian Kandeler <[email protected]>
* Plugin meta data: Add full stop to descriptionsEike Ziller2024-06-281-1/+1
| | | | | | | | | Where they were missing. The text is shown as a paragraph in the extension manager. Change-Id: I6e15c89fe4023b222e9c476f4312e13fcb0905c0 Reviewed-by: Leena Miettinen <[email protected]> Reviewed-by: Alessandro Portale <[email protected]>
* Utils: Rename PathChooser::rawFilePath() to unxepandedFilePath()hjk2024-06-191-1/+1
| | | | | | | | That's what the implementation does, and judging from the using code wasn't quite clear. Change-Id: I4ca776ba4da83a36162adad2dd595eb39eb0f43d Reviewed-by: Eike Ziller <[email protected]>
* Add long descriptions to some pluginsLeena Miettinen2024-05-311-1/+2
| | | | | | | | | | | | Edited the short descriptions to answer the question "What can I do with this extension" to help users decide whether they need it. In long descriptions, tell users what else they need to be able to use the plugin. Change-Id: Iefce7505b61fc77cf38cc915f1f7dbd25c9cb570 Reviewed-by: Eike Ziller <[email protected]>
* Make it possible to add wizards paths via plugin meta dataEike Ziller2024-05-062-3/+2
| | | | | | | | | | That makes it easy with Lua plugins, and is useful on the C++ side as well. Change-Id: I660956bed47e4c1e27a001ad8999d6701cda86ee Reviewed-by: Marcus Tillmanns <[email protected]> Reviewed-by: Leena Miettinen <[email protected]> Reviewed-by: <[email protected]>
* Haskell: remove unused function declarationDavid Schulz2024-05-031-1/+0
| | | | | Change-Id: I6fb1ede8bb02fa22894200c49b8232631b726134 Reviewed-by: Eike Ziller <[email protected]>
* TextEditor: remove text editor action handlerDavid Schulz2024-04-091-3/+2
| | | | | | | | | | Give each editor a context and register editor actions individually for that context. This removes the need to tell the action handler the current editor. Additionally all actions are now available in editor widgets outside of the EditorManager. Change-Id: I0109866b180889762f8bd8aa07874d8d7c55bfa6 Reviewed-by: Marcus Tillmanns <[email protected]>
* Utils: Fix build with MSVC with C++20Eike Ziller2024-02-281-1/+1
| | | | | | | | | | | | | | | | | Rename process.h back to qtcprocess.h MSVC's "threads" standard header includes <process.h>, and that ends up including our process.h from Utils. There already was a hacky workaround in place for a similar issue with MINGW, but that doesn't work with MSVC because that doesn't have Simply use a name that doesn't conflict. Change-Id: I1159cd2096b4f2dbc4a1728d0131dd6edd30ebd3 Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: <[email protected]> Reviewed-by: hjk <[email protected]>
* Haskell: Fix missing includeChristian Stenger2024-02-011-0/+2
| | | | | | | ..when building with Qt6.2. Change-Id: I224feb4ee8d658ffa2702c0a111c5390c0a80f1a Reviewed-by: Eike Ziller <[email protected]>
* Remove CommandButtonEike Ziller2024-01-261-3/+3
| | | | | | | | | The same can be achieve with a factory method in `Command`, similar to the existing ones for actions and buttons which synchronize their tool tips with the shortcut. Change-Id: I7e17654706b902dfa14f37b958fc2a60705d5cb5 Reviewed-by: hjk <[email protected]>
* Create RunConfiguration specific DebugWorkerFactoriesDominik Holland2024-01-171-0/+4
| | | | | | | | | | | | Instead of relying on the DebuggerRunWorkerFactory to match for all RunConfiguration, every plugin needs to create a WorkerFactory for its own RunConfiguration. Similar to the SimpleTargetRunnerFactory there is now a SimpleDebugRunnerFactory which makes the setup easy. Change-Id: I25aaabcd70f7ac649baeab4eb4c7e88d53dac91e Reviewed-by: hjk <[email protected]>
* SyntaxHighlighter: Remove using global fontSettingsArtem Sokolovskii2023-12-141-1/+0
| | | | | | | | | Currently, default font settings are set inside the highlighter runner after creating a highlighter. It prevents to call TextEditorSettings::fontSettings() from non-main threads. Change-Id: I0c806f0f586c67749cb2964bebdf2bf3c58a5302 Reviewed-by: David Schulz <[email protected]>
* Core: Rename ActionBuilder::setOn* to addOn*hjk2023-12-131-1/+1
| | | | | | | There could be multiple connections. Change-Id: I7dbca9d24599f776b7d1f1bfa11826e3eeb5640a Reviewed-by: Eike Ziller <[email protected]>
* Haskell: Use ActionBuilder to create action to run ghcihjk2023-11-205-34/+25
| | | | | Change-Id: I7bb4064a06e91b580c1d5f72dc4f0ff2ab8ef0cd Reviewed-by: Jarek Kobus <[email protected]>
* Haskell: Move haskell project setup closer to new setup patternhjk2023-11-203-59/+46
| | | | | Change-Id: I3c6e6ad1a6f4b0a8d0a5598ad970c7539d1643e3 Reviewed-by: Jarek Kobus <[email protected]>
* Haskell: Use new setup for run related classeshjk2023-11-203-27/+22
| | | | | Change-Id: I9c6324aea586838d83bf81098499627c8c6c6d4a Reviewed-by: Jarek Kobus <[email protected]>
* Haskell: Use new setup for HaskellEditorFactoryhjk2023-11-203-23/+30
| | | | | | Change-Id: I537248460291d5d649a1dc60a5f495003d76fa8b Reviewed-by: Jarek Kobus <[email protected]> Reviewed-by: <[email protected]>
* Haskell: Use new setup pattern for HaskellBuildConfigurationFactoryhjk2023-11-203-112/+98
| | | | | Change-Id: I4b8598157a8be20d3447dc7c4e3196700ec3d490 Reviewed-by: Jarek Kobus <[email protected]>
* Haskell: Use new setup pattern for StackBuildStephjk2023-11-203-54/+44
| | | | | Change-Id: Id78047e755a3419499d804ada3edb7ec75fa61d1 Reviewed-by: Jarek Kobus <[email protected]>
* Haskell: Move plugin class definition to .cpphjk2023-11-204-55/+28
| | | | | | | ... and simplify setup a bit. Change-Id: Ic5a36c35c083232cb8df3c7a06aaac46bcef55e0 Reviewed-by: Christian Stenger <[email protected]>
* Core: De-QObject-ify editor factorieshjk2023-08-181-3/+3
| | | | | Change-Id: Iaf39ad29576638e994dd2f28d323e445ce2ee93f Reviewed-by: David Schulz <[email protected]>
* Utils: Make FilePathAspect::setDefaultValue take a QStringhjk2023-08-171-2/+2
| | | | | | | | | | This sets the unexpanded value, so going to a "cooked" FilePath can at least theoretically break. On the user side it saves a roundtrip in a few cases, but is more ugly when the input is already a proper FilePath. Change-Id: I8a7e8f6d46fcc34c96b55e41d656dca933fbef4e Reviewed-by: Marcus Tillmanns <[email protected]>
* Utils: Rename ProjectExplorer::Runnable into Utils::ProcessRunDataJarek Kobus2023-08-171-3/+4
| | | | | | | Move it into Utils lib. Change-Id: I3b6c16d18439cabddf59afc03116f13c1970102c Reviewed-by: hjk <[email protected]>
* Build: Change plugin json.in files to CMake styleEike Ziller2023-07-251-19/+19
| | | | | | | | | | | | | They were still using variables in qmake style. Directly use CMake variables in the json.in files and remove the no longer needed escaping of quotes. Adds a fatal message if it detects the old style in a .json.in file for easier porting. Change-Id: I8de88d8db2da55781f0e9d72eda03f943723188e Reviewed-by: Leena Miettinen <[email protected]> Reviewed-by: Cristian Adam <[email protected]>
* Haskell: Delay settings creationhjk2023-07-243-14/+25
| | | | | Change-Id: I45666aa8aab1caa776d2f9f23455dc6a92384018 Reviewed-by: Jarek Kobus <[email protected]>
* Haskell: Fix missing includeChristian Stenger2023-07-071-0/+1
| | | | | | | Amends 9888e1982e18ebed274c9ac7b7c4ba131641aa57. Change-Id: Idef1f1e8cf4922d72e3894da0cee626551e369ab Reviewed-by: hjk <[email protected]>
* Haskell: Use aspects more directly in HaskellRunConfigurationhjk2023-07-073-79/+61
| | | | | | Task-number: QTCREATORBUG-29168 Change-Id: I7b10c001d1a4cc03d69298e59c4eb1097930816a Reviewed-by: Eike Ziller <[email protected]>
* ProjectExplorer: Remove unusual {Arguments,WorkingDir}Aspecthjk2023-07-051-2/+6
| | | | | | | | | | Follows suite to 2cc4967 to have the user side code more uniform. Most of the extra verbosity (setMacroExpander) can go away again when distributing the expander via the "owning" AspectContainer. Change-Id: I9e80cb235f0a4a9ebee601dd638aefbaa41efc1b Reviewed-by: Christian Stenger <[email protected]> Reviewed-by: <[email protected]>
* Utils: Use FilePathAspect::setDefaultValuehjk2023-06-301-1/+1
| | | | | | | | | | ... instead of StringAspect::setDefaultFilePath. Closer to the intended uniform access. Task-number: QTCREATORBUG-29167 Change-Id: I87df385ef98873a0955010149a9a9b09a5f29daf Reviewed-by: Marcus Tillmanns <[email protected]>