@@ -35,7 +35,7 @@ private static string GetDefaultBrowserPath()
35
35
/// Opens search in a new browser. If no browser path is passed in then Chrome is used.
36
36
/// Leave browser path blank to use Chrome.
37
37
/// </summary>
38
- public static void NewBrowserWindow ( this string url , string browserPath = "" , bool inPrivate = false , string privateArg = "" )
38
+ public static void OpenInBrowserWindow ( this string url , string browserPath = "" , bool inPrivate = false , string privateArg = "" )
39
39
{
40
40
browserPath = string . IsNullOrEmpty ( browserPath ) ? GetDefaultBrowserPath ( ) : browserPath ;
41
41
@@ -71,10 +71,16 @@ public static void NewBrowserWindow(this string url, string browserPath = "", bo
71
71
}
72
72
}
73
73
74
+ [ Obsolete ( "This is provided for backwards compatibility after 1.9.0 release, e.g. GitHub plugin. Use the new method instead" ) ]
75
+ public static void NewBrowserWindow ( this string url , string browserPath = "" )
76
+ {
77
+ OpenInBrowserWindow ( url , browserPath ) ;
78
+ }
79
+
74
80
/// <summary>
75
81
/// Opens search as a tab in the default browser chosen in Windows settings.
76
82
/// </summary>
77
- public static void NewTabInBrowser ( this string url , string browserPath = "" , bool inPrivate = false , string privateArg = "" )
83
+ public static void OpenInBrowserTab ( this string url , string browserPath = "" , bool inPrivate = false , string privateArg = "" )
78
84
{
79
85
browserPath = string . IsNullOrEmpty ( browserPath ) ? GetDefaultBrowserPath ( ) : browserPath ;
80
86
@@ -105,5 +111,11 @@ public static void NewTabInBrowser(this string url, string browserPath = "", boo
105
111
} ) ;
106
112
}
107
113
}
114
+
115
+ [ Obsolete ( "This is provided for backwards compatibility after 1.9.0 release, e.g. GitHub plugin. Use the new method instead" ) ]
116
+ public static void NewTabInBrowser ( this string url , string browserPath = "" )
117
+ {
118
+ OpenInBrowserTab ( url , browserPath ) ;
119
+ }
108
120
}
109
121
}
0 commit comments