forked from qt-creator/qt-creator
Copilot: Add support for proxy settings
For easier testing a docker file is added. You can start "buildandrun.sh" in copilot/tests/proxy to get a simple proxy server up and running. The argument "PWDMODE" in buildandrun.sh can be set to "with" and "without" to get a proxy server that needs a password or not. The username and password are user/1234. Fixes: QTCREATORBUG-29485 Change-Id: I3859c9ad04ebd4f9349e25665ba710e23fb64dea Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "copilothoverhandler.h"
|
||||
#include "requests/checkstatus.h"
|
||||
#include "requests/getcompletions.h"
|
||||
#include "requests/seteditorinfo.h"
|
||||
#include "requests/signinconfirm.h"
|
||||
#include "requests/signininitiate.h"
|
||||
#include "requests/signout.h"
|
||||
@@ -50,7 +51,11 @@ public:
|
||||
|
||||
bool isEnabled(ProjectExplorer::Project *project);
|
||||
|
||||
void proxyAuthenticationFailed();
|
||||
|
||||
private:
|
||||
void requestSetEditorInfo();
|
||||
|
||||
QMap<TextEditor::TextEditorWidget *, GetCompletionRequest> m_runningRequests;
|
||||
struct ScheduleData
|
||||
{
|
||||
@@ -59,6 +64,7 @@ private:
|
||||
};
|
||||
QMap<TextEditor::TextEditorWidget *, ScheduleData> m_scheduledRequests;
|
||||
CopilotHoverHandler m_hoverHandler;
|
||||
bool m_isAskingForPassword{false};
|
||||
};
|
||||
|
||||
} // namespace Copilot::Internal
|
||||
|
||||
Reference in New Issue
Block a user