mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-26 09:35:38 -05:00
SqlCmd Connect/On Error/Include commands support (#898)
* Initial Investigation * Working code with include, connect, on error and tests * Adding some loc strings * Some cleanup and more tests * Some dummy change to trigger build * Adding PR comments * Addressing PR comments
This commit is contained in:
@@ -261,6 +261,30 @@ namespace Microsoft.SqlTools.ManagedBatchParser
|
||||
}
|
||||
}
|
||||
|
||||
public static string SqlCmd_PathInvalid
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.SqlCmd_PathInvalid);
|
||||
}
|
||||
}
|
||||
|
||||
public static string SqlCmd_PathLong
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.SqlCmd_PathLong);
|
||||
}
|
||||
}
|
||||
|
||||
public static string SqlCmd_FailedInclude
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.SqlCmd_FailedInclude);
|
||||
}
|
||||
}
|
||||
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
public class Keys
|
||||
{
|
||||
@@ -356,6 +380,14 @@ namespace Microsoft.SqlTools.ManagedBatchParser
|
||||
public const string BatchParser_VariableNotDefined = "BatchParser_VariableNotDefined";
|
||||
|
||||
|
||||
public const string SqlCmd_PathInvalid = "SqlCmd_PathInvalid";
|
||||
|
||||
|
||||
public const string SqlCmd_PathLong = "SqlCmd_PathLong";
|
||||
|
||||
|
||||
public const string SqlCmd_FailedInclude = "SqlCmd_FailedInclude";
|
||||
|
||||
private Keys()
|
||||
{ }
|
||||
|
||||
|
||||
@@ -233,4 +233,16 @@
|
||||
<value>Variable {0} is not defined.</value>
|
||||
<comment></comment>
|
||||
</data>
|
||||
<data name="SqlCmd_PathInvalid" xml:space="preserve">
|
||||
<value>Path contains invalid characters.</value>
|
||||
<comment></comment>
|
||||
</data>
|
||||
<data name="SqlCmd_PathLong" xml:space="preserve">
|
||||
<value>Path too long.</value>
|
||||
<comment></comment>
|
||||
</data>
|
||||
<data name="SqlCmd_FailedInclude" xml:space="preserve">
|
||||
<value>Could not find included file {0}.</value>
|
||||
<comment></comment>
|
||||
</data>
|
||||
</root>
|
||||
|
||||
@@ -82,3 +82,9 @@ BatchParser_IncorrectSyntax = Incorrect syntax was encountered while parsing '{0
|
||||
|
||||
BatchParser_VariableNotDefined = Variable {0} is not defined.
|
||||
|
||||
SqlCmd_PathInvalid = Path contains invalid characters.
|
||||
|
||||
SqlCmd_PathLong = Path too long.
|
||||
|
||||
SqlCmd_FailedInclude = Could not find included file {0}.
|
||||
|
||||
|
||||
@@ -147,6 +147,21 @@
|
||||
<target state="new">Variable {0} is not defined.</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
<trans-unit id="SqlCmd_PathInvalid">
|
||||
<source>Path contains invalid characters.</source>
|
||||
<target state="new">Path contains invalid characters.</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
<trans-unit id="SqlCmd_PathLong">
|
||||
<source>Path too long.</source>
|
||||
<target state="new">Path too long.</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
<trans-unit id="SqlCmd_FailedInclude">
|
||||
<source>Could not find included file {0}.</source>
|
||||
<target state="new">Could not find included file {0}.</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
Reference in New Issue
Block a user