Commit Graph
81 Commits
Author SHA1 Message Date
Karl Burtram ebe155bb94 Rename RTF files to get picked up on Mac builds 2016-11-08 15:15:13 -08:00
Karl Burtram c6ba1c2a9f Package SMO and T-SQL LangService EULAs in sqltoolsservice archive. 2016-11-08 14:54:05 -08:00
Karl Burtram c9de4500e1 Add clear to get nuget.config to avoid bad global entries 2016-11-06 21:16:55 -08:00
Karl Burtram 8e83afd628 Fix merge build break 2016-11-06 21:05:24 -08:00
Karl Burtram cd5abad0f2 Merge branch 'release/ctp10' 2016-11-06 20:45:48 -08:00
Karl Burtram 2ebf34d9ce Add a few more autocomplete delimeter characters (#138)
Trival change to add a couple new delimeters..auto-merging.
2016-11-06 04:12:48 +00:00
Karl Burtram 09e8f41640 Bump SMO to 140.1.11 (#137)
Version bump only
2016-11-05 16:57:19 -07:00
Karl Burtram 1989259a47 Add missing SrGen nuget package to repo (#135)
Merging since this is to fix a build break.
2016-11-05 16:39:40 -07:00
Karl Burtram 3c98d03cc8 Update nuget.config to pull private nuget packages from within the repro. (#132) 2016-11-01 12:28:37 -07:00
Karl Burtram ea77bfa885 Suggestion list cleanups (#115)
* Add additional autocomplete words

* Add another word to default completion list

* Add colorization keywords and fix minor bugs.
2016-10-25 12:08:41 -07:00
Karl Burtram 1d7e6e353f Feature/cleanups1 (#114)
* Intellisense cleanups.

* Additional intellisense cleanups for default list

* Add missing Monitor.Exit in completion resolve

* A couple more cleanups.

* Bug fixes for auto-complete.

* Add comment regarding conditional logic
2016-10-24 18:11:49 +00:00
Karl Burtram 854a6a0eca Switch back to event from locks to fix blocking issues. (#111) 2016-10-21 15:46:33 -07:00
Karl Burtram fd7a2a5748 Bump SMO to 140.1.9 (#108)
version bump only
2016-10-20 14:57:40 -07:00
Karl Burtram 4ee6de63f5 Rollback build break from previous check-in (#105) 2016-10-19 13:04:02 -07:00
Karl Burtram b001f428bf Fix a binding causing autosuggestions to fail (#104) 2016-10-19 10:35:53 -07:00
Karl Burtram c05dcbbc75 Use private SqlClient to fix UDT issue (#99)
This is only a version bump so I'm going to merge now to try and make Monday's build.
2016-10-15 22:35:34 -07:00
Karl Burtram 2f876714ed Disable test causing failures in lab builds (#93) 2016-10-12 19:58:04 -07:00
Karl Burtram c5f44ccee1 Switch from events to locks during parsing (#87)
* Switch from event to locks in binding.

* Remove unneeded null check.
2016-10-12 15:09:24 -07:00
Karl Burtram 52b5f222db Merge dev to master for 0.0.7 release (#86)
* Disable failing test while investigating

* Made connection errors more user-friendly (#57)

* Bug/negativeOneRowsAffected strings file fix (#61)

* Adding changes to sr.strings files

* Fixing bug by changing valid filename check to fail on whitespace (#55)

Fixing a bug from the unit tests on OSX/Unix where attempting to create a file with a name that's all whitespace succeeds when it should fail. This was passing in Windows because File.Open throws an ArgumentException when an all whitespace name is provided. In Unix systems, File.Open does not throw, causing the test to fail.

Solution is to check for whitespace in the sanity check.

* Format Cell Values (#62)

* WIP for ability to localize cell values

* Changing how DateTimeOffsets are stored, getting unit tests going

* Reworking BufferFileStreamWriter to use dictionary approach

* Plumbing the DbCellValue type the rest of the way through

* Removing unused components to simplify contract

* Cleanup and making sure byte[] appears in parity with SSMS

* CR comments, small tweaks for optimizing LINQ

* Feature/batch line info (#56)

* inital pipe of line numbers and getting text from workspace services

* tests compile

* Fixed bug regarding tests using connections on mac

* updated tests

* fixed workspace service and fixed tests

* integrated feedback

* Remove deleted file with whitespace name

* Feature/autocomp options (#63)

* Enable IntelliSense settings

* Fix up some bugs in the IntelliSense settings.

* Code cleans for PR

* Fix a couple exceptions that are breaks query execute and intellisense.

* Add useLowerCase flag and settings tests

* Remove task.wait from test to avoid break on build machine. (#67)

This is to fix test breaks so I'll merge now.  Please let me know if there are comments on this commit.

* Do not use ReliableCommand in the query execution service (#66)

* Do not use ReliableCommand in the query execution service.

* Fixing the logic to remove InfoMessage handlers from ReliableSqlConnection

* Adding test to query UDT

* Bump SMO to 140.1.6 to pick up perf fixes (#69)

* Enable Quick Info hover tooltips (#65)

Pushing to include in tomorrow's partner release build.  Please send me any feedback and I'll address in the next Intellisense PR.

* Added grouping between system/user dbs when listing (#70)

* Feature/timestamp messages (#68)

* added support for timestamps

* fixed tests

* Moved message class to own file; added 'z' to end of date strings

* added default time constructor

* removed unnecessary z

* added time string format info in comment

* changed from utc time to using local time

* Feature/save selection (#64)

* Save selection

* Add tests

* Change filename in test

* Code cleanup

* Refactor handler

* Code cleanup

* Modify tests to have query selection

* Change variable declaration

* Bump SMO to 14.0.7 to pick Batchparser updates (#72)

...bumping versions.  No review needed.

* Lingering File Handles (#71)

Fixing a bug where in various situations, the files used for temporary storage of query results would be leftover. In particular, the following changes were made:
* When the dispose query request is submitted, the corresponding query is now disposed in addition from being removed from the list of active queries
* When a query is cancelled, it is disposed after it is cancelled
* If a query already exists for a given ownerURI, the existing query is disposed before creating a new query
* All queries are disposed when the query execution service is disposed (ie, at shutdown of the service)

A unit test to verify the action of the dispose method for a ResultSet was added.

* Ensuring queries are disposed

Adding logic to dispose any queries when:
* URI that already has a query executes another query
* A request to dispose a query is submitted
* A request to cancel a query is submitted

* Small tweaks for cleanup of query execution service

* Add IntelliSense binding queue (#73)

* Initial code for binding queue

* Fix-up some of the timeout wait code

* Add some initial test code

* Add missing test file

* Update the binding queue tests

* Add more test coverage and refactor a bit.  Disable reliabile connection until we can fix it..it's holding an open data reader connection.

* A few more test updates

* Initial integrate queue with language service.

* Hook up the connected binding queue into al binding calls.

* Cleanup comments and remove dead code

* More missing comments

* Fix build break.  Reenable ReliabileConnection.

* Revert all changes to SqlConnectionFactory

* Resolve merge conflicts

* Cleanup some more of the timeouts and sync code

* Address code review feedback

* Address more code review feedback

* Feature/connect cancel (#74)

* Implemented connection cancellation

* Made connect requests return immediately and created a separate connection complete notification

* Fix spelling

* Fix sorting

* Add separate lock for cancellation source map

* Fix an issue with queue deadlocks causing test failures (#77)

* Fixed issue where connecting could take very long and cancellation would not work (#78)

* Fixed issue where connecting could take very long and cancellation would not work

* Addressing feedback

* Remove warning suppression

* Adding unlimited timeout for query execution (#76)

Adding explicitly setting the timeout for command execution to unlimited. We can change this to be user configurable at a later time

* Support 'for XML and for JSON' queries (#75)

* Set isXMl and isJson for 'for xml/json' resultSets

* Change string comparison

* Modify if-else

* VSTS 8499785. Close SqlToolsService after VS Code exits. (#80)

VSTS 8499785. Close SqlToolsService after VS Code exits.

* Remove extra level of tasks in binding queue (#79)

* Remove extra layer of tasks in binding queue

* Change order of assigning result to avoid race condition

* Add timeout log for the metadata lock event

* Fix test cases
2016-10-08 19:18:26 +00:00
Karl Burtram f32b0290bb Remove extra level of tasks in binding queue (#79)
* Remove extra layer of tasks in binding queue

* Change order of assigning result to avoid race condition

* Add timeout log for the metadata lock event

* Fix test cases
2016-10-08 00:06:35 +00:00
Karl Burtram c6a2568075 Fix an issue with queue deadlocks causing test failures (#77) 2016-10-05 20:35:57 -04:00
Karl Burtram 62525b9c98 Add IntelliSense binding queue (#73)
* Initial code for binding queue

* Fix-up some of the timeout wait code

* Add some initial test code

* Add missing test file

* Update the binding queue tests

* Add more test coverage and refactor a bit.  Disable reliabile connection until we can fix it..it's holding an open data reader connection.

* A few more test updates

* Initial integrate queue with language service.

* Hook up the connected binding queue into al binding calls.

* Cleanup comments and remove dead code

* More missing comments

* Fix build break.  Reenable ReliabileConnection.

* Revert all changes to SqlConnectionFactory

* Resolve merge conflicts

* Cleanup some more of the timeouts and sync code

* Address code review feedback

* Address more code review feedback
2016-10-04 14:55:59 -07:00
Karl Burtram f16d0104d0 Bump SMO to 14.0.7 to pick Batchparser updates (#72)
...bumping versions.  No review needed.
2016-09-30 15:50:38 -07:00
Karl Burtram 3777cceb57 Enable Quick Info hover tooltips (#65)
Pushing to include in tomorrow's partner release build.  Please send me any feedback and I'll address in the next Intellisense PR.
2016-09-26 20:11:26 -07:00
Karl Burtram 8b6e15a43b Bump SMO to 140.1.6 to pick up perf fixes (#69) 2016-09-26 16:21:00 -07:00
Karl Burtram 5a198e3f45 Remove task.wait from test to avoid break on build machine. (#67)
This is to fix test breaks so I'll merge now.  Please let me know if there are comments on this commit.
2016-09-26 10:29:49 -07:00
Karl Burtram 806220c4b5 Feature/autocomp options (#63)
* Enable IntelliSense settings

* Fix up some bugs in the IntelliSense settings.

* Code cleans for PR

* Fix a couple exceptions that are breaks query execute and intellisense.

* Add useLowerCase flag and settings tests
2016-09-25 12:53:28 -07:00
Karl Burtram 27e092d370 Remove deleted file with whitespace name 2016-09-23 10:51:53 -07:00
Karl Burtram 159362f01b Disable failing test while investigating 2016-09-20 23:52:31 -07:00
Karl Burtram 7d6aabb618 Fix build break in row count merge 2016-09-20 21:10:22 -07:00
Karl Burtram 7226240b80 Merge pull request #60 from Microsoft/dev
Merge to master Fixing bug with incorrect row count returned (#58)
2016-09-20 21:05:07 -07:00
Karl Burtram 20a3bf4aae Merge pull request #59 from Microsoft/dev
Merge dev to master for dogfood1 re-release
2016-09-20 20:51:15 -07:00
Karl Burtram bf6a0e52e2 Merge pull request #54 from Microsoft/feature/autocompFixes
Merge autocomplete improvements to dev
2016-09-20 17:26:05 -07:00
Karl Burtram 701aba8d46 Add some tests to increase code coverage metrics 2016-09-19 18:21:48 -07:00
Karl Burtram 0bd7edecf1 Check if script is output window before parsing. 2016-09-19 14:00:10 -07:00
Karl Burtram 30a6fdd26c Fix Connection tests break 2016-09-19 12:35:59 -07:00
Karl Burtram 03315475cb Misc. cleanup for PR 2016-09-19 12:32:56 -07:00
Karl Burtram 44914aa8b9 Move ParseBind out of locked block 2016-09-18 23:20:43 -07:00
Karl Burtram e74a392ca9 Improve autocomplete locking 2016-09-18 01:54:32 -07:00
Karl Burtram 108b7cc7e1 Merge pull request #53 from Microsoft/dev
Merge to master for dogfood release.
2016-09-15 10:27:36 -07:00
Karl Burtram 2fbe39b637 Make the log file name unique per session (#50)
* Make the log file name unique per session

* Try to use PID for unique ID
2016-09-14 12:30:16 -07:00
Karl Burtram 1671f762bf Autocomplete bug fixes (#43)
Fix-up the autocomplete support to better handle binding timeouts.
Also provide a default keyword suggestion list.
2016-09-13 15:22:57 -07:00
Karl Burtram 222f9364d8 Jenkins code coverage integration (#47) 2016-09-12 22:05:45 -07:00
Karl Burtram f94a1dea05 Merge pull request #46 from Microsoft/bug/hangingTest
Very small fix that addresses a hanging unit test
2016-09-12 21:20:17 -07:00
Karl Burtram baebaeb0c4 Merge pull request #34 from Microsoft/feature/testSmo
Enable SMO-based autocomplete
2016-09-02 12:02:31 -07:00
Karl Burtram 1b7e27fe76 Get SqlConnection from casting DbConnection 2016-09-02 11:41:41 -07:00
Karl Burtram 01039677c7 Fix .gitignore to exclude code coveage output files 2016-09-01 10:00:38 -07:00
Karl Burtram e5367416b8 Merge branch 'dev' into feature/testSmo 2016-09-01 09:59:20 -07:00
Karl Burtram e003bb3023 Fix nuget.config to pull from offical Nuget.org feed 2016-09-01 09:59:02 -07:00
Karl Burtram 547c050a1c Remove dead code 2016-09-01 00:26:38 -07:00
Karl Burtram 1332fd112e Clean-up the autocomplete SMO integration. 2016-09-01 00:23:39 -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
Karl Burtram 99ab6406d2 Integrate SMO .Net core into SQL Tools Service project 2016-08-26 10:15:23 -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
Karl Burtram 1c90add7e0 Merge pull request #24 from Microsoft/feature/updatesqlparserversion
Update Microsoft.SqlServer.SqlParser nuget package version
2016-08-18 15:51:44 -07:00
Karl Burtram a37d9babc9 Merge pull request #21 from Microsoft/feature/fixmacbuild
Update nuget.config to private nuget server
2016-08-17 22:35:11 -07:00
Karl Burtram 150e61a5a6 Update nuget.config to private nuget server 2016-08-17 22:31:04 -07:00
Karl Burtram ad008db4f5 Merge pull request #10 from Microsoft/dev_langservice
Fix project names and add internalsvisible for tests
2016-07-26 11:45:56 -07:00
Karl Burtram 53e26798fc Language Service diagnostics and autocomplete (#9)
* Merge master to dev (#4)

* Misc. clean-ups related to removing unneeded PowerShell Language Service code.
* Remove unneeded files and clean up remaining code.
* Enable file change tracking with Workspace and EditorSession.

* Setup standard src, test folder structure.  Add unit test project.

* Actually stage the deletes.  Update .gitignore

* Integrate SqlParser into the onchange diagnostics to provide error messages.

* Add tests for the language service diagnostics

* Initial implementation for autocomplete.

* Switch to using sys.tables for autocomplete
Move some code into a better class

* Delete unused csproj file.

* Add nuget.config to pickup SQL Parser nuget package
2016-07-25 13:04:14 -07:00
Karl Burtram ffc89231f4 Delete unused csproj file. 2016-07-24 13:38:44 -07:00
Karl Burtram 4cebc196ff Switch to using sys.tables for autocomplete
Move some code into a better class
2016-07-24 13:37:10 -07:00
Karl Burtram a7d634a014 Merge branch 'dev' into dev_langservice 2016-07-24 11:15:47 -07:00
Karl Burtram 4484c8d8cf Initial implementation for autocomplete. 2016-07-24 02:47:45 -07:00
Karl Burtram 3a55333598 Add tests for the language service diagnostics 2016-07-23 17:05:49 -07:00
Karl Burtram 7119db3bcd Integrate SqlParser into the onchange diagnostics to provide error messages. 2016-07-23 15:05:02 -07:00
Karl Burtram 01e8f9c3f5 Merge ServiceHost xUnit test project into dev. (#5)
* Setup standard src, test folder structure.  Add unit test project.

* Actually stage the deletes.  Update .gitignore
2016-07-18 17:24:07 -07:00
Karl Burtram 37d3cebc42 Mege dev to master (#6)
* Merge master to dev (#4)

* Misc. clean-ups related to removing unneeded PowerShell Language Service code.
* Remove unneeded files and clean up remaining code.
* Enable file change tracking with Workspace and EditorSession.

* Merge ServiceHost xUnit test project into dev. (#5)

* Setup standard src, test folder structure.  Add unit test project.

* Actually stage the deletes.  Update .gitignore
2016-07-17 12:01:56 -07:00
Karl Burtram ae54004e99 Actually stage the deletes. Update .gitignore 2016-07-17 11:44:03 -07:00
Karl Burtram 68999917b2 Setup standard src, test folder structure. Add unit test project. 2016-07-17 11:31:31 -07:00
Karl Burtram 569183134a Update README.md 2016-07-16 13:06:00 -07:00
Karl Burtram 921b2f5b04 Merge master to dev (#4)
* Misc. clean-ups related to removing unneeded PowerShell Language Service code.
* Remove unneeded files and clean up remaining code.
* Enable file change tracking with Workspace and EditorSession.
2016-07-16 12:06:21 -07:00
Karl Burtram 5530ed4367 Merge branch 'dev' 2016-07-16 11:52:47 -07:00
Karl Burtram 6f922603bd Merge conflicts resolved 2016-07-16 11:52:10 -07:00
Karl Burtram f2a5ebd605 Add configuration change notification event handler.
Clean up code a bit more to remove unneeded code.
Better integrate the diagnostic callback code.
2016-07-16 10:45:27 -07:00
Karl Burtram ee664949c5 Additional code cleanup following initial check-in.
Enable more ScriptFile code and hook in stub for error parsing.
2016-07-16 02:37:49 -07:00
Karl Burtram ea3d015961 Dev (#2)
* Misc. clean-ups related to removing unneeded PowerShell Language Service code.
* Remove unneeded files and clean up remaining code.
* Enable file change tracking with Workspace and EditorSession.
2016-07-16 01:20:56 -07:00
Karl Burtram 4ad506f6f2 Enable file change tracking with Workspace and EditorSession.
Also include misc. clean-ups related to removing unneeded PowerShell Language Service code.
2016-07-16 01:14:12 -07:00
Karl Burtram f2bb986f42 Remove unneeded files and clean up remaining code. 2016-07-15 23:22:27 -07:00
Karl Burtram c78292a680 Servicehost cleanup (#1)
Merge some code clean ups.  Find+Replace 'PowerShell' with 'SQL Tools'.
Enable logger in ServiceHost project.
2016-07-15 20:48:31 -07:00