Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }}

- name: Upload Codeium Visual Studio VSIX
- name: Upload Windsurf Visual Studio VSIX
if: env.IS_RELEASE == 'true'
uses: google-github-actions/upload-cloud-storage@v2
with:
Expand Down
16 changes: 8 additions & 8 deletions CodeiumVS/CodeiumVSPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace CodeiumVS;
[InstalledProductRegistration(Vsix.Name, Vsix.Description, Vsix.Version)]
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
[ProvideMenuResource("Menus.ctmenu", 1)]
[ProvideOptionPage(typeof(SettingsPage), "Codeium", "Codeium", 0, 0, true)]
[ProvideOptionPage(typeof(SettingsPage), "Windsurf", "Windsurf", 0, 0, true)]
[ProvideToolWindow(
typeof(ChatToolWindow), MultiInstances = false, Style = VsDockStyle.Tabbed,
Orientation = ToolWindowOrientation.Right,
Expand Down Expand Up @@ -77,8 +77,8 @@ await LogAsync(
await LogAsync(
$"CodeiumVSPackage.InitializeAsync: Failed to register commands; Exception {ex}");
await VS.MessageBox.ShowErrorAsync(
"Codeium: Failed to register commands.",
"Codeium might not work correctly. Please check the output window for more details.");
"Windsurf: Failed to register commands.",
"Windsurf might not work correctly. Please check the output window for more details.");
}

try
Expand All @@ -89,12 +89,12 @@ await VS.MessageBox.ShowErrorAsync(
}
catch (Exception ex)
{
await LogAsync("Codeium Error" + ex);
await LogAsync("Windsurf Error" + ex);
throw;
}

await LanguageServer.InitializeAsync();
await LogAsync("Codeium Extension for Visual Studio");
await LogAsync("Windsurf Extension for Visual Studio");
}

protected override void Dispose(bool disposing)
Expand Down Expand Up @@ -158,7 +158,7 @@ public async Task UpdateSignedInStateAsync()
delegate { new EnterTokenDialogWindow().ShowDialog(); }),
];

NotificationAuth.Show("[Codeium] To enable Codeium, please sign in to your account",
NotificationAuth.Show("[Windsurf] To enable Windsurf, please sign in to your account",
KnownMonikers.AddUser,
true,
null,
Expand Down Expand Up @@ -249,9 +249,9 @@ public static void OpenInBrowser(string url)
}
}

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

Expand Down
6 changes: 3 additions & 3 deletions CodeiumVS/Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
typeof(ChatToolWindow), 0, create: true, CodeiumVSPackage.Instance.DisposalToken);
if (toolWindowPane == null || toolWindowPane.Frame == null)
{
throw new NotSupportedException("Cannot create Codeium chat tool window");
throw new NotSupportedException("Cannot create Windsurf chat tool window");
}
}
}
Expand Down Expand Up @@ -271,7 +271,7 @@ protected override void BeforeQueryStatus(EventArgs e)
base.BeforeQueryStatus(e);
if (Command.Visible)
Command.Text =
is_function ? "Codeium: Explain Function" : "Codeium: Explain Code block";
is_function ? "Windsurf: Explain Function" : "Windsurf: Explain Code block";
}

protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
Expand Down Expand Up @@ -303,7 +303,7 @@ protected override void BeforeQueryStatus(EventArgs e)
base.BeforeQueryStatus(e);
if (Command.Visible)
Command.Text =
is_function ? "Codeium: Refactor Function" : "Codeium: Refactor Code block";
is_function ? "Windsurf: Refactor Function" : "Windsurf: Refactor Code block";
}

protected override async Task ExecuteAsync(OleMenuCmdEventArgs e)
Expand Down
30 changes: 15 additions & 15 deletions CodeiumVS/LanguageServer/LanguageServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace CodeiumVS;
public class LanguageServer
{
private string _languageServerURL;
private string _languageServerVersion = "1.42.3";
private string _languageServerVersion = "1.42.7";

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

// show an error message box
var msgboxResult = await VS.MessageBox.ShowAsync(
"Codeium: Failed to sign in. Please check the output window for more details.",
"Windsurf: Failed to sign in. Please check the output window for more details.",
"Do you want to retry?",
OLEMSGICON.OLEMSGICON_WARNING,
OLEMSGBUTTON.OLEMSGBUTTON_RETRYCANCEL,
Expand Down Expand Up @@ -170,7 +170,7 @@ public async Task SignInAsync()
{
// show an error message box
var msgboxResult = await VS.MessageBox.ShowAsync(
"Codeium: Failed to get the Authentication Token. Please check the output window for more details.",
"Windsurf: Failed to get the Authentication Token. Please check the output window for more details.",
"Do you want to retry?",
OLEMSGICON.OLEMSGICON_WARNING,
OLEMSGBUTTON.OLEMSGBUTTON_RETRYCANCEL,
Expand All @@ -186,7 +186,7 @@ public async Task SignInAsync()

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

progressDialog.StartWaitDialog("Codeium",
progressDialog.StartWaitDialog("Windsurf",
$"Extracting files...",
"Almost done",
null,
$"Codeium: Extracting files...",
$"Windsurf: Extracting files...",
0,
false,
true);
Expand All @@ -304,7 +304,7 @@ await _package.LogAsync(
];

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

progressDialog.StartWaitDialog(
"Codeium",
"Windsurf",
$"Downloading language server v{_languageServerVersion}",
"",
null,
$"Codeium: Downloading language server v{_languageServerVersion}",
$"Windsurf: Downloading language server v{_languageServerVersion}",
0,
false,
true);
Expand Down Expand Up @@ -489,7 +489,7 @@ await _package.LogAsync(

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

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

await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
errorBar.Show(
"[Codeium] Critical Error: Failed to start the language server. Do you want to retry?",
"[Windsurf] Critical Error: Failed to start the language server. Do you want to retry?",
KnownMonikers.StatusError,
true,
null,
Expand All @@ -616,7 +616,7 @@ await _package.LogAsync(
// warn the user about the issue
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
new NotificationInfoBar().Show(
"[Codeium] Failed to read output from the language server, Codeium might not work properly.",
"[Windsurf] Failed to read output from the language server, Windsurf might not work properly.",
KnownMonikers.IntellisenseWarning,
true,
null,
Expand Down Expand Up @@ -650,7 +650,7 @@ await _package.LogAsync(
else
{
new NotificationInfoBar().Show(
"[Codeium] Critical Error: Failed to get the language server port. Please check the output window for more details.",
"[Windsurf] Critical Error: Failed to get the language server port. Please check the output window for more details.",
KnownMonikers.StatusError,
true,
null,
Expand Down
2 changes: 1 addition & 1 deletion CodeiumVS/OutputWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public OutputWindow()
if (ServiceProvider.GlobalProvider.GetService(typeof(SVsOutputWindow))
is IVsOutputWindow obj)
{
obj.CreatePane(ref OutputWindowGuid, "Codeium", 1, 0);
obj.CreatePane(ref OutputWindowGuid, "Windsurf", 1, 0);
obj.GetPane(ref OutputWindowGuid, out outputPane);
}
}
Expand Down
12 changes: 6 additions & 6 deletions CodeiumVS/QuickInfo/QuickInfoSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ public async Task<QuickInfoItem> GetQuickInfoItemAsync(IAsyncQuickInfoSession se
await GetTagAggregatorAsync(session.TextView);

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

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

Expand Down Expand Up @@ -102,8 +102,8 @@ public async Task<QuickInfoItem> GetQuickInfoItemAsync(IAsyncQuickInfoSession se
if (appToSpan != null && problemMessage.Length > 0)
{
var hyperLink = ClassifiedTextElement.CreateHyperlink(
"Codeium: Explain Problem",
"Ask codeium to explain the problem",
"Windsurf: Explain Problem",
"Ask Windsurf to explain the problem",
() =>
{
ThreadHelper.JoinableTaskFactory
Expand Down Expand Up @@ -135,13 +135,13 @@ private async Task GetTagAggregatorAsync(ITextView textView)
else if (_tagAggregatorTextView != textView)
{
throw new ArgumentException(
"The Codeium Quick Info Source cannot be shared between TextViews.");
"The Windsurf Quick Info Source cannot be shared between TextViews.");
}
}
}

[Export(typeof(IAsyncQuickInfoSourceProvider))]
[Name("Codeium Quick Info Provider")]
[Name("Windsurf Quick Info Provider")]
[ContentType("any")]
[Order(After = "Default Quick Info Presenter")]
internal sealed class AsyncQuickInfoSourceProvider : IAsyncQuickInfoSourceProvider
Expand Down
Loading