mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-01 09:35:39 -05:00
Return context after it has been generated (#2194)
* Emit generate scripts complete event to client * Rename Message to ErrorMessage * Sets owner URI for complete params obj * Setting complete flag explicitly * Making errorMessage prop nullable * Localizes error messages * Return context scripts and remove script tabs * Send event when script gen isn't needed * Change notification to request endpoint * test get context when context doesn't exist * Stop reading old context files
This commit is contained in:
@@ -437,6 +437,14 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
}
|
||||
}
|
||||
|
||||
public static string FailedToGenerateServerContextualizationScripts
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.FailedToGenerateServerContextualizationScripts);
|
||||
}
|
||||
}
|
||||
|
||||
public static string PeekDefinitionNoResultsError
|
||||
{
|
||||
get
|
||||
@@ -10862,6 +10870,11 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
return Keys.GetString(Keys.ScriptTooLarge, maxChars, currentChars);
|
||||
}
|
||||
|
||||
public static string WritingServerContextualizationToCacheError(string message)
|
||||
{
|
||||
return Keys.GetString(Keys.WritingServerContextualizationToCacheError, message);
|
||||
}
|
||||
|
||||
public static string SerializationServiceUnsupportedFormat(string formatName)
|
||||
{
|
||||
return Keys.GetString(Keys.SerializationServiceUnsupportedFormat, formatName);
|
||||
@@ -11431,6 +11444,12 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
public const string ScriptTooLarge = "ScriptTooLarge";
|
||||
|
||||
|
||||
public const string WritingServerContextualizationToCacheError = "WritingServerContextualizationToCacheError";
|
||||
|
||||
|
||||
public const string FailedToGenerateServerContextualizationScripts = "FailedToGenerateServerContextualizationScripts";
|
||||
|
||||
|
||||
public const string SerializationServiceUnsupportedFormat = "SerializationServiceUnsupportedFormat";
|
||||
|
||||
|
||||
|
||||
@@ -426,6 +426,15 @@
|
||||
<comment>.
|
||||
Parameters: 0 - maxChars (int), 1 - currentChars (int) </comment>
|
||||
</data>
|
||||
<data name="WritingServerContextualizationToCacheError" xml:space="preserve">
|
||||
<value>An error was encountered while writing server contextualization scripts to the cache. Error: {0}</value>
|
||||
<comment>.
|
||||
Parameters: 0 - message (string) </comment>
|
||||
</data>
|
||||
<data name="FailedToGenerateServerContextualizationScripts" xml:space="preserve">
|
||||
<value>Failed to generate server contextualization scripts</value>
|
||||
<comment></comment>
|
||||
</data>
|
||||
<data name="SerializationServiceUnsupportedFormat" xml:space="preserve">
|
||||
<value>Unsupported Save Format: {0}</value>
|
||||
<comment>.
|
||||
|
||||
@@ -188,6 +188,13 @@ ParsingErrorHeader (int lineNumber, int columnNumber) = Line {0}, column {1}
|
||||
|
||||
ScriptTooLarge (int maxChars, int currentChars) = The current script is too large for Parameterization for Always Encrypted, please disable Parameterization for Always Encrypted in Query Options (Query > Query Options > Execution > Advanced). Maximum allowable length: {0} characters, Current script length: {1} characters
|
||||
|
||||
############################################################################
|
||||
# Server Contextualization Service
|
||||
|
||||
WritingServerContextualizationToCacheError (string message) = An error was encountered while writing server contextualization scripts to the cache. Error: {0}
|
||||
|
||||
FailedToGenerateServerContextualizationScripts = Failed to generate server contextualization scripts
|
||||
|
||||
############################################################################
|
||||
# Serialization Service
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
|
||||
<file datatype="xml" original="sr.resx" source-language="en">
|
||||
<body>
|
||||
@@ -7248,6 +7248,17 @@ The Query Processor estimates that implementing the following index could improv
|
||||
<target state="new">Error parsing ScriptingListObjectsCompleteParams.ConnectionString property.</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
<trans-unit id="WritingServerContextualizationToCacheError">
|
||||
<source>An error was encountered while writing server contextualization scripts to the cache. Error: {0}</source>
|
||||
<target state="new">An error was encountered while writing server contextualization scripts to the cache. Error: {0}</target>
|
||||
<note>.
|
||||
Parameters: 0 - message (string) </note>
|
||||
</trans-unit>
|
||||
<trans-unit id="FailedToGenerateServerContextualizationScripts">
|
||||
<source>Failed to generate server contextualization scripts</source>
|
||||
<target state="new">Failed to generate server contextualization scripts</target>
|
||||
<note></note>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
Reference in New Issue
Block a user