mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-25 09:35:37 -05:00
preload database when database node is expanded (#1690)
This commit is contained in:
@@ -22,6 +22,7 @@ namespace Microsoft.SqlTools.ServiceLayer.SqlContext
|
||||
IntelliSense = new IntelliSenseSettings();
|
||||
QueryExecutionSettings = new QueryExecutionSettings();
|
||||
Format = new FormatterSettings();
|
||||
TableDesigner = new TableDesignerSettings();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,5 +49,11 @@ namespace Microsoft.SqlTools.ServiceLayer.SqlContext
|
||||
/// </summary>
|
||||
[JsonProperty("objectExplorer")]
|
||||
public ObjectExplorerSettings ObjectExplorer { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the table designer settings
|
||||
/// </summary>
|
||||
[JsonProperty("tableDesigner")]
|
||||
public TableDesignerSettings TableDesigner { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// 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.ServiceLayer.SqlContext
|
||||
{
|
||||
/// <summary>
|
||||
/// Contract for receiving table designer settings as part of workspace settings
|
||||
/// </summary>
|
||||
public class TableDesignerSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether the database model should be preloaded to make the initial launch quicker.
|
||||
/// </summary>
|
||||
public bool PreloadDatabaseModel { get; set; } = false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user