mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
* Initial code for binding queue * Fix-up some of the timeout wait code * Add some initial test code * Add missing test file * Update the binding queue tests * Add more test coverage and refactor a bit. Disable reliabile connection until we can fix it..it's holding an open data reader connection. * A few more test updates * Initial integrate queue with language service. * Hook up the connected binding queue into al binding calls. * Cleanup comments and remove dead code * More missing comments * Fix build break. Reenable ReliabileConnection. * Revert all changes to SqlConnectionFactory * Resolve merge conflicts * Cleanup some more of the timeouts and sync code * Address code review feedback * Address more code review feedback
49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
//
|
|
// 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
|
|
{
|
|
/// <summary>
|
|
/// Class for storing cached metadata regarding a parsed SQL file
|
|
/// </summary>
|
|
internal class ScriptParseInfo
|
|
{
|
|
private ManualResetEvent buildingMetadataEvent = new ManualResetEvent(initialState: true);
|
|
|
|
/// <summary>
|
|
/// Event which tells if MetadataProvider is built fully or not
|
|
/// </summary>
|
|
public ManualResetEvent BuildingMetadataEvent
|
|
{
|
|
get { return this.buildingMetadataEvent; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or sets a flag determining is the LanguageService is connected
|
|
/// </summary>
|
|
public bool IsConnected { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the binding queue connection context key
|
|
/// </summary>
|
|
public string ConnectionKey { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the previous SQL parse result
|
|
/// </summary>
|
|
public ParseResult ParseResult { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the current autocomplete suggestion list
|
|
/// </summary>
|
|
public IEnumerable<Declaration> CurrentSuggestions { get; set; }
|
|
}
|
|
}
|