diff --git a/.github/workflows/build-extension.yml b/.github/workflows/build-extension.yml index 9c353ef..284368e 100644 --- a/.github/workflows/build-extension.yml +++ b/.github/workflows/build-extension.yml @@ -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: diff --git a/CodeiumVS/CodeiumVSPackage.cs b/CodeiumVS/CodeiumVSPackage.cs index 0293b44..668e4ce 100644 --- a/CodeiumVS/CodeiumVSPackage.cs +++ b/CodeiumVS/CodeiumVSPackage.cs @@ -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, @@ -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 @@ -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) @@ -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, @@ -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}"); } diff --git a/CodeiumVS/Commands.cs b/CodeiumVS/Commands.cs index a2b9a0b..826be0c 100644 --- a/CodeiumVS/Commands.cs +++ b/CodeiumVS/Commands.cs @@ -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"); } } } @@ -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) @@ -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) diff --git a/CodeiumVS/LanguageServer/LanguageServer.cs b/CodeiumVS/LanguageServer/LanguageServer.cs index 739860a..9dc7863 100644 --- a/CodeiumVS/LanguageServer/LanguageServer.cs +++ b/CodeiumVS/LanguageServer/LanguageServer.cs @@ -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; @@ -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, @@ -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, @@ -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"; @@ -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, @@ -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); @@ -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, @@ -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); @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, diff --git a/CodeiumVS/OutputWindow.cs b/CodeiumVS/OutputWindow.cs index 674cf85..fb7389c 100644 --- a/CodeiumVS/OutputWindow.cs +++ b/CodeiumVS/OutputWindow.cs @@ -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); } } diff --git a/CodeiumVS/QuickInfo/QuickInfoSource.cs b/CodeiumVS/QuickInfo/QuickInfoSource.cs index 5bd38dc..16e8f3a 100644 --- a/CodeiumVS/QuickInfo/QuickInfoSource.cs +++ b/CodeiumVS/QuickInfo/QuickInfoSource.cs @@ -59,14 +59,14 @@ public async Task 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; } @@ -102,8 +102,8 @@ public async Task 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 @@ -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 diff --git a/CodeiumVS/Resources/ChatLoadingPage.html.txt b/CodeiumVS/Resources/ChatLoadingPage.html.txt index 67d3cb3..baabf6f 100644 --- a/CodeiumVS/Resources/ChatLoadingPage.html.txt +++ b/CodeiumVS/Resources/ChatLoadingPage.html.txt @@ -12,8 +12,12 @@ } .loader { - width: 80px; - height: 80px; + display: flex; + justify-content: center; + align-items: center; + width: auto; + height: auto; + margin-top: 20px; /* optional spacing */ } @keyframes pulse { @@ -42,45 +46,64 @@
-

Loading Codeium

+

Loading Windsurf

- - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/CodeiumVS/SettingsPage.cs b/CodeiumVS/SettingsPage.cs index d3115a5..257d214 100644 --- a/CodeiumVS/SettingsPage.cs +++ b/CodeiumVS/SettingsPage.cs @@ -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 { @@ -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 { @@ -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")] @@ -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 { @@ -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 { @@ -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 @@ -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.")] @@ -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 { @@ -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.")] @@ -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.")] @@ -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 diff --git a/CodeiumVS/Utilities/FileUtilities.cs b/CodeiumVS/Utilities/FileUtilities.cs index 247082e..964f53f 100644 --- a/CodeiumVS/Utilities/FileUtilities.cs +++ b/CodeiumVS/Utilities/FileUtilities.cs @@ -35,14 +35,14 @@ internal static void DeleteSafe(string path) CodeiumVSPackage.Instance?.Log( $"Failed to move the file why trying to delete it, exception: {ex2}"); VS.MessageBox.ShowError( - $"Codeium: Failed to move the file why trying to delete it: {path}", + $"Windsurf: Failed to move the file why trying to delete it: {path}", "Please see the output windows for more details"); } } else { CodeiumVSPackage.Instance?.Log($"Failed to delete file, exception: {ex}"); - VS.MessageBox.ShowError($"Codeium: Failed to delete file: {path}", + VS.MessageBox.ShowError($"Windsurf: Failed to delete file: {path}", "Please see the output windows for more details"); } } diff --git a/CodeiumVS/VSCommandTable.vsct b/CodeiumVS/VSCommandTable.vsct index 631be90..c317a82 100644 --- a/CodeiumVS/VSCommandTable.vsct +++ b/CodeiumVS/VSCommandTable.vsct @@ -24,7 +24,7 @@ - Codeium + Windsurf @@ -91,7 +91,7 @@ DefaultInvisible DynamicVisibility - Codeium: Explain Code Block + Windsurf: Explain Code Block Codeium.ExplainCodeBlock @@ -105,7 +105,7 @@ DefaultInvisible DynamicVisibility - Codeium: Refactor Code Block + Windsurf: Refactor Code Block Codeium.RefactorCodeBlock @@ -118,7 +118,7 @@ DefaultInvisible DynamicVisibility - Codeium: Generate Docstring for Function + Windsurf: Generate Docstring for Function Codeium.GenerateFunctionDocstring @@ -131,7 +131,7 @@ DefaultInvisible DynamicVisibility - Codeium: Generate Unit Test for Function + Windsurf: Generate Unit Test for Function Codeium.GenerateFunctionUnitTest @@ -142,7 +142,7 @@ IconIsMoniker DefaultInvisible DynamicVisibility - Codeium: Show Next Suggestion + Windsurf: Show Next Suggestion Codeium.ShowNextSuggestion @@ -153,7 +153,7 @@ IconIsMoniker DefaultInvisible DynamicVisibility - Codeium: Accept Completion + Windsurf: Accept Completion Codeium.CompleteSuggestion @@ -162,7 +162,7 @@ DefaultInvisible - Codeium: Explain Code Block + Windsurf: Explain Code Block Codeium.ExplainSelectionCodeBlock @@ -173,7 +173,7 @@ DefaultInvisible - Codeium: Refactor Code Block + Windsurf: Refactor Code Block Codeium.RefactorSelectionCodeBlock @@ -184,7 +184,7 @@ DefaultInvisible - Codeium: Generate Docstring for Function + Windsurf: Generate Docstring for Function Codeium.GenerateSelectionFunctionDocstring diff --git a/CodeiumVS/Windows/ChatToolWindow.cs b/CodeiumVS/Windows/ChatToolWindow.cs index 75128c8..9dc70b1 100644 --- a/CodeiumVS/Windows/ChatToolWindow.cs +++ b/CodeiumVS/Windows/ChatToolWindow.cs @@ -21,7 +21,7 @@ public class ChatToolWindow : ToolWindowPane public ChatToolWindow() : base(null) { Instance = this; - Caption = "Codeium Chat"; + Caption = "Windsurf Chat"; Content = new ChatToolWindowControl(); } @@ -71,7 +71,7 @@ private async Task InitializeWebViewAsync() await package.LogAsync( $"Failed to initialize webview core enviroment. Exception: {ex}"); await VS.MessageBox.ShowErrorAsync( - "Codeium: Failed to initialize webview core enviroment", + "Windsurf: Failed to initialize webview core enviroment", "Chat might be unavailable. Please see more details in the output window."); } @@ -90,7 +90,7 @@ await VS.MessageBox.ShowErrorAsync( var model = new InfoBarModel( new[] { new InfoBarTextSpan( - "It looks like Codeium Chat is taking too long to load, do you want to reload? "), + "It looks like Windsurf Chat is taking too long to load, do you want to reload? "), new InfoBarHyperlink("Reload") }, KnownMonikers.IntellisenseWarning, @@ -174,7 +174,7 @@ public async Task ReloadAsync() { await package.LogAsync($"Failed to open the chat page. Exception: {ex}"); await VS.MessageBox.ShowErrorAsync( - "Codeium: Failed to open the chat page", + "Windsurf: Failed to open the chat page", "We're sorry for the inconvenience. Please see more details in the output window."); } } diff --git a/CodeiumVS/Windows/RefactorCodeDialogWindow.xaml b/CodeiumVS/Windows/RefactorCodeDialogWindow.xaml index a169b14..f829e67 100644 --- a/CodeiumVS/Windows/RefactorCodeDialogWindow.xaml +++ b/CodeiumVS/Windows/RefactorCodeDialogWindow.xaml @@ -15,7 +15,7 @@ ResizeMode="CanResize" mc:Ignorable="d" - Title="Codeium Refactor Code Block" + Title="Windsurf Refactor Code Block" WindowStartupLocation="CenterOwner" Width="450" @@ -73,7 +73,7 @@ /> - + @@ -107,7 +107,7 @@