mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-14 03:58:35 -05:00
Adding sr.strings file and removing hard-coded strings (#52)
* Strings sweep for connection service * String sweep for credentials service * String sweep for hosting * String sweep for query execution service * String sweep for Workspace service * Renaming utility namespace to match standards Renaming Microsoft.SqlTools.EditorServices.Utility to Microsoft.SqlTools.ServiceLayer.Utility to match the naming changes done a while back. Also renaming them on the files that use them * Namespace change on reliable connection * Adding the new resx and designer files * Final bug fixes for srgen Fixing flakey moq package name * Removing todo as per @kevcunnane * Adding using statements as per @llali's comment * Fixing issues from broken unit tests Note: This feature contains changes that will break the contract for saving as CSV and JSON. On success, null is returned as a message instead of "Success". Changes will be made to the vscode component to handle this change.
This commit is contained in:
551
src/Microsoft.SqlTools.ServiceLayer/sr.cs
Normal file
551
src/Microsoft.SqlTools.ServiceLayer/sr.cs
Normal file
@@ -0,0 +1,551 @@
|
||||
// WARNING:
|
||||
// This file was generated by the Microsoft DataWarehouse String Resource Tool 1.37.0.0
|
||||
// from information in sr.strings
|
||||
// DO NOT MODIFY THIS FILE'S CONTENTS, THEY WILL BE OVERWRITTEN
|
||||
//
|
||||
namespace Microsoft.SqlTools.ServiceLayer
|
||||
{
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Resources;
|
||||
using System.Globalization;
|
||||
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class SR
|
||||
{
|
||||
protected SR()
|
||||
{ }
|
||||
|
||||
public static CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.Culture;
|
||||
}
|
||||
set
|
||||
{
|
||||
Keys.Culture = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static string ConnectionServiceConnectErrorNullParams
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.ConnectionServiceConnectErrorNullParams);
|
||||
}
|
||||
}
|
||||
|
||||
public static string ConnectionServiceListDbErrorNullOwnerUri
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.ConnectionServiceListDbErrorNullOwnerUri);
|
||||
}
|
||||
}
|
||||
|
||||
public static string ConnectionParamsValidateNullOwnerUri
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.ConnectionParamsValidateNullOwnerUri);
|
||||
}
|
||||
}
|
||||
|
||||
public static string ConnectionParamsValidateNullConnection
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.ConnectionParamsValidateNullConnection);
|
||||
}
|
||||
}
|
||||
|
||||
public static string ConnectionParamsValidateNullServerName
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.ConnectionParamsValidateNullServerName);
|
||||
}
|
||||
}
|
||||
|
||||
public static string CredentialsServiceInvalidCriticalHandle
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.CredentialsServiceInvalidCriticalHandle);
|
||||
}
|
||||
}
|
||||
|
||||
public static string CredentialsServicePasswordLengthExceeded
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.CredentialsServicePasswordLengthExceeded);
|
||||
}
|
||||
}
|
||||
|
||||
public static string CredentialsServiceTargetForDelete
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.CredentialsServiceTargetForDelete);
|
||||
}
|
||||
}
|
||||
|
||||
public static string CredentialsServiceTargetForLookup
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.CredentialsServiceTargetForLookup);
|
||||
}
|
||||
}
|
||||
|
||||
public static string CredentialServiceWin32CredentialDisposed
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.CredentialServiceWin32CredentialDisposed);
|
||||
}
|
||||
}
|
||||
|
||||
public static string HostingUnexpectedEndOfStream
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.HostingUnexpectedEndOfStream);
|
||||
}
|
||||
}
|
||||
|
||||
public static string HostingHeaderMissingColon
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.HostingHeaderMissingColon);
|
||||
}
|
||||
}
|
||||
|
||||
public static string HostingHeaderMissingContentLengthHeader
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.HostingHeaderMissingContentLengthHeader);
|
||||
}
|
||||
}
|
||||
|
||||
public static string HostingHeaderMissingContentLengthValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.HostingHeaderMissingContentLengthValue);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceCancelAlreadyCompleted
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceCancelAlreadyCompleted);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceCancelDisposeFailed
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceCancelDisposeFailed);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceSubsetNotCompleted
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceSubsetNotCompleted);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceSubsetBatchOutOfRange
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceSubsetBatchOutOfRange);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceSubsetResultSetOutOfRange
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceSubsetResultSetOutOfRange);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceDataReaderByteCountInvalid
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceDataReaderByteCountInvalid);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceDataReaderCharCountInvalid
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceDataReaderCharCountInvalid);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceDataReaderXmlCountInvalid
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceDataReaderXmlCountInvalid);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceFileWrapperWriteOnly
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceFileWrapperWriteOnly);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceFileWrapperNotInitialized
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceFileWrapperNotInitialized);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceFileWrapperReadOnly
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceFileWrapperReadOnly);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceCompletedSuccessfully
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceCompletedSuccessfully);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceColumnNull
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceColumnNull);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceRequestsNoQuery
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceRequestsNoQuery);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceQueryInvalidOwnerUri
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceQueryInvalidOwnerUri);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceQueryInProgress
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceQueryInProgress);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceMessageSenderNotSql
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceMessageSenderNotSql);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceResultSetReaderNull
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceResultSetReaderNull);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceResultSetNotRead
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceResultSetNotRead);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceResultSetStartRowOutOfRange
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceResultSetStartRowOutOfRange);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceResultSetRowCountOutOfRange
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceResultSetRowCountOutOfRange);
|
||||
}
|
||||
}
|
||||
|
||||
public static string QueryServiceResultSetNoColumnSchema
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceResultSetNoColumnSchema);
|
||||
}
|
||||
}
|
||||
|
||||
public static string WorkspaceServicePositionLineOutOfRange
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.WorkspaceServicePositionLineOutOfRange);
|
||||
}
|
||||
}
|
||||
|
||||
public static string ConnectionServiceListDbErrorNotConnected(string uri)
|
||||
{
|
||||
return Keys.GetString(Keys.ConnectionServiceListDbErrorNotConnected, uri);
|
||||
}
|
||||
|
||||
public static string ConnectionServiceConnStringInvalidAuthType(string authType)
|
||||
{
|
||||
return Keys.GetString(Keys.ConnectionServiceConnStringInvalidAuthType, authType);
|
||||
}
|
||||
|
||||
public static string ConnectionServiceConnStringInvalidIntent(string intent)
|
||||
{
|
||||
return Keys.GetString(Keys.ConnectionServiceConnStringInvalidIntent, intent);
|
||||
}
|
||||
|
||||
public static string ConnectionParamsValidateNullSqlAuth(string component)
|
||||
{
|
||||
return Keys.GetString(Keys.ConnectionParamsValidateNullSqlAuth, component);
|
||||
}
|
||||
|
||||
public static string QueryServiceAffectedRows(int rows)
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceAffectedRows, rows);
|
||||
}
|
||||
|
||||
public static string QueryServiceErrorFormat(int msg, int lvl, int state, int line, string newLine, string message)
|
||||
{
|
||||
return Keys.GetString(Keys.QueryServiceErrorFormat, msg, lvl, state, line, newLine, message);
|
||||
}
|
||||
|
||||
public static string WorkspaceServicePositionColumnOutOfRange(int line)
|
||||
{
|
||||
return Keys.GetString(Keys.WorkspaceServicePositionColumnOutOfRange, line);
|
||||
}
|
||||
|
||||
public static string WorkspaceServiceBufferPositionOutOfOrder(int sLine, int sCol, int eLine, int eCol)
|
||||
{
|
||||
return Keys.GetString(Keys.WorkspaceServiceBufferPositionOutOfOrder, sLine, sCol, eLine, eCol);
|
||||
}
|
||||
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
public class Keys
|
||||
{
|
||||
static ResourceManager resourceManager = new ResourceManager("Microsoft.SqlTools.ServiceLayer.SR", typeof(SR).GetTypeInfo().Assembly);
|
||||
|
||||
static CultureInfo _culture = null;
|
||||
|
||||
|
||||
public const string ConnectionServiceConnectErrorNullParams = "ConnectionServiceConnectErrorNullParams";
|
||||
|
||||
|
||||
public const string ConnectionServiceListDbErrorNullOwnerUri = "ConnectionServiceListDbErrorNullOwnerUri";
|
||||
|
||||
|
||||
public const string ConnectionServiceListDbErrorNotConnected = "ConnectionServiceListDbErrorNotConnected";
|
||||
|
||||
|
||||
public const string ConnectionServiceConnStringInvalidAuthType = "ConnectionServiceConnStringInvalidAuthType";
|
||||
|
||||
|
||||
public const string ConnectionServiceConnStringInvalidIntent = "ConnectionServiceConnStringInvalidIntent";
|
||||
|
||||
|
||||
public const string ConnectionParamsValidateNullOwnerUri = "ConnectionParamsValidateNullOwnerUri";
|
||||
|
||||
|
||||
public const string ConnectionParamsValidateNullConnection = "ConnectionParamsValidateNullConnection";
|
||||
|
||||
|
||||
public const string ConnectionParamsValidateNullServerName = "ConnectionParamsValidateNullServerName";
|
||||
|
||||
|
||||
public const string ConnectionParamsValidateNullSqlAuth = "ConnectionParamsValidateNullSqlAuth";
|
||||
|
||||
|
||||
public const string CredentialsServiceInvalidCriticalHandle = "CredentialsServiceInvalidCriticalHandle";
|
||||
|
||||
|
||||
public const string CredentialsServicePasswordLengthExceeded = "CredentialsServicePasswordLengthExceeded";
|
||||
|
||||
|
||||
public const string CredentialsServiceTargetForDelete = "CredentialsServiceTargetForDelete";
|
||||
|
||||
|
||||
public const string CredentialsServiceTargetForLookup = "CredentialsServiceTargetForLookup";
|
||||
|
||||
|
||||
public const string CredentialServiceWin32CredentialDisposed = "CredentialServiceWin32CredentialDisposed";
|
||||
|
||||
|
||||
public const string HostingUnexpectedEndOfStream = "HostingUnexpectedEndOfStream";
|
||||
|
||||
|
||||
public const string HostingHeaderMissingColon = "HostingHeaderMissingColon";
|
||||
|
||||
|
||||
public const string HostingHeaderMissingContentLengthHeader = "HostingHeaderMissingContentLengthHeader";
|
||||
|
||||
|
||||
public const string HostingHeaderMissingContentLengthValue = "HostingHeaderMissingContentLengthValue";
|
||||
|
||||
|
||||
public const string QueryServiceCancelAlreadyCompleted = "QueryServiceCancelAlreadyCompleted";
|
||||
|
||||
|
||||
public const string QueryServiceCancelDisposeFailed = "QueryServiceCancelDisposeFailed";
|
||||
|
||||
|
||||
public const string QueryServiceSubsetNotCompleted = "QueryServiceSubsetNotCompleted";
|
||||
|
||||
|
||||
public const string QueryServiceSubsetBatchOutOfRange = "QueryServiceSubsetBatchOutOfRange";
|
||||
|
||||
|
||||
public const string QueryServiceSubsetResultSetOutOfRange = "QueryServiceSubsetResultSetOutOfRange";
|
||||
|
||||
|
||||
public const string QueryServiceDataReaderByteCountInvalid = "QueryServiceDataReaderByteCountInvalid";
|
||||
|
||||
|
||||
public const string QueryServiceDataReaderCharCountInvalid = "QueryServiceDataReaderCharCountInvalid";
|
||||
|
||||
|
||||
public const string QueryServiceDataReaderXmlCountInvalid = "QueryServiceDataReaderXmlCountInvalid";
|
||||
|
||||
|
||||
public const string QueryServiceFileWrapperWriteOnly = "QueryServiceFileWrapperWriteOnly";
|
||||
|
||||
|
||||
public const string QueryServiceFileWrapperNotInitialized = "QueryServiceFileWrapperNotInitialized";
|
||||
|
||||
|
||||
public const string QueryServiceFileWrapperReadOnly = "QueryServiceFileWrapperReadOnly";
|
||||
|
||||
|
||||
public const string QueryServiceAffectedRows = "QueryServiceAffectedRows";
|
||||
|
||||
|
||||
public const string QueryServiceCompletedSuccessfully = "QueryServiceCompletedSuccessfully";
|
||||
|
||||
|
||||
public const string QueryServiceErrorFormat = "QueryServiceErrorFormat";
|
||||
|
||||
|
||||
public const string QueryServiceColumnNull = "QueryServiceColumnNull";
|
||||
|
||||
|
||||
public const string QueryServiceRequestsNoQuery = "QueryServiceRequestsNoQuery";
|
||||
|
||||
|
||||
public const string QueryServiceQueryInvalidOwnerUri = "QueryServiceQueryInvalidOwnerUri";
|
||||
|
||||
|
||||
public const string QueryServiceQueryInProgress = "QueryServiceQueryInProgress";
|
||||
|
||||
|
||||
public const string QueryServiceMessageSenderNotSql = "QueryServiceMessageSenderNotSql";
|
||||
|
||||
|
||||
public const string QueryServiceResultSetReaderNull = "QueryServiceResultSetReaderNull";
|
||||
|
||||
|
||||
public const string QueryServiceResultSetNotRead = "QueryServiceResultSetNotRead";
|
||||
|
||||
|
||||
public const string QueryServiceResultSetStartRowOutOfRange = "QueryServiceResultSetStartRowOutOfRange";
|
||||
|
||||
|
||||
public const string QueryServiceResultSetRowCountOutOfRange = "QueryServiceResultSetRowCountOutOfRange";
|
||||
|
||||
|
||||
public const string QueryServiceResultSetNoColumnSchema = "QueryServiceResultSetNoColumnSchema";
|
||||
|
||||
|
||||
public const string WorkspaceServicePositionLineOutOfRange = "WorkspaceServicePositionLineOutOfRange";
|
||||
|
||||
|
||||
public const string WorkspaceServicePositionColumnOutOfRange = "WorkspaceServicePositionColumnOutOfRange";
|
||||
|
||||
|
||||
public const string WorkspaceServiceBufferPositionOutOfOrder = "WorkspaceServiceBufferPositionOutOfOrder";
|
||||
|
||||
|
||||
private Keys()
|
||||
{ }
|
||||
|
||||
public static CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return _culture;
|
||||
}
|
||||
set
|
||||
{
|
||||
_culture = value;
|
||||
}
|
||||
}
|
||||
|
||||
public static string GetString(string key)
|
||||
{
|
||||
return resourceManager.GetString(key, _culture);
|
||||
}
|
||||
|
||||
|
||||
public static string GetString(string key, object arg0)
|
||||
{
|
||||
return string.Format(global::System.Globalization.CultureInfo.CurrentCulture, resourceManager.GetString(key, _culture), arg0);
|
||||
}
|
||||
|
||||
|
||||
public static string GetString(string key, object arg0, object arg1, object arg2, object arg3)
|
||||
{
|
||||
return string.Format(global::System.Globalization.CultureInfo.CurrentCulture, resourceManager.GetString(key, _culture), arg0, arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
|
||||
public static string GetString(string key, object arg0, object arg1, object arg2, object arg3, object arg4, object arg5)
|
||||
{
|
||||
return string.Format(global::System.Globalization.CultureInfo.CurrentCulture, resourceManager.GetString(key, _culture), arg0, arg1, arg2, arg3, arg4, arg5);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user