aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/copilot/copilotplugin.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Core: Introduce a settings category for AI-related settingsChristian Kandeler2025-06-041-5/+0
| | | | | | | ... and move the Copilot settings page there. Change-Id: Ic1211eda0f12f16f6e7ff263a4498403b2297733 Reviewed-by: Alessandro Portale <[email protected]>
* Editor: move block related infos out of the layoutDavid Schulz2025-04-011-1/+1
| | | | | | | | | | All the static TextDocumentLayout functions operating on block user data are not related to the TextDocumentLayout. So move them to the TextBlockUserData and replace the member functions there with the static functions from TextDocumentLayout. Change-Id: Ief34a0dfce5917f064e5d06e661f2111f87f0aa7 Reviewed-by: Christian Stenger <[email protected]>
* Core: Provide settings categories centrallyChristian Kandeler2024-11-151-0/+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]>
* TextEditor: filter suggestions while typingDavid Schulz2024-10-111-1/+0
| | | | | | | | | This will remove suggestions that are no longer applyable with the current editor content. Change-Id: Ibfc47495d5dda99a9ef2d7fe3f69c83a2d7e3997 Reviewed-by: <[email protected]> Reviewed-by: Marcus Tillmanns <[email protected]>
* TextEditor: add generic cyclic suggestionDavid Schulz2024-09-041-8/+6
| | | | | | | And use the added suggestion for copilot. Change-Id: I896fa4c74c7099e9c6df483d4f92617da910a733 Reviewed-by: Marcus Tillmanns <[email protected]>
* Use the new BaseAspect::addOnChanged in a few placeshjk2024-07-121-1/+1
| | | | | | | | ... and in some cases move it closer to the aspect setup. I kept the original location in cases where the order possibly matters. Change-Id: I4774ea355d0d1e3cf890676a84121195fca6d406 Reviewed-by: Christian Stenger <[email protected]>
* Core: Rename ActionBuilder::setOn* to addOn*hjk2023-12-131-6/+6
| | | | | | | There could be multiple connections. Change-Id: I7dbca9d24599f776b7d1f1bfa11826e3eeb5640a Reviewed-by: Eike Ziller <[email protected]>
* Copilot: Move plugin class definition to .cpphjk2023-11-221-103/+114
| | | | | Change-Id: Ic21b150c08924a273c3d10a3b386fc7dcb9c8e1a Reviewed-by: Christian Stenger <[email protected]>
* Copilot: Use new construction pattern for project panel factoryhjk2023-11-161-7/+1
| | | | | | Change-Id: Id703f377f353390e63535a0c98078c66909cbdd4 Reviewed-by: <[email protected]> Reviewed-by: Christian Stenger <[email protected]>
* CoPilot: Use ActionBuilderhjk2023-11-131-47/+36
| | | | | Change-Id: I4a7dcce271a40038c8518be58e8fa626789ade61 Reviewed-by: Christian Stenger <[email protected]>
* Tr: Small fixes like full stops, whitespace and typosEike Ziller2023-10-181-2/+2
| | | | | | | Change-Id: I4d1edba6d28661af3c2255add35141f1e73fc304 Reviewed-by: Christian Stenger <[email protected]> Reviewed-by: Leena Miettinen <[email protected]> Reviewed-by: Jarek Kobus <[email protected]>
* Copilot: start the client in the delayed initialize phaseDavid Schulz2023-08-311-4/+9
| | | | | Change-Id: I4470491f5f0a2b1d88ed5b2e23444bf3a28d8256 Reviewed-by: Marcus Tillmanns <[email protected]>
* Copilot: Move closer to latest settings setup and usage patternhjk2023-07-141-25/+13
| | | | | Change-Id: I86983f55cd53a540e2fe1a5b307ebf67f7ea7a98 Reviewed-by: Marcus Tillmanns <[email protected]>
* Merge remote-tracking branch 'origin/11.0'Eike Ziller2023-07-101-1/+1
|\ | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs Change-Id: If3ada34dcc764fa1d0cce04fd343fb5a02c2fbaa
| * Copilot: fix crash on explicitly completion requestDavid Schulz2023-07-061-1/+1
| | | | | | | | | | Change-Id: I6bdbc25063818399f1d2c81b9e8f7508f57a4b72 Reviewed-by: Marcus Tillmanns <[email protected]>
* | Utils: Make aspect settings access implicithjk2023-07-071-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | Generally, aspects should use fromMap/toMap, but some older pages use {from,to}Settings with always the same ICore::settings(). To make that less intrusive on the user code side, make that globally implicit. Task-number: QTCREATORBUG-29167 Change-Id: I29a8e23a31eb8061bb143e93931a07c6741eb7f9 Reviewed-by: Christian Stenger <[email protected]>
* | Utils: Rework aspect implementationhjk2023-06-291-4/+2
|/ | | | | | | | | | This avoids some repetition and could be a step towards having type storage in (or rather accessible from) the base, so we can have aspects for more complex data (treemodels...) that are not easily converted to QVariant. Change-Id: I9797b3d5646195705212db1830d2b415291ac651 Reviewed-by: Christian Stenger <[email protected]>
* Copilot: add shortcuts to cycle through suggestionsDavid Schulz2023-06-211-0/+48
| | | | | | Change-Id: Id626c386f3b986ba0d1493387d542539b3d3005d Reviewed-by: <[email protected]> Reviewed-by: Marcus Tillmanns <[email protected]>
* Copilot: Do not try to start copilot without nodejsChristian Stenger2023-05-311-0/+3
| | | | | | | | Avoids the attempt to start the client if nodejs cannot be found. Change-Id: I3783280120ca754291a92b3308c1192906facd08 Reviewed-by: Marcus Tillmanns <[email protected]>
* Copilot: Allow user to disable CopilotMarcus Tillmanns2023-05-261-5/+69
| | | | | | | | Fixes: QTCREATORBUG-29179 Change-Id: I274de1f13f773fb61b376643b61056b6f14dabaf Reviewed-by: BogDan Vatra <[email protected]> Reviewed-by: David Schulz <[email protected]> Reviewed-by: Leena Miettinen <[email protected]>
* Copilot: shutdown plugin asynchronouslyDavid Schulz2023-05-241-0/+8
| | | | | | | | Wait for the client to finish. This fixes a crash when running the plugin unit tests of the copilot plugin. Change-Id: Id0805cb628a79316cd904350bb159ff1369a03b9 Reviewed-by: Christian Stenger <[email protected]>
* Use new FilePathAspect in a few more placeshjk2023-05-171-2/+2
| | | | | | Change-Id: I910a802255c8d54a31313dcccb0d1a48ec577b7a Reviewed-by: <[email protected]> Reviewed-by: Alessandro Portale <[email protected]>
* Copilot: Take advantage of IOptionPage::setWidgetCreator()hjk2023-04-211-1/+1
| | | | | | | | Less boilerplate for the implementation add user code access to IOptionPage::{apply,finish} is planned to be removed. Change-Id: I03bbde071fdf673bee0568baa9ae9fab8d816590 Reviewed-by: David Schulz <[email protected]>
* Copilot: Add missing includeMarcus Tillmanns2023-03-151-0/+2
| | | | | Change-Id: I313a394a0ff5bd352b7cb15ed2b7e6e02aefaa61 Reviewed-by: hjk <[email protected]>
* Copilot: add command to explicitly request copilot suggestionsDavid Schulz2023-03-151-1/+15
| | | | | | Change-Id: I3bf321fc2ebc6d44819c1a799be9207aa3ca59f1 Reviewed-by: Marcus Tillmanns <[email protected]> Reviewed-by: Qt CI Bot <[email protected]>
* Copilot: improve client handlingDavid Schulz2023-03-131-17/+14
| | | | | | | | | | | | | | - centralize starting client - allow to start copilot with alternative settings - do not reset the client on finished. A finish might be followed by a restart attempt, so untracking the client in the plugin can result in having multiple running clients. Use a QPointer instead to safely reset once the client is deleted. Change-Id: Ifab8b04287d84bbdd4a0e936f4684b8d4391da2b Reviewed-by: Marcus Tillmanns <[email protected]> Reviewed-by: <[email protected]>
* Copilot: robustify request logicDavid Schulz2023-03-031-1/+5
| | | | | Change-Id: Ifa46bc05f0bab8e3c7fc40d855a35e940f0628da Reviewed-by: Marcus Tillmanns <[email protected]>
* Copilot: Various coverity warning fixesMarcus Tillmanns2023-02-271-0/+10
| | | | | Change-Id: I5d86606611369f4bc11f9f21e308139bba700eb0 Reviewed-by: Eike Ziller <[email protected]>
* Copilot: Add LSP plugin for CopilotMarcus Tillmanns2023-02-211-0/+37
Fixes: QTCREATORBUG-27771 Change-Id: I1249b9a4492427208a70b3e21bf20ac668fc3c50 Reviewed-by: hjk <[email protected]>