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:
Udeesha Gautam
2020-01-10 17:54:39 -08:00
committed by GitHub
parent d512c101c0
commit fe17962ac9
25 changed files with 925 additions and 137 deletions

View File

@@ -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()
{ }

View File

@@ -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>

View File

@@ -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}.

View File

@@ -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>