Added support for T-SQL parse (#642)

* added support for t-sql parse

* added syntax parse to language service instead

* fixed misleading error

* code review comments
This commit is contained in:
Aditya Bist
2018-06-26 14:19:05 -07:00
committed by GitHub
parent 539d579a9b
commit 7c7395fce0
4 changed files with 76 additions and 5 deletions

View File

@@ -0,0 +1,31 @@
//
// 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.Hosting.Protocol.Contracts;
using Microsoft.SqlTools.ServiceLayer.Workspace.Contracts;
namespace Microsoft.SqlTools.ServiceLayer.LanguageServices.Contracts
{
public class SyntaxParseParams
{
public string OwnerUri { get; set; }
public string Query { get; set; }
}
public class SyntaxParseResult
{
public bool Parseable { get; set; }
public string[] Errors { get; set; }
}
public class SyntaxParseRequest
{
public static readonly
RequestType<SyntaxParseParams, SyntaxParseResult> Type =
RequestType<SyntaxParseParams, SyntaxParseResult>.Create("query/syntaxparse");
}
}