mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
Add "Open XEL file" support to profiler in sqltoolsservice (#2091)
* Open XEL file changes * placeholders for openxel * add observable xe reader * md format tweaks * implement localfile as a new session type * add ErrorMessage to session stopped notice * fix flaky test * handle already running session * fix stopped session event send on file completion * fix flaky unit test * Update XElite and dependent versions * Fix errors after merge and remove failing tests for now * Fix main merge mess-up. Address comments. Add one more relevant test. * Remove extra namespace. * Remove unnecessary import * Fix build error * Address comments. * Remove disabiling JSON002 compiler warning * Address comments and update json handling * Fix build error * Fix integration test (emerged due to Main merge mess up) * Clean up code (no functional changes) --------- Co-authored-by: Karl Burtram <karlb@microsoft.com> Co-authored-by: shueybubbles <david.shiflet@microsoft.com>
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
# [Introduction](introduction.md)
|
||||
# [SQL Tools JSON-RPC Protocol](jsonrpc_protocol.md)
|
||||
# [Using the JSON-RPC API](using_the_jsonrpc_api.md)
|
||||
# [Building the SQL Tools API](building_sqltoolsservice.md)
|
||||
# [Using the .NET API](using_the_dotnet_api.md)
|
||||
# Table of Contents
|
||||
|
||||
## [Introduction](introduction.md)
|
||||
|
||||
## [SQL Tools JSON-RPC Protocol](jsonrpc_protocol.md)
|
||||
|
||||
## [Using the JSON-RPC API](using_the_jsonrpc_api.md)
|
||||
|
||||
## [Building the SQL Tools API](building_sqltoolsservice.md)
|
||||
|
||||
## [Using the .NET API](using_the_dotnet_api.md)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Using the SQL Tools JSON-RPC API
|
||||
|
||||
The SQL Tools JSON-RPC API is the best way to consume the services
|
||||
functionality in SQL tools. The JSON-RPC API available through stdio
|
||||
of the SQL Tools Service process.
|
||||
@@ -9,7 +10,7 @@ of the SQL Tools Service process.
|
||||
## Download SQL Tools Service binaries
|
||||
|
||||
To get started using the SQL Tools Service you'll need to install the service binaries.
|
||||
Download the SQL Tools Service binaries from the
|
||||
Download the SQL Tools Service binaries from the
|
||||
[sqltoolsservice release page](https://github.com/Microsoft/sqltoolsservice/releases).
|
||||
|
||||
Daily development builds will end with "-alpha". Release builds will end with " Release".
|
||||
@@ -26,7 +27,7 @@ for this sample.
|
||||
|
||||
```typescript
|
||||
internal static async Task ExecuteQuery(string query)
|
||||
{
|
||||
{
|
||||
// create a temporary "workspace" file
|
||||
using (SelfCleaningTempFile queryTempFile = new SelfCleaningTempFile())
|
||||
// create the client helper which wraps the client driver objects
|
||||
@@ -74,7 +75,7 @@ internal static async Task ExecuteQuery(string query)
|
||||
}
|
||||
Console.Write(Environment.NewLine);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// close database connection
|
||||
|
||||
Reference in New Issue
Block a user