mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-02 17:24:50 -05:00
Add ability to create sessions from templates, and list existing sessions (#671)
* Initial changes to connect to existing sessions * Creating new profiler sessions * Some session template changes * Fixing errors * Cleaning up comments, string constants, and formatting * Removing commented code
This commit is contained in:
committed by
GitHub
parent
e8360ef68e
commit
4b9807f0cf
@@ -4559,9 +4559,9 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
return Keys.GetString(Keys.EditDataIncorrectTable, tableName);
|
||||
}
|
||||
|
||||
public static string StopSessionFailed(String error)
|
||||
public static string CreateSessionFailed(String error)
|
||||
{
|
||||
return Keys.GetString(Keys.StopSessionFailed, error);
|
||||
return Keys.GetString(Keys.CreateSessionFailed, error);
|
||||
}
|
||||
|
||||
public static string StartSessionFailed(String error)
|
||||
@@ -4569,6 +4569,21 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
return Keys.GetString(Keys.StartSessionFailed, error);
|
||||
}
|
||||
|
||||
public static string PauseSessionFailed(String error)
|
||||
{
|
||||
return Keys.GetString(Keys.PauseSessionFailed, error);
|
||||
}
|
||||
|
||||
public static string StopSessionFailed(String error)
|
||||
{
|
||||
return Keys.GetString(Keys.StopSessionFailed, error);
|
||||
}
|
||||
|
||||
public static string SessionAlreadyExists(String sessionName)
|
||||
{
|
||||
return Keys.GetString(Keys.SessionAlreadyExists, sessionName);
|
||||
}
|
||||
|
||||
public static string EnableAlertsTitle(String serverName)
|
||||
{
|
||||
return Keys.GetString(Keys.EnableAlertsTitle, serverName);
|
||||
@@ -6176,15 +6191,24 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
public const string AzureSystemDbProfilingError = "AzureSystemDbProfilingError";
|
||||
|
||||
|
||||
public const string StopSessionFailed = "StopSessionFailed";
|
||||
public const string CreateSessionFailed = "CreateSessionFailed";
|
||||
|
||||
|
||||
public const string StartSessionFailed = "StartSessionFailed";
|
||||
|
||||
|
||||
public const string PauseSessionFailed = "PauseSessionFailed";
|
||||
|
||||
|
||||
public const string StopSessionFailed = "StopSessionFailed";
|
||||
|
||||
|
||||
public const string SessionNotFound = "SessionNotFound";
|
||||
|
||||
|
||||
public const string SessionAlreadyExists = "SessionAlreadyExists";
|
||||
|
||||
|
||||
public const string EnableAlertsTitle = "EnableAlertsTitle";
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user