@@ -20,8 +20,9 @@ TC4DWizardIDEMainMenuVsCodeIntegration = class(TInterfacedObject, IC4DWizardID
20
20
procedure AddMenuVsCodeIntegration ;
21
21
procedure AddSubMenuItemOpen ;
22
22
procedure AddSeparator (AName: string);
23
- procedure AddSubMenuInstallGithubCopilot ;
24
23
procedure AddSubMenuInstallDelphiLSP ;
24
+ procedure AddSubMenuInstallGithubCopilot ;
25
+ procedure AddSubMenuInstallSupermaven ;
25
26
function GetShortcutOpenInVsCode : string;
26
27
protected
27
28
function Process : IC4DWizardIDEMainMenuVsCodeIntegration;
@@ -54,8 +55,9 @@ function TC4DWizardIDEMainMenuVsCodeIntegration.Process: IC4DWizardIDEMainMenuVs
54
55
Self.AddMenuVsCodeIntegration;
55
56
Self.AddSubMenuItemOpen;
56
57
Self.AddSeparator(' C4DVsCodeIntegrationSeparator01' );
57
- Self.AddSubMenuInstallGithubCopilot;
58
58
Self.AddSubMenuInstallDelphiLSP;
59
+ Self.AddSubMenuInstallGithubCopilot;
60
+ Self.AddSubMenuInstallSupermaven;
59
61
end ;
60
62
61
63
procedure TC4DWizardIDEMainMenuVsCodeIntegration.AddSeparator (AName: string);
@@ -92,27 +94,27 @@ procedure TC4DWizardIDEMainMenuVsCodeIntegration.AddSubMenuItemOpen;
92
94
FMenuItemVsCodeIntegration.Add(LMenuItem);
93
95
end ;
94
96
95
- procedure TC4DWizardIDEMainMenuVsCodeIntegration.AddSubMenuInstallGithubCopilot ;
97
+ procedure TC4DWizardIDEMainMenuVsCodeIntegration.AddSubMenuInstallDelphiLSP ;
96
98
var
97
99
LMenuItem: TMenuItem;
98
100
begin
99
101
LMenuItem := TMenuItem.Create(FMenuItemVsCodeIntegration);
100
- LMenuItem.Name := TC4DConsts.MENU_IDE_VSCODE_INTEGRATION_INSTALL_GithubCopilot_NAME ;
101
- LMenuItem.Caption := TC4DConsts.MENU_IDE_VSCODE_INTEGRATION_INSTALL_GithubCopilot_CAPTION ;
102
+ LMenuItem.Name := TC4DConsts.MENU_IDE_VSCODE_INTEGRATION_INSTALL_DELPHILSP_NAME ;
103
+ LMenuItem.Caption := TC4DConsts.MENU_IDE_VSCODE_INTEGRATION_INSTALL_DELPHILSP_CAPTION ;
102
104
LMenuItem.ImageIndex := TC4DWizardIDEImageListMain.GetInstance.ImgIndexImport;
103
- LMenuItem.OnClick := TC4DWizardIDEMainMenuClicks.VsCodeIntegrationInstallGithubCopilotClick ;
105
+ LMenuItem.OnClick := TC4DWizardIDEMainMenuClicks.VsCodeIntegrationInstallDelphiLSPClick ;
104
106
FMenuItemVsCodeIntegration.Add(LMenuItem);
105
107
end ;
106
108
107
- procedure TC4DWizardIDEMainMenuVsCodeIntegration.AddSubMenuInstallDelphiLSP ;
109
+ procedure TC4DWizardIDEMainMenuVsCodeIntegration.AddSubMenuInstallGithubCopilot ;
108
110
var
109
111
LMenuItem: TMenuItem;
110
112
begin
111
113
LMenuItem := TMenuItem.Create(FMenuItemVsCodeIntegration);
112
- LMenuItem.Name := TC4DConsts.MENU_IDE_VSCODE_INTEGRATION_INSTALL_DELPHILSP_NAME ;
113
- LMenuItem.Caption := TC4DConsts.MENU_IDE_VSCODE_INTEGRATION_INSTALL_DELPHILSP_CAPTION ;
114
+ LMenuItem.Name := TC4DConsts.MENU_IDE_VSCODE_INTEGRATION_INSTALL_GithubCopilot_NAME ;
115
+ LMenuItem.Caption := TC4DConsts.MENU_IDE_VSCODE_INTEGRATION_INSTALL_GithubCopilot_CAPTION ;
114
116
LMenuItem.ImageIndex := TC4DWizardIDEImageListMain.GetInstance.ImgIndexImport;
115
- LMenuItem.OnClick := TC4DWizardIDEMainMenuClicks.VsCodeIntegrationInstallDelphiLSPClick ;
117
+ LMenuItem.OnClick := TC4DWizardIDEMainMenuClicks.VsCodeIntegrationInstallGithubCopilotClick ;
116
118
FMenuItemVsCodeIntegration.Add(LMenuItem);
117
119
end ;
118
120
@@ -123,4 +125,16 @@ function TC4DWizardIDEMainMenuVsCodeIntegration.GetShortcutOpenInVsCode: string;
123
125
Result := C4DWizardSettingsModel.ShortcutVsCodeIntegrationOpen.Trim;
124
126
end ;
125
127
128
+ procedure TC4DWizardIDEMainMenuVsCodeIntegration.AddSubMenuInstallSupermaven ;
129
+ var
130
+ LMenuItem: TMenuItem;
131
+ begin
132
+ LMenuItem := TMenuItem.Create(FMenuItemVsCodeIntegration);
133
+ LMenuItem.Name := TC4DConsts.MENU_IDE_VSCODE_INTEGRATION_INSTALL_Supermaven_NAME;
134
+ LMenuItem.Caption := TC4DConsts.MENU_IDE_VSCODE_INTEGRATION_INSTALL_Supermaven_CAPTION;
135
+ LMenuItem.ImageIndex := TC4DWizardIDEImageListMain.GetInstance.ImgIndexImport;
136
+ LMenuItem.OnClick := TC4DWizardIDEMainMenuClicks.VsCodeIntegrationInstallSupermavenClick;
137
+ FMenuItemVsCodeIntegration.Add(LMenuItem);
138
+ end ;
139
+
126
140
end .
0 commit comments