mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-20 17:24:00 -05:00
* Add error handling for Azure Exceptions * Add SRGen for string * Add specific exception messages * Move DefinitionResult class * Add SqlLogin constant * Add error scenarios * revert timeout duration * Modify tests * Modify tests * Add tests * Revert live connection definition * Modify DefinitionsHandlerWithNoConnectionTest * fix test after merge * Code review changes * Code review changes * Code review changes
30 lines
829 B
C#
30 lines
829 B
C#
//
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
//
|
|
|
|
using Microsoft.SqlTools.ServiceLayer.Hosting.Protocol.Contracts;
|
|
using Microsoft.SqlTools.ServiceLayer.Workspace.Contracts;
|
|
|
|
namespace Microsoft.SqlTools.ServiceLayer.LanguageServices.Contracts
|
|
{
|
|
public class DefinitionRequest
|
|
{
|
|
public static readonly
|
|
RequestType<TextDocumentPosition, Location[]> Type =
|
|
RequestType<TextDocumentPosition, Location[]>.Create("textDocument/definition");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Error object for Definition
|
|
/// </summary>
|
|
public class DefinitionError
|
|
{
|
|
/// <summary>
|
|
/// Error message
|
|
/// </summary>
|
|
public string message { get; set; }
|
|
}
|
|
}
|
|
|