mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
Support TOP n When Initializing Edit Sessions (#290)
* Start of edit initialize filtering * Implementation to utilize filtering * Unit tests for the refactoring * Unit tests for query construction
This commit is contained in:
@@ -413,6 +413,14 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
}
|
||||
}
|
||||
|
||||
public static string EditDataFilteringNegativeLimit
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.EditDataFilteringNegativeLimit);
|
||||
}
|
||||
}
|
||||
|
||||
public static string EditDataQueryFailed
|
||||
{
|
||||
get
|
||||
@@ -1098,6 +1106,9 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
public const string EditDataSessionAlreadyInitializing = "EditDataSessionAlreadyInitializing";
|
||||
|
||||
|
||||
public const string EditDataFilteringNegativeLimit = "EditDataFilteringNegativeLimit";
|
||||
|
||||
|
||||
public const string EditDataUnsupportedObjectType = "EditDataUnsupportedObjectType";
|
||||
|
||||
|
||||
|
||||
@@ -374,6 +374,10 @@
|
||||
<value>Edit session has already been initialized or is in the process of initializing</value>
|
||||
<comment></comment>
|
||||
</data>
|
||||
<data name="EditDataFilteringNegativeLimit" xml:space="preserve">
|
||||
<value>Result limit cannot be negative</value>
|
||||
<comment></comment>
|
||||
</data>
|
||||
<data name="EditDataUnsupportedObjectType" xml:space="preserve">
|
||||
<value>Database object {0} cannot be used for editing.</value>
|
||||
<comment>.
|
||||
|
||||
@@ -176,6 +176,8 @@ EditDataSessionAlreadyInitialized = Edit session has already been initialized
|
||||
|
||||
EditDataSessionAlreadyInitializing = Edit session has already been initialized or is in the process of initializing
|
||||
|
||||
EditDataFilteringNegativeLimit = Result limit cannot be negative
|
||||
|
||||
EditDataUnsupportedObjectType(string typeName) = Database object {0} cannot be used for editing.
|
||||
|
||||
EditDataQueryFailed = Query execution failed, see messages for details
|
||||
|
||||
@@ -591,6 +591,11 @@
|
||||
<target state="new">Query execution failed, see messages for details</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
<trans-unit id="EditDataFilteringNegativeLimit">
|
||||
<source>Result limit cannot be negative</source>
|
||||
<target state="new">Result limit cannot be negative</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
Reference in New Issue
Block a user