mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-05 01:25:45 -05:00
Sending show plan graph to ADS on Result Set updated event (#1300)
* Sending showplan graph over json rpc in Result updated event Translating showplan graph into simple objects to be sent over JSON RPC * Revert "Sending showplan graph over json rpc in Result updated event" This reverts commit 2d63a625fd200d057bf6093e233f05dea440347c. * Added string for localization * Sending showplan graph over json rpc in Result updated event Translating showplan graph into simple objects to be sent over JSON RPC * Refactoring class * Removing test warning * Removing unused imports Adding copyright * Removing unused prop * removing formatted string out .strings file * Formatting files Adding Errors in show plan graph * Adding a separate event for execution plan * Now sending mulitple graphs when a batch has more than one query.
This commit is contained in:
@@ -8774,6 +8774,16 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
return Keys.GetString(Keys.NameValuePair, name, value);
|
||||
}
|
||||
|
||||
public static string OperatorDisplayCost(double cost, int percentage)
|
||||
{
|
||||
return Keys.GetString(Keys.OperatorDisplayCost, cost, percentage);
|
||||
}
|
||||
|
||||
public static string ActualOfEstimated(string actual, string estimated, decimal percent)
|
||||
{
|
||||
return Keys.GetString(Keys.ActualOfEstimated, actual, estimated, percent);
|
||||
}
|
||||
|
||||
public static string TableNotInitializedException(string tableId)
|
||||
{
|
||||
return Keys.GetString(Keys.TableNotInitializedException, tableId);
|
||||
@@ -12107,6 +12117,12 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
public const string SizeInTeraBytesFormat = "SizeInTeraBytesFormat";
|
||||
|
||||
|
||||
public const string OperatorDisplayCost = "OperatorDisplayCost";
|
||||
|
||||
|
||||
public const string ActualOfEstimated = "ActualOfEstimated";
|
||||
|
||||
|
||||
public const string TableNotInitializedException = "TableNotInitializedException";
|
||||
|
||||
|
||||
|
||||
@@ -4590,6 +4590,17 @@
|
||||
<value>{0} TB</value>
|
||||
<comment>Size in TeraBytes format</comment>
|
||||
</data>
|
||||
<data name="OperatorDisplayCost" xml:space="preserve">
|
||||
<value>{0:0.#######} ({1}%)</value>
|
||||
<comment> display string for the operator cost property - 0.###### - is the float number format specifier.
|
||||
Parameters: 0 - cost (double), 1 - percentage (int) </comment>
|
||||
</data>
|
||||
<data name="ActualOfEstimated" xml:space="preserve">
|
||||
<value>{0} of
|
||||
{1} ({2}%)</value>
|
||||
<comment>.
|
||||
Parameters: 0 - actual (string), 1 - estimated (string), 2 - percent (decimal) </comment>
|
||||
</data>
|
||||
<data name="TableNotInitializedException" xml:space="preserve">
|
||||
<value>Initialization is not properly done for table with id '{0}'</value>
|
||||
<comment>.
|
||||
|
||||
@@ -2213,6 +2213,10 @@ SizeInMegaBytesFormat = {0} MB
|
||||
SizeInGigaBytesFormat = {0} GB
|
||||
;Size in TeraBytes format
|
||||
SizeInTeraBytesFormat = {0} TB
|
||||
; display string for the operator cost property - 0.###### - is the float number format specifier
|
||||
OperatorDisplayCost(double cost, int percentage) = {0:0.#######} ({1}%)
|
||||
#Would like to display actual rows and estimated rows in two lines: <number_actual_rows> of\n <number_estimated_rows> (xx%)
|
||||
ActualOfEstimated(string actual, string estimated, decimal percent) = {0} of\n{1} ({2}%)
|
||||
|
||||
############################################################################
|
||||
# Table Designer
|
||||
|
||||
@@ -5631,6 +5631,20 @@
|
||||
<note>.
|
||||
Parameters: 0 - path (string), 1 - editType (string) </note>
|
||||
</trans-unit>
|
||||
<trans-unit id="OperatorDisplayCost">
|
||||
<source>{0:0.#######} ({1}%)</source>
|
||||
<target state="new">{0:0.#######} ({1}%)</target>
|
||||
<note> display string for the operator cost property - 0.###### - is the float number format specifier.
|
||||
Parameters: 0 - cost (double), 1 - percentage (int) </note>
|
||||
</trans-unit>
|
||||
<trans-unit id="ActualOfEstimated">
|
||||
<source>{0} of
|
||||
{1} ({2}%)</source>
|
||||
<target state="new">{0} of
|
||||
{1} ({2}%)</target>
|
||||
<note>.
|
||||
Parameters: 0 - actual (string), 1 - estimated (string), 2 - percent (decimal) </note>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
Reference in New Issue
Block a user