mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
Initial commit of SqlTools Service API
This commit is contained in:
37
ServiceHost/LanguageServer/Hover.cs
Normal file
37
ServiceHost/LanguageServer/Hover.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
//
|
||||
|
||||
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
|
||||
{
|
||||
public class MarkedString
|
||||
{
|
||||
public string Language { get; set; }
|
||||
|
||||
public string Value { get; set; }
|
||||
}
|
||||
|
||||
public class Hover
|
||||
{
|
||||
public MarkedString[] Contents { get; set; }
|
||||
|
||||
public Range? Range { get; set; }
|
||||
}
|
||||
|
||||
public class HoverRequest
|
||||
{
|
||||
public static readonly
|
||||
RequestType<TextDocumentPosition, Hover> Type =
|
||||
RequestType<TextDocumentPosition, Hover>.Create("textDocument/hover");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user