Skip to content

Commit 1a9ab79

Browse files
authored
The king is dead, long live the king (#170)
1 parent 26a4728 commit 1a9ab79

20 files changed

+175
-161
lines changed

.github/workflows/build-extension.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
6464
service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}
6565

66-
- name: Upload Codeium Visual Studio VSIX
66+
- name: Upload Windsurf Visual Studio VSIX
6767
if: env.IS_RELEASE == 'true'
6868
uses: google-github-actions/upload-cloud-storage@v2
6969
with:

CodeiumVS/CodeiumVSPackage.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace CodeiumVS;
2424
[InstalledProductRegistration(Vsix.Name, Vsix.Description, Vsix.Version)]
2525
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
2626
[ProvideMenuResource("Menus.ctmenu", 1)]
27-
[ProvideOptionPage(typeof(SettingsPage), "Codeium", "Codeium", 0, 0, true)]
27+
[ProvideOptionPage(typeof(SettingsPage), "Windsurf", "Windsurf", 0, 0, true)]
2828
[ProvideToolWindow(
2929
typeof(ChatToolWindow), MultiInstances = false, Style = VsDockStyle.Tabbed,
3030
Orientation = ToolWindowOrientation.Right,
@@ -77,8 +77,8 @@ await LogAsync(
7777
await LogAsync(
7878
$"CodeiumVSPackage.InitializeAsync: Failed to register commands; Exception {ex}");
7979
await VS.MessageBox.ShowErrorAsync(
80-
"Codeium: Failed to register commands.",
81-
"Codeium might not work correctly. Please check the output window for more details.");
80+
"Windsurf: Failed to register commands.",
81+
"Windsurf might not work correctly. Please check the output window for more details.");
8282
}
8383

8484
try
@@ -89,12 +89,12 @@ await VS.MessageBox.ShowErrorAsync(
8989
}
9090
catch (Exception ex)
9191
{
92-
await LogAsync("Codeium Error" + ex);
92+
await LogAsync("Windsurf Error" + ex);
9393
throw;
9494
}
9595

9696
await LanguageServer.InitializeAsync();
97-
await LogAsync("Codeium Extension for Visual Studio");
97+
await LogAsync("Windsurf Extension for Visual Studio");
9898
}
9999

100100
protected override void Dispose(bool disposing)
@@ -158,7 +158,7 @@ public async Task UpdateSignedInStateAsync()
158158
delegate { new EnterTokenDialogWindow().ShowDialog(); }),
159159
];
160160

161-
NotificationAuth.Show("[Codeium] To enable Codeium, please sign in to your account",
161+
NotificationAuth.Show("[Windsurf] To enable Windsurf, please sign in to your account",
162162
KnownMonikers.AddUser,
163163
true,
164164
null,
@@ -249,9 +249,9 @@ public static void OpenInBrowser(string url)
249249
}
250250
}
251251

252-
Instance?.Log($"Codeium failed to open the browser, please use this URL instead: {url}");
252+
Instance?.Log($"Windsurf failed to open the browser, please use this URL instead: {url}");
253253
VS.MessageBox.Show(
254-
"Codeium: Failed to open browser",
254+
"Windsurf: Failed to open browser",
255255
$"Please use this URL instead (you can copy from the output window):\n{url}");
256256
}
257257

CodeiumVS/Commands.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
2626
typeof(ChatToolWindow), 0, create: true, CodeiumVSPackage.Instance.DisposalToken);
2727
if (toolWindowPane == null || toolWindowPane.Frame == null)
2828
{
29-
throw new NotSupportedException("Cannot create Codeium chat tool window");
29+
throw new NotSupportedException("Cannot create Windsurf chat tool window");
3030
}
3131
}
3232
}
@@ -271,7 +271,7 @@ protected override void BeforeQueryStatus(EventArgs e)
271271
base.BeforeQueryStatus(e);
272272
if (Command.Visible)
273273
Command.Text =
274-
is_function ? "Codeium: Explain Function" : "Codeium: Explain Code block";
274+
is_function ? "Windsurf: Explain Function" : "Windsurf: Explain Code block";
275275
}
276276

277277
protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
@@ -303,7 +303,7 @@ protected override void BeforeQueryStatus(EventArgs e)
303303
base.BeforeQueryStatus(e);
304304
if (Command.Visible)
305305
Command.Text =
306-
is_function ? "Codeium: Refactor Function" : "Codeium: Refactor Code block";
306+
is_function ? "Windsurf: Refactor Function" : "Windsurf: Refactor Code block";
307307
}
308308

309309
protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)

CodeiumVS/LanguageServer/LanguageServer.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace CodeiumVS;
3030
public class LanguageServer
3131
{
3232
private string _languageServerURL;
33-
private string _languageServerVersion = "1.42.3";
33+
private string _languageServerVersion = "1.42.7";
3434

3535
private int _port = 0;
3636
private System.Diagnostics.Process _process;
@@ -136,7 +136,7 @@ public async Task SignInWithAuthTokenAsync(string authToken)
136136

137137
// show an error message box
138138
var msgboxResult = await VS.MessageBox.ShowAsync(
139-
"Codeium: Failed to sign in. Please check the output window for more details.",
139+
"Windsurf: Failed to sign in. Please check the output window for more details.",
140140
"Do you want to retry?",
141141
OLEMSGICON.OLEMSGICON_WARNING,
142142
OLEMSGBUTTON.OLEMSGBUTTON_RETRYCANCEL,
@@ -170,7 +170,7 @@ public async Task SignInAsync()
170170
{
171171
// show an error message box
172172
var msgboxResult = await VS.MessageBox.ShowAsync(
173-
"Codeium: Failed to get the Authentication Token. Please check the output window for more details.",
173+
"Windsurf: Failed to get the Authentication Token. Please check the output window for more details.",
174174
"Do you want to retry?",
175175
OLEMSGICON.OLEMSGICON_WARNING,
176176
OLEMSGBUTTON.OLEMSGBUTTON_RETRYCANCEL,
@@ -186,7 +186,7 @@ public async Task SignInAsync()
186186

187187
string state = Guid.NewGuid().ToString();
188188
string portalUrl = _package.SettingsPage.EnterpriseMode ? _package.SettingsPage.PortalUrl
189-
: "https://www.codeium.com";
189+
: "https://www.windsurf.com";
190190
string redirectUrl = Uri.EscapeDataString($"http://127.0.0.1:{_port}/auth");
191191
string url =
192192
$"{portalUrl}/profile?response_type=token&redirect_uri={redirectUrl}&state={state}&scope=openid%20profile%20email&redirect_parameters_type=query";
@@ -258,7 +258,7 @@ private async Task ThreadDownload_UpdateProgressAsync(DownloadProgressChangedEve
258258
progressDialog.UpdateProgress(
259259
$"Downloading language server v{_languageServerVersion} ({e.ProgressPercentage}%)",
260260
$"{recievedBytesMb:f2}Mb / {totalBytesMb:f2}Mb",
261-
$"Codeium: Downloading language server v{_languageServerVersion} ({e.ProgressPercentage}%)",
261+
$"Windsurf: Downloading language server v{_languageServerVersion} ({e.ProgressPercentage}%)",
262262
(int)e.BytesReceived,
263263
(int)e.TotalBytesToReceive,
264264
true,
@@ -275,11 +275,11 @@ private async Task ThreadDownload_OnCompletedAsync(AsyncCompletedEventArgs e,
275275
{
276276
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
277277

278-
progressDialog.StartWaitDialog("Codeium",
278+
progressDialog.StartWaitDialog("Windsurf",
279279
$"Extracting files...",
280280
"Almost done",
281281
null,
282-
$"Codeium: Extracting files...",
282+
$"Windsurf: Extracting files...",
283283
0,
284284
false,
285285
true);
@@ -304,7 +304,7 @@ await _package.LogAsync(
304304
];
305305

306306
errorBar.Show(
307-
"[Codeium] Critical Error: Failed to download the language server. Do you want to retry?",
307+
"[Windsurf] Critical Error: Failed to download the language server. Do you want to retry?",
308308
KnownMonikers.StatusError,
309309
true,
310310
null,
@@ -423,11 +423,11 @@ await _package.LogAsync(
423423
IVsThreadedWaitDialog4 progressDialog = waitDialogFactory.CreateInstance();
424424

425425
progressDialog.StartWaitDialog(
426-
"Codeium",
426+
"Windsurf",
427427
$"Downloading language server v{_languageServerVersion}",
428428
"",
429429
null,
430-
$"Codeium: Downloading language server v{_languageServerVersion}",
430+
$"Windsurf: Downloading language server v{_languageServerVersion}",
431431
0,
432432
false,
433433
true);
@@ -489,7 +489,7 @@ await _package.LogAsync(
489489

490490
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
491491
errorBar.Show(
492-
"[Codeium] Failed to verify the language server digital signature. The executable might be corrupted.",
492+
"[Windsurf] Failed to verify the language server digital signature. The executable might be corrupted.",
493493
KnownMonikers.IntellisenseWarning,
494494
true,
495495
null,
@@ -526,7 +526,7 @@ await _package.LogAsync(
526526
$"LanguageServer.StartAsync: Failed to create directories; Exception: {ex}");
527527

528528
new NotificationInfoBar().Show(
529-
"[Codeium] Critical error: Failed to create language server directories. Please check the output window for more details.",
529+
"[Windsurf] Critical error: Failed to create language server directories. Please check the output window for more details.",
530530
KnownMonikers.StatusError,
531531
true,
532532
null,
@@ -594,7 +594,7 @@ await _package.LogAsync(
594594

595595
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
596596
errorBar.Show(
597-
"[Codeium] Critical Error: Failed to start the language server. Do you want to retry?",
597+
"[Windsurf] Critical Error: Failed to start the language server. Do you want to retry?",
598598
KnownMonikers.StatusError,
599599
true,
600600
null,
@@ -616,7 +616,7 @@ await _package.LogAsync(
616616
// warn the user about the issue
617617
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
618618
new NotificationInfoBar().Show(
619-
"[Codeium] Failed to read output from the language server, Codeium might not work properly.",
619+
"[Windsurf] Failed to read output from the language server, Windsurf might not work properly.",
620620
KnownMonikers.IntellisenseWarning,
621621
true,
622622
null,
@@ -650,7 +650,7 @@ await _package.LogAsync(
650650
else
651651
{
652652
new NotificationInfoBar().Show(
653-
"[Codeium] Critical Error: Failed to get the language server port. Please check the output window for more details.",
653+
"[Windsurf] Critical Error: Failed to get the language server port. Please check the output window for more details.",
654654
KnownMonikers.StatusError,
655655
true,
656656
null,

CodeiumVS/OutputWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public OutputWindow()
1313
if (ServiceProvider.GlobalProvider.GetService(typeof(SVsOutputWindow))
1414
is IVsOutputWindow obj)
1515
{
16-
obj.CreatePane(ref OutputWindowGuid, "Codeium", 1, 0);
16+
obj.CreatePane(ref OutputWindowGuid, "Windsurf", 1, 0);
1717
obj.GetPane(ref OutputWindowGuid, out outputPane);
1818
}
1919
}

CodeiumVS/QuickInfo/QuickInfoSource.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ public async Task<QuickInfoItem> GetQuickInfoItemAsync(IAsyncQuickInfoSession se
5959
await GetTagAggregatorAsync(session.TextView);
6060

6161
Assumes.True(_tagAggregator != null,
62-
"Codeium Quick Info Source couldn't create a tag aggregator for error tags");
62+
"Windsurf Quick Info Source couldn't create a tag aggregator for error tags");
6363

6464
// Put together the span over which tags are to be discovered.
6565
// This will be the zero-length span at the trigger point of the session.
6666
SnapshotPoint? subjectTriggerPoint = session.GetTriggerPoint(_owner.CurrentSnapshot);
6767
if (!subjectTriggerPoint.HasValue)
6868
{
69-
Debug.Fail("The Codeium Quick Info Source is being called when it shouldn't be.");
69+
Debug.Fail("The Windsurf Quick Info Source is being called when it shouldn't be.");
7070
return null;
7171
}
7272

@@ -102,8 +102,8 @@ public async Task<QuickInfoItem> GetQuickInfoItemAsync(IAsyncQuickInfoSession se
102102
if (appToSpan != null && problemMessage.Length > 0)
103103
{
104104
var hyperLink = ClassifiedTextElement.CreateHyperlink(
105-
"Codeium: Explain Problem",
106-
"Ask codeium to explain the problem",
105+
"Windsurf: Explain Problem",
106+
"Ask Windsurf to explain the problem",
107107
() =>
108108
{
109109
ThreadHelper.JoinableTaskFactory
@@ -135,13 +135,13 @@ private async Task GetTagAggregatorAsync(ITextView textView)
135135
else if (_tagAggregatorTextView != textView)
136136
{
137137
throw new ArgumentException(
138-
"The Codeium Quick Info Source cannot be shared between TextViews.");
138+
"The Windsurf Quick Info Source cannot be shared between TextViews.");
139139
}
140140
}
141141
}
142142

143143
[Export(typeof(IAsyncQuickInfoSourceProvider))]
144-
[Name("Codeium Quick Info Provider")]
144+
[Name("Windsurf Quick Info Provider")]
145145
[ContentType("any")]
146146
[Order(After = "Default Quick Info Presenter")]
147147
internal sealed class AsyncQuickInfoSourceProvider : IAsyncQuickInfoSourceProvider

0 commit comments

Comments
 (0)