From 4436832fe0523f53618a7727b80f0661c3791824 Mon Sep 17 00:00:00 2001 From: Gabriela Trutan Date: Mon, 30 Sep 2024 09:46:23 +0200 Subject: [PATCH] SLVS-1471 Move URLs into constant (#5709) --- .../UI/DeleteConnection/PreventDeleteConnectionDialog.xaml | 3 ++- src/ConnectedMode/UI/ManageBinding/ManageBindingDialog.xaml | 5 ++--- .../UI/ServerSelection/ServerSelectionDialog.xaml | 4 ++-- src/Core/DocumentationLinks.cs | 4 ++++ 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/ConnectedMode/UI/DeleteConnection/PreventDeleteConnectionDialog.xaml b/src/ConnectedMode/UI/DeleteConnection/PreventDeleteConnectionDialog.xaml index 8287d870f..0aa7c83b6 100644 --- a/src/ConnectedMode/UI/DeleteConnection/PreventDeleteConnectionDialog.xaml +++ b/src/ConnectedMode/UI/DeleteConnection/PreventDeleteConnectionDialog.xaml @@ -4,6 +4,7 @@ xmlns:res="clr-namespace:SonarLint.VisualStudio.ConnectedMode.UI.Resources" xmlns:ui="clr-namespace:SonarLint.VisualStudio.ConnectedMode.UI" xmlns:converters="clr-namespace:SonarLint.VisualStudio.Core.WPF;assembly=SonarLint.VisualStudio.Core" + xmlns:links="clr-namespace:SonarLint.VisualStudio.Core;assembly=SonarLint.VisualStudio.Core" Title="{x:Static res:UiResources.DeleteConnectionDialogTitle}" Width="600" MinHeight="200" @@ -57,7 +58,7 @@ ItemsSource="{Binding ProjectsToUnbind}"> - here + here diff --git a/src/ConnectedMode/UI/ManageBinding/ManageBindingDialog.xaml b/src/ConnectedMode/UI/ManageBinding/ManageBindingDialog.xaml index 4e70f647c..0915b179b 100644 --- a/src/ConnectedMode/UI/ManageBinding/ManageBindingDialog.xaml +++ b/src/ConnectedMode/UI/ManageBinding/ManageBindingDialog.xaml @@ -5,8 +5,7 @@ xmlns:res="clr-namespace:SonarLint.VisualStudio.ConnectedMode.UI.Resources" xmlns:ui="clr-namespace:SonarLint.VisualStudio.ConnectedMode.UI" xmlns:wpf="clr-namespace:SonarLint.VisualStudio.Core.WPF;assembly=SonarLint.VisualStudio.Core" - xmlns:imaging="clr-namespace:Microsoft.VisualStudio.Imaging;assembly=Microsoft.VisualStudio.Imaging" - xmlns:vsimagecatalog="clr-namespace:Microsoft.VisualStudio.Imaging;assembly=Microsoft.VisualStudio.ImageCatalog" + xmlns:links="clr-namespace:SonarLint.VisualStudio.Core;assembly=SonarLint.VisualStudio.Core" Title="{x:Static res:UiResources.ManageBindingDialogTitle}" WindowStartupLocation="CenterOwner" Initialized="ManageBindingDialog_OnInitialized" @@ -170,7 +169,7 @@ - here + here diff --git a/src/ConnectedMode/UI/ServerSelection/ServerSelectionDialog.xaml b/src/ConnectedMode/UI/ServerSelection/ServerSelectionDialog.xaml index 121db3a17..d81924835 100644 --- a/src/ConnectedMode/UI/ServerSelection/ServerSelectionDialog.xaml +++ b/src/ConnectedMode/UI/ServerSelection/ServerSelectionDialog.xaml @@ -1,7 +1,7 @@  - here + here diff --git a/src/Core/DocumentationLinks.cs b/src/Core/DocumentationLinks.cs index 6d009302a..44f562ce7 100644 --- a/src/Core/DocumentationLinks.cs +++ b/src/Core/DocumentationLinks.cs @@ -38,5 +38,9 @@ public static class DocumentationLinks public const string CleanCode = "https://docs.sonarsource.com/sonarlint/visual-studio/concepts/clean-code/introduction"; public const string OpenInIdeIssueLocation = "https://docs.sonarsource.com/sonarlint/visual-studio/troubleshooting/#no-matching-issue-found"; public const string OpenInIdeBindingSetup = "https://docs.sonarsource.com/sonarlint/visual-studio/troubleshooting/#no-matching-project-found"; + public const string UnbindingProject = "https://docs.sonarsource.com/sonarlint/visual-studio/team-features/connected-mode-setup/#unbinding-a-project"; + + public static readonly Uri UnbindingProjectUri = new(UnbindingProject); + public static readonly Uri ConnectedModeUri = new(ConnectedMode); } }