//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System.Collections.Generic;
using System.Threading;
using Microsoft.SqlServer.Management.SqlParser.Intellisense;
using Microsoft.SqlServer.Management.SqlParser.Parser;
namespace Microsoft.SqlTools.ServiceLayer.LanguageServices
{
///
/// Class for storing cached metadata regarding a parsed SQL file
///
internal class ScriptParseInfo
{
private ManualResetEvent buildingMetadataEvent = new ManualResetEvent(initialState: true);
///
/// Event which tells if MetadataProvider is built fully or not
///
public ManualResetEvent BuildingMetadataEvent
{
get { return this.buildingMetadataEvent; }
}
///
/// Gets or sets a flag determining is the LanguageService is connected
///
public bool IsConnected { get; set; }
///
/// Gets or sets the binding queue connection context key
///
public string ConnectionKey { get; set; }
///
/// Gets or sets the previous SQL parse result
///
public ParseResult ParseResult { get; set; }
///
/// Gets or sets the current autocomplete suggestion list
///
public IEnumerable CurrentSuggestions { get; set; }
}
}