simplify drop object request handler (#1953)

* simplify drop object request handler

* fix test cases

* fix issues

* update strings

* fix error

* fix error
This commit is contained in:
Alan Ren
2023-03-20 21:54:34 -07:00
committed by GitHub
parent b4781cf267
commit 692f444ccb
14 changed files with 187 additions and 271 deletions

View File

@@ -10150,6 +10150,11 @@ namespace Microsoft.SqlTools.ServiceLayer
return Keys.GetString(Keys.UnsupportedModelType, type);
}
public static string ObjectNotRenamable(string urn)
{
return Keys.GetString(Keys.ObjectNotRenamable, urn);
}
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class Keys
{
@@ -14043,6 +14048,9 @@ namespace Microsoft.SqlTools.ServiceLayer
public const string ErrorConnectionNotFound = "ErrorConnectionNotFound";
public const string ObjectNotRenamable = "ObjectNotRenamable";
public const string DefaultLanguagePlaceholder = "DefaultLanguagePlaceholder";

View File

@@ -5386,6 +5386,11 @@ The Query Processor estimates that implementing the following index could improv
<value>The connection could not be found</value>
<comment></comment>
</data>
<data name="ObjectNotRenamable" xml:space="preserve">
<value>The object could not be renamed. URN: &apos;{0}&apos;.</value>
<comment>.
Parameters: 0 - urn (string) </comment>
</data>
<data name="DefaultLanguagePlaceholder" xml:space="preserve">
<value>&lt;default&gt;</value>
<comment></comment>

View File

@@ -2443,6 +2443,7 @@ GetUserDefinedObjectsFromModelFailed = Failed to get user defined objects from m
#ObjectManagement Service
ErrorConnectionNotFound = The connection could not be found
ObjectNotRenamable(string urn) = The object could not be renamed. URN: '{0}'.
############################################################################
# Security Service

View File

@@ -6576,6 +6576,12 @@ The Query Processor estimates that implementing the following index could improv
<target state="new">Reset password for the login while unlocking.</target>
<note></note>
</trans-unit>
<trans-unit id="ObjectNotRenamable">
<source>The object could not be renamed. URN: '{0}'.</source>
<target state="new">The object could not be renamed. URN: '{0}'.</target>
<note>.
Parameters: 0 - urn (string) </note>
</trans-unit>
</body>
</file>
</xliff>