-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return context after it has been generated (#2194)
* Emit generate scripts complete event to client * Rename Message to ErrorMessage * Sets owner URI for complete params obj * Setting complete flag explicitly * Making errorMessage prop nullable * Localizes error messages * Return context scripts and remove script tabs * Send event when script gen isn't needed * Change notification to request endpoint * test get context when context doesn't exist * Stop reading old context files
- Loading branch information
1 parent
3ba514c
commit c0a0f27
Showing
10 changed files
with
174 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
...t.SqlTools.ServiceLayer/Metadata/Contracts/GenerateServerContextualizationNotification.cs
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
...rosoft.SqlTools.ServiceLayer/Metadata/Contracts/GenerateServerContextualizationRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
// | ||
|
||
using Microsoft.SqlTools.Hosting.Protocol.Contracts; | ||
|
||
namespace Microsoft.SqlTools.ServiceLayer.Metadata.Contracts | ||
{ | ||
public class GenerateServerContextualizationParams | ||
{ | ||
/// <summary> | ||
/// The URI of the connection to generate context for. | ||
/// </summary> | ||
public string OwnerUri { get; set; } | ||
} | ||
|
||
public class GenerateServerContextualizationResult | ||
{ | ||
/// <summary> | ||
/// The generated server context. | ||
/// </summary> | ||
public string? Context { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// Generate server context request endpoint. | ||
/// </summary> | ||
public class GenerateServerContextualizationRequest | ||
{ | ||
public static readonly RequestType<GenerateServerContextualizationParams, GenerateServerContextualizationResult> Type = | ||
RequestType<GenerateServerContextualizationParams, GenerateServerContextualizationResult>.Create("metadata/generateServerContext"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.