Commit Graph
11 Commits
Author SHA1 Message Date
Lewis Sanchez c0a0f27e49 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
2023-08-31 16:28:05 -07:00
Lewis Sanchez 08e855aa1d Implements Contextualization API into Azure Data Studio to get better query recommendations from extensions like Copilot (#2159)
* Add contract to get all metadata request

* Add new metadata service request endpoint

* Adds factory to make database server scripts

* Minor clean up

* Corrects filename typo

* Cleans up SmoScripterFactory

* Stubs out metadata cacher

* Method clean up

* Add writing and reading to script cache

* Cleans up request endpoint flow

* Add missing edge case when cache isn't empty

* Remove unused code

* Remove unneeded null check

* Read to end of stream

* Passes correct parameter to write cache

* Adds integration test to get all scripts

* Renames new request endpoint

* Rename request class to AllServerMetadataRequest

* Renames server metadata request endpoints

* Refresh cache and adjusts return obj type

* Clean up

* Assert table script generation

* Minor cache refresh adjustment

* Ensure test create table script is accurate

* Code review changes

* Additional code review changes

* Swap logger write for logger warning

* Renames generate request endpoint methods

* Remove unused using statement

* Remove unnecessary create table check

* Check if previous script file is valid for reuse

* Pascal case for method name

* Code review changes

* Fix PR issues

* Update doc comment

* Fixes tests after code review changes

* Fix failing int. test due to 30 day temp file expiry

* Generalize type names and update request endpoint

* Updates doc comment.

* Remove 'database' from type and method names

* Code review changes

* Code review changes

* Issues with background thread.

* Remove thread sleep for test reliability

* Remove reflection from int. tests
2023-08-22 12:28:32 -07:00
Lewis Sanchez 272d2fdb92 Simplify create date description used in filter dialog (#2107)
* Simplify create date description

* Update localized files with new description
2023-06-20 12:16:20 -07:00
Lewis SanchezandCharles Gagnon 0b247e507e Stops OE from breaking when paused DBs are expanded (#2083)
* Send session failed notification for paused DBs

* Creates error node when connections fail

* Revert "Send session failed notification for paused DBs"

This reverts commit 1f09d8adf9aadb61a7644f84f40558710b0ba5f2.

* Adjusts error node label

* Code clean up

* Update src/Microsoft.SqlTools.ServiceLayer/ObjectExplorer/ObjectExplorerService.cs

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>

* Cleans up error node info creation

* Rename create error node method

---------

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
2023-06-02 12:29:52 -07:00
Lewis Sanchez ddfc86fe04 Additional Execution Plan Node Properties for Highlighting Expensive Operators (#1683)
* Adds cost metric information to the node.

* Gets the elapsed CPU time by the node operation

* Renames DTO property to row metrics

* Removes unused class

* Simplify checks for row property values

* Cleans up model for node cost metrics

* Removes duplicate code

* Switching to primitive type empty string

* Code review changes
2022-09-29 13:09:37 -07:00
Lewis Sanchez b24202a762 Updating Newtonsoft package to version 13.0.1 (#1559)
* Forcing newtonsoft to version 13.0.1

* Updates addin Newtonsoft.Json package version to 13.0.1

* Update Newtonsoft.Json package version to 13.0.1
2022-06-27 11:01:49 -07:00
Lewis Sanchez b7360ea17f Add Tools Integration Test Project to STS Build Pipeline (#1480)
* Adds integration tests to build pipeline

* Yaml syntax error fix attempt 1

* Gets rid of regex csproj strings

* Removes quotes around projects

* Corrects yaml formatting

* Makes corrections to yaml file for integration tests

* Adds TestEnvConfig and IntegrationTests to build.json and cleans yml

* Removes STS integration tests from build.yml
2022-05-02 14:41:58 -07:00
Lewis Sanchez 224c5c742c Removes unnecessary using statement to fix build error (#1479)
* Removes unnecessary using statement to fix build error

* Stops continuing the release if build.cmd task fails

* Revert "Stops continuing the release if build.cmd task fails"

This reverts commit 64c055cdfa7a5275a9144192e0740d124a92ec9a.
2022-04-26 17:22:15 -07:00
Lewis Sanchez 185d689267 Camel cases and standardizes endpoint URI prefixes for execution plans (#1442) 2022-03-25 11:47:25 -07:00
Lewis Sanchez 8215d88dcf Adds new graph comparison request handler to the Execution Plan Service. (#1438)
* Adds new graph comparison request handler to the Execution Plan Service.

* Code review changes

* Renames execution plan compare params, result, and request classes.
2022-03-22 14:52:42 -07:00
Lewis Sanchez f7b37091ca Renames ShowPlan directories along with corresponding namespaces (#1435)
* Renames ShowPlan directories along with corresponding namespaces

* Renames ShowPlanGraphUtils to ExecutionPlanGraphUtils

* Revert "Renames ShowPlanGraphUtils to ExecutionPlanGraphUtils"

This reverts commit 5dc2696ae906598447eed7360a3f342218432b83.

* Reverts show plan tests name change.

* Renames show plan test XML files.

* Renames ported directory to ShowPlan and updates namespace accordingly
2022-03-21 16:25:44 -07:00