forked from qt-creator/qt-creator
Copilot: Disable by default also in the settings
... and make the enabling more prominent. Change-Id: I77e236a1aec2d3ced3280aa8af322a02b8a14dd1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -67,8 +67,8 @@ public:
|
||||
Column {
|
||||
QString("<b>" + Tr::tr("Note:") + "</b>"), br,
|
||||
warningLabel, br,
|
||||
authWidget, br,
|
||||
CopilotSettings::instance().enableCopilot, br,
|
||||
authWidget, br,
|
||||
CopilotSettings::instance().nodeJsPath, br,
|
||||
CopilotSettings::instance().distPath, br,
|
||||
CopilotSettings::instance().autoComplete, br,
|
||||
|
@@ -20,7 +20,7 @@ static void initEnableAspect(BoolAspect &enableCopilot)
|
||||
enableCopilot.setDisplayName(Tr::tr("Enable Copilot"));
|
||||
enableCopilot.setLabelText(Tr::tr("Enable Copilot"));
|
||||
enableCopilot.setToolTip(Tr::tr("Enables the Copilot integration."));
|
||||
enableCopilot.setDefaultValue(true);
|
||||
enableCopilot.setDefaultValue(false);
|
||||
}
|
||||
|
||||
CopilotSettings &CopilotSettings::instance()
|
||||
@@ -52,6 +52,7 @@ CopilotSettings::CopilotSettings()
|
||||
nodeJsPath.setLabelText(Tr::tr("Node.js path:"));
|
||||
nodeJsPath.setHistoryCompleter("Copilot.NodePath.History");
|
||||
nodeJsPath.setDisplayName(Tr::tr("Node.js Path"));
|
||||
nodeJsPath.setEnabler(&enableCopilot);
|
||||
nodeJsPath.setToolTip(
|
||||
Tr::tr("Select path to node.js executable. See https://nodejs.org/en/download/"
|
||||
"for installation instructions."));
|
||||
@@ -62,6 +63,7 @@ CopilotSettings::CopilotSettings()
|
||||
distPath.setLabelText(Tr::tr("Path to agent.js:"));
|
||||
distPath.setHistoryCompleter("Copilot.DistPath.History");
|
||||
distPath.setDisplayName(Tr::tr("Agent.js path"));
|
||||
distPath.setEnabler(&enableCopilot);
|
||||
distPath.setToolTip(Tr::tr(
|
||||
"Select path to agent.js in Copilot Neovim plugin. See "
|
||||
"https://github.com/github/copilot.vim#getting-started for installation instructions."));
|
||||
@@ -70,6 +72,7 @@ CopilotSettings::CopilotSettings()
|
||||
autoComplete.setSettingsKey("Copilot.Autocomplete");
|
||||
autoComplete.setLabelText(Tr::tr("Request completions automatically"));
|
||||
autoComplete.setDefaultValue(true);
|
||||
autoComplete.setEnabler(&enableCopilot);
|
||||
autoComplete.setToolTip(Tr::tr("Automatically request suggestions for the current text cursor "
|
||||
"position after changes to the document."));
|
||||
|
||||
|
Reference in New Issue
Block a user