Skip to content
Merged
Show file tree
Hide file tree
Changes from 19 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
28 changes: 14 additions & 14 deletions CodeiumVS/LanguageServer/LanguageServer.cs
Original file line number Diff line number Diff line change
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
103 changes: 63 additions & 40 deletions CodeiumVS/Resources/ChatLoadingPage.html.txt

Large diffs are not rendered by default.

Binary file modified CodeiumVS/Resources/Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 18 additions & 18 deletions CodeiumVS/SettingsPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ public class SettingsPage : DialogPage
private string indexingFilesListPath = "";
private bool indexOpenFiles = true;

[Category("Codeium")]
[Category("Windsurf")]
[DisplayName("Self-Hosted Enterprise Mode")]
[Description(
"Set this to True if using Visual Studio with Codeium Enterprise. Requires restart.")]
"Set this to True if using Visual Studio with Windsurf Enterprise. Requires restart.")]
public bool EnterpriseMode
{
get {
Expand All @@ -32,9 +32,9 @@ public bool EnterpriseMode
}
}

[Category("Codeium")]
[Category("Windsurf")]
[DisplayName("Portal Url")]
[Description("URL of the Codeium Enterprise Portal. Requires restart.")]
[Description("URL of the Windsurf Enterprise Portal. Requires restart.")]
public string PortalUrl
{
get {
Expand All @@ -45,7 +45,7 @@ public string PortalUrl
}
}

[Category("Codeium")]
[Category("Windsurf")]
[DisplayName("Language Server Download URL")]
[Description(
"If you're experiencing network issues with GitHub and can't download the language server, please change this to a GitHub Mirror URL instead. For example: https://gh.api.99988866.xyz/https://github.com/Exafunction/codeium/releases/download")]
Expand All @@ -59,9 +59,9 @@ public string ExtensionBaseUrl
}
}

[Category("Codeium")]
[Category("Windsurf")]
[DisplayName("API Url")]
[Description("API Url for Codeium Enterprise. Requires restart.")]
[Description("API Url for Windsurf Enterprise. Requires restart.")]
public string ApiUrl
{
get {
Expand All @@ -72,9 +72,9 @@ public string ApiUrl
}
}

[Category("Codeium")]
[Category("Windsurf")]
[DisplayName("Enable comment completion")]
[Description("Whether or not Codeium will provide completions for comments.")]
[Description("Whether or not Windsurf will provide completions for comments.")]
public bool EnableCommentCompletion
{
get {
Expand All @@ -85,7 +85,7 @@ public bool EnableCommentCompletion
}
}

[Category("Codeium")]
[Category("Windsurf")]
[DisplayName("Enable Code Lens")]
[Description("AI-powered inline action buttons in your editor. (Reload Required)")]
public bool EnableCodeLens
Expand All @@ -100,7 +100,7 @@ public bool EnableCodeLens
}
}

[Category("Codeium")]
[Category("Windsurf")]
[DisplayName("Enable language server proxy")]
[Description(
"If you're experiencing network issues with the language server, we recommend enabling this option and using a VPN to resolve the issue. Requires restart.")]
Expand All @@ -114,10 +114,10 @@ public bool EnableLanguageServerProxy
}
}

[Category("Codeium")]
[DisplayName("Enable Codeium Indexing")]
[Category("Windsurf")]
[DisplayName("Enable Windsurf Indexing")]
[Description(
"Allows Codeium to index your current repository and provide better chat and autocomplete responses based on relevant parts of your codebase. Requires restart.")]
"Allows Windsurf to index your current repository and provide better chat and autocomplete responses based on relevant parts of your codebase. Requires restart.")]
public bool EnableIndexing
{
get {
Expand All @@ -128,7 +128,7 @@ public bool EnableIndexing
}
}

[Category("Codeium")]
[Category("Windsurf")]
[DisplayName("Indexing Max Workspace Size (File Count)")]
[Description(
"If indexing is enabled, we will only attempt to index workspaces that have up to this many files. This file count ignores .gitignore and binary files.")]
Expand All @@ -142,7 +142,7 @@ public int IndexingMaxWorkspaceSize
}
}

[Category("Codeium")]
[Category("Windsurf")]
[DisplayName("Directories to Index List Path")]
[Description(
"Absolute path to a .txt file that contains a line separated list of absolute paths of directories to index. Requires restart.")]
Expand All @@ -155,10 +155,10 @@ public string IndexingFilesListPath
indexingFilesListPath = value;
}
}
[Category("Codeium")]
[Category("Windsurf")]
[DisplayName("Index Open Files")]
[Description(
"Codeium will attempt to parse the project files that the files open upon IDE startup belong to. Requires restart.")]
"Windsurf will attempt to parse the project files that the files open upon IDE startup belong to. Requires restart.")]
public bool IndexOpenFiles
{
get
Expand Down
Loading