Move unused forked code to external directory (#1192)

* Move unused forked code to external directory

* Fix SLN build errors

* Add back resource provider core since it's referenced by main resource provider project

* Update PackageProjects step of pipeline
This commit is contained in:
Karl Burtram
2021-04-16 15:33:35 -07:00
committed by GitHub
parent dc6555a823
commit ccf95aed77
229 changed files with 10058 additions and 10124 deletions

View File

@@ -0,0 +1,91 @@
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System;
using Microsoft.SqlTools.DataProtocol.Contracts.Utilities;
using Newtonsoft.Json;
namespace Microsoft.SqlTools.DataProtocol.Contracts.Common
{
[Flags]
[JsonConverter(typeof(FlagsIntConverter))]
public enum CompletionItemKinds
{
[FlagsIntConverter.SerializeValue(1)]
Text = 1 << 0,
[FlagsIntConverter.SerializeValue(2)]
Method = 1 << 1,
[FlagsIntConverter.SerializeValue(3)]
Function = 1 << 2,
[FlagsIntConverter.SerializeValue(4)]
Constructor = 1 << 3,
[FlagsIntConverter.SerializeValue(5)]
Field = 1 << 4,
[FlagsIntConverter.SerializeValue(6)]
Variable = 1 << 5,
[FlagsIntConverter.SerializeValue(7)]
Class = 1 << 6,
[FlagsIntConverter.SerializeValue(8)]
Interface = 1 << 7,
[FlagsIntConverter.SerializeValue(9)]
Module = 1 << 8,
[FlagsIntConverter.SerializeValue(10)]
Property = 1 << 9,
[FlagsIntConverter.SerializeValue(11)]
Unit = 1 << 10,
[FlagsIntConverter.SerializeValue(12)]
Value = 1 << 11,
[FlagsIntConverter.SerializeValue(13)]
Enum = 1 << 12,
[FlagsIntConverter.SerializeValue(14)]
Keyword = 1 << 13,
[FlagsIntConverter.SerializeValue(15)]
Snippet = 1 << 14,
[FlagsIntConverter.SerializeValue(16)]
Color = 1 << 15,
[FlagsIntConverter.SerializeValue(17)]
File = 1 << 16,
[FlagsIntConverter.SerializeValue(18)]
Reference = 1 << 17,
[FlagsIntConverter.SerializeValue(19)]
Folder = 1 << 18,
[FlagsIntConverter.SerializeValue(20)]
EnumMember = 1 << 19,
[FlagsIntConverter.SerializeValue(21)]
Constant = 1 << 20,
[FlagsIntConverter.SerializeValue(22)]
Struct = 1 << 21,
[FlagsIntConverter.SerializeValue(23)]
Event = 1 << 22,
[FlagsIntConverter.SerializeValue(24)]
Operator = 1 << 23,
[FlagsIntConverter.SerializeValue(25)]
TypeParameter = 1 << 24
}
}

View File

@@ -0,0 +1,24 @@
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Microsoft.SqlTools.DataProtocol.Contracts.Common
{
/// <summary>
/// Describes the content type that a client supports in various result literals like Hover,
/// ParameterInfo, or CompletionItem.
///
/// Please note that MarkupKinds must not start with a '$'. These kinds are reserved for
/// internal usage.
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum MarkupKind
{
PlainText = 1,
Markdown = 2
}
}

View File

@@ -0,0 +1,94 @@
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System;
using Microsoft.SqlTools.DataProtocol.Contracts.Utilities;
using Newtonsoft.Json;
namespace Microsoft.SqlTools.DataProtocol.Contracts.Common
{
[Flags]
[JsonConverter(typeof(FlagsIntConverter))]
public enum SymbolKinds
{
[FlagsIntConverter.SerializeValue(1)]
File = 1 << 0,
[FlagsIntConverter.SerializeValue(2)]
Module = 1 << 1,
[FlagsIntConverter.SerializeValue(3)]
Namespace = 1 << 2,
[FlagsIntConverter.SerializeValue(4)]
Package = 1 << 3,
[FlagsIntConverter.SerializeValue(5)]
Class = 1 << 4,
[FlagsIntConverter.SerializeValue(6)]
Method = 1 << 5,
[FlagsIntConverter.SerializeValue(7)]
Property = 1 << 6,
[FlagsIntConverter.SerializeValue(8)]
Field = 1 << 7,
[FlagsIntConverter.SerializeValue(9)]
Constructor = 1 << 8,
[FlagsIntConverter.SerializeValue(10)]
Enum = 1 << 9,
[FlagsIntConverter.SerializeValue(11)]
Interface = 1 << 10,
[FlagsIntConverter.SerializeValue(12)]
Function = 1 << 11,
[FlagsIntConverter.SerializeValue(13)]
Variable = 1 << 12,
[FlagsIntConverter.SerializeValue(14)]
Constant = 1 << 13,
[FlagsIntConverter.SerializeValue(15)]
String = 1 << 14,
[FlagsIntConverter.SerializeValue(16)]
Number = 1 << 15,
[FlagsIntConverter.SerializeValue(17)]
Boolean = 1 << 16,
[FlagsIntConverter.SerializeValue(18)]
Array = 1 << 17,
[FlagsIntConverter.SerializeValue(19)]
Object = 1 << 18,
[FlagsIntConverter.SerializeValue(20)]
Key = 1 << 19,
[FlagsIntConverter.SerializeValue(21)]
Null = 1 << 20,
[FlagsIntConverter.SerializeValue(22)]
EnumMember = 1 << 21,
[FlagsIntConverter.SerializeValue(23)]
Struct = 1 << 22,
[FlagsIntConverter.SerializeValue(24)]
Event = 1 << 23,
[FlagsIntConverter.SerializeValue(25)]
Operator = 1 << 24,
[FlagsIntConverter.SerializeValue(26)]
TypeParameter = 1 << 25
}
}

View File

@@ -0,0 +1,20 @@
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
namespace Microsoft.SqlTools.DataProtocol.Contracts.Common
{
public class WorkspaceFolder
{
/// <summary>
/// Name of the workspace folder. Defaults to <see cref="Uri"/>'s basename
/// </summary>
public string Name { get; set; }
/// <summary>
/// Associated URI for this workspace folder
/// </summary>
public string Uri { get; set; }
}
}