864 Commits
Author SHA1 Message Date
Karl Burtram 1332fd112e Clean-up the autocomplete SMO integration. 2016-09-01 00:23:39 -07:00
Mitchell Sternke a30ff33187 Addressing code review feedback 2016-08-31 16:04:04 -07:00
Karl Burtram 013498fc3d Setup code coverage to be runable on demand 2016-08-31 16:01:24 -07:00
Karl Burtram f88619c09e Update unit tests to fix failures from autocomplete refactoring 2016-08-31 12:25:07 -07:00
Mitchell Sternke 3fe6e330fe Added support for most sql connection string properties 2016-08-30 17:31:34 -07:00
Mitchell Sternke 015bb26d9a Merge branch 'dev' into feature/listDatabases 2016-08-25 16:52:35 -07:00
Karl Burtram b8329a7986 Merge branch 'dev' into feature/testSmo 2016-08-24 23:04:24 -07:00
Karl Burtram 89ca0c1fde Inital SMO autocomplete commit 2016-08-24 23:03:43 -07:00
Mitchell Sternke 7d3d593a80 Added request to list databases on the server for the current connection 2016-08-24 16:03:08 -07:00
Leila Lali 02518e022e Merge pull request #30 from Microsoft/feature/languageclient20
Upgrading to language server protocol 2.0
2016-08-24 16:02:27 -07:00
Benjamin Russell df1772ff45 Merge pull request #25 from Microsoft/feature/queryBatchProcessing
Feature: Batch Separator Support for Query Execution
2016-08-24 15:28:32 -07:00
Benjamin Russell 0371e17028 Changes to fix code review comments and bug with handling empty batches 2016-08-24 15:25:13 -07:00
Leila Lali d96b4e5a4a Changing the format of the messages to be based on language server protocol 2.0 2016-08-24 15:16:43 -07:00
Mitchell Sternke 14399ede65 Added inner exceptions on connection failure and fixed a param validation bug 2016-08-22 16:26:02 -07:00
benrr101 91ed9aea59 Cleanup for comments/copyright 2016-08-22 12:04:43 -07:00
Mitchell Sternke 4631f2083e Merge pull request #23 from Microsoft/bug/intellisenseCacheTestFix
Fixed bug in intellisense cache test
2016-08-22 10:25:25 -07:00
benrr101 943c7b9569 Wrapping up batch separation
Adding unit tests
Fixing things that got brought up from the unit tests
2016-08-19 18:24:20 -07:00
Mitchell Sternke a5992997e1 Removed factory from AutoCompleteService 2016-08-19 17:53:49 -07:00
benrr101 c719ed4598 Moving to official moq version 2016-08-19 15:42:05 -07:00
benrr101 1360fe7bde Merge branch 'dev' into feature/queryBatchProcessing 2016-08-19 15:31:02 -07:00
benrr101 f72ae9ac07 WIP adding unit tests for batch processing 2016-08-19 15:22:10 -07:00
Mitchell Sternke b928516f58 Fixed bug in intellisense cache test 2016-08-18 15:24:04 -07:00
benrr101 8a8104b4cf Fixing bug where select returns no messages 2016-08-18 15:14:38 -07:00
Benjamin Russell e9814435d8 Merge pull request #18 from Microsoft/feature/queryCancellation
Adding support for query cancellation
2016-08-16 16:15:13 -07:00
Mitchell Sternke c80a90331d Added initial tests for the connection manager's intellisense cache 2016-08-16 15:32:36 -07:00
benrr101 981c144bfe Merge branch 'dev' into bug/exceptionLoop 2016-08-16 12:29:02 -07:00
benrr101 9fa183ea6d Fixing String.Format to string.Format 2016-08-16 12:28:52 -07:00
Benjamin Russell 062c40368d Adding support for query cancellation
Query cancellation support is added via CancellationToken mechanisms that
were implemented previously. This change adds a new request type
"query/cancel" that will issue the cancellation token. Unit tests were
also added.
2016-08-15 15:23:07 -07:00
Benjamin Russell 1acc8c9122 Fixing up error logging
Fixing issue where plaintext passwords could be written to logs
Fixing up todo issues where error events needed to be passed back from the
service layer when the hosting component fails.
2016-08-12 17:38:41 -07:00
Benjamin Russell ba144bd5d0 Unit tests for the message reader 2016-08-12 17:37:07 -07:00
Benjamin Russell 9890e828bd Adding unit tests to the updated message mechanism 2016-08-11 16:39:33 -07:00
Benjamin Russell 68c25f506e Adding changes as requested for code review 2016-08-10 16:40:36 -07:00
Benjamin Russell 8167330e16 Finishing up unit tests 2016-08-10 15:14:56 -07:00
Benjamin Russell 430860dd5d Merge branch 'dev' into feature/queryExecutionV1 2016-08-09 11:15:22 -07:00
Benjamin Russell d783fd505b Second batch of unit tests
Making slight changes to RequestContext to make it easier to mock
2016-08-09 11:10:54 -07:00
Benjamin Russell 9f371cd0bc Unit tests, part 1 2016-08-05 18:38:21 -07:00
Mitchell Sternke 5c03ba336d Added disconnect and connect when already connected service code 2016-08-05 17:46:16 -07:00
Benjamin Russell 315c1fd7b0 Merge branch 'feature/connectUsingService' into feature/queryExecutionV1 2016-08-05 11:22:52 -07:00
Benjamin Russell 0740e81dab Stub files for tests for query execution 2016-08-05 11:11:50 -07:00
Mitchell Sternke 8fba793a46 Incremental checkin of connection work 2016-08-05 10:56:51 -07:00
Mitchell Sternke 5249924b12 Fixed a few minor errors from the last commit 2016-08-04 14:29:57 -07:00
Mitchell Sternke 6ca893a122 Merge branch 'feature/connectUsingService' of https://github.com/Microsoft/sqltoolsservice into feature/connectUsingService 2016-08-04 14:10:00 -07:00
Kevin Cunnane 402e25f77d Per editor Connect support v0.1
- Basic plumbing to support connections for a URI rather than global connections. Typical use case is editor requests to connect, but this isn't the only possible use
- Tests pass but need updating to cover new functionality, and re-enable AutoCompleteService test once there is a ServiceDiscovery component that registers and returns services. This is necessary as .Instance won't allow for dependency injection and proper testing.
2016-08-04 14:01:17 -07:00
Benjamin Russell d191b0483c Small bugfix after the previous merge
My mistake, didn't pay enough attention when performing the refactoring as
requested in the last code review.
2016-08-03 15:41:11 -07:00
Kevin Cunnane a40180bcb1 Per editor Connect support v0.1
- Basic plumbing to support connections for a URI rather than global connections. Typical use case is editor requests to connect, but this isn't the only possible use
- Tests pass but need updating to cover new functionality, and re-enable AutoCompleteService test once there is a ServiceDiscovery component that registers and returns services. This is necessary as .Instance won't allow for dependency injection and proper testing.
2016-08-02 18:55:25 -07:00
Benjamin Russell b2f44031b7 Switching from ISqlConnection to DbConnection
This is a fairly minor change that will save tons of time as we develop
this service. The DbConnection and associated Db* abstract classes
ask for synchronous versions of the code and allow the addition of async
code. The SqlClient implementation already implements Db* abstract
classes, so we can piggy back off that for our dependency injection layer.

Tests and existing code has been updated to handle the change, as well
2016-08-02 18:19:51 -07:00
Benjamin Russell f40aa31c67 Merge branch 'dev' into feature/queryExecutionV1
Also adding a fancy new mocked out reader for mocking db calls.
2016-08-01 14:27:57 -07:00
Benjamin Russell e83d2704b9 Fixing project names to fix VS bugs
For whatever reason, Visual Studio throws a fit if a referenced project has a name
and the folder name (which is used to reference the project) is different than that name.
To solve this issue, I've renamed all the projects and folders to match their project
names as stated in the project.json.
2016-07-29 16:55:44 -07:00
Kevin Cunnane f4c6589681 Add error handling to Connect command
- Handles errors when connecting
- Adds method to capture the settings so the connection service can use these. Expect to read settings from here (and possible connections) in the future
- Minor rename to the test namespace to be consistent with refactor
2016-07-27 18:38:18 -07:00
Karl Burtram 7ff6cc34a0 Fix binary names and add internalsvisible flag for tests 2016-07-25 18:19:20 -07:00