Commit Graph
100 Commits
Author SHA1 Message Date
Karl Burtram 3b82033b12 Add VS Code build files (#625) 2018-06-04 12:36:38 -07:00
Karl Burtram 4f214f43e9 SQL Agent configuration for Operators, Alerts and Proxies (WIP) (#621)
* Initial non-refactored SQL Agent alert classes (WIP)

* Move agent classes into subdirectories

* Refactor the agent config code a bit more

* Add more implementation for handlers

* Add more code to the create alert handler

* Clean up agent alert class

* Clean up alert methods a bit

* Initial Operator contracts

* Additonal SQL Agent config changes

* More Proxy config cleanup

* Cleanup AgentProxy class

* Additional cleanups

* Run SRGen

* Add security service to create credential objects
2018-05-30 08:58:02 -07:00
Karl Burtram 34275c6a6d Fix Edit Data exceptions on spatial types (#619)
* Fix Edit Data exceptions on spatial types

* One more code convention cleanup.
2018-05-18 15:54:30 -07:00
Karl Burtram 5cfb4fa9dc Add between to keyword completion list (#618) 2018-05-15 12:06:11 -07:00
Karl Burtram 70724b9167 Update TravisCI build to use Net Core SDK 2.1.300 preview (#610) 2018-05-01 16:22:02 -07:00
Karl Burtram e73a8ddca6 Update projects for netcoreapp2.1 SDK (#603)
* Update projects for netcoreapp2.1 SDK

* Fix whitespace

* Fix issue in Nuget config file
2018-04-23 17:06:52 -07:00
Karl Burtram aacb435cba Add 'UPDATE' to default intellisense keywords list (#602) 2018-04-16 15:33:59 -07:00
Karl Burtram a0024cc522 Return null instead of empty Hover (#598) 2018-04-04 17:08:40 -07:00
Karl Burtram 376cc21f12 Initial SQL Agent merge for March release (#595)
* Initial SQL Agent WIP

* Fix test build break

* wip

* wip2

* additonal SQL Agent history parsing code

* Fix namespace sorting

* Hook up agent\jobs method

* Fix broken integration test build

* Added handler for job history request (#586)

* fixed agent service tests

* added job history handler

* code review refactoring

* Turn off another failing test

* Disable failing test

* Feature/agent1 adbist (#592)

* fixed agent service tests

* added job history handler

* code review refactoring

* refactored code

* small refactor

* code review changes

* Remove unused code

* Remove unused test file

* Feature/agent1 adbist (#593)

* fixed agent service tests

* added job history handler

* code review refactoring

* refactored code

* small refactor

* code review changes

* changed constant casing

* added handler for job actions

* Reenable disabled test

* cleaned up code
2018-03-23 13:25:37 -07:00
Karl Burtram 62a519cab5 Enable docker container support in VSO integration tests (#590)
* Add container scripts for VSO builds

* Remove relative path from kubectl.exe

* Use a variable and iex for kubectl path

* Use envvar for working dir path

* Try agent directory

* Update kubeconfig path

* Write connection settings json in build script

* Output logging

* remove _work prefix

* End end point instead of service name

* Disable failing tests

* Change service name prefix so it's different than SSMS containers
2018-03-15 12:48:39 -07:00
Karl Burtram d36efb578c Disabling test that has failed in the CI builds on-and-off the past few weeks (#588) 2018-03-13 10:11:14 -07:00
Karl Burtram f18c63940e Fix test build break (#579) 2018-02-01 19:00:06 -05:00
Karl Burtram 0121531bf6 Bugs fixes so XEvent profiler isn't broken (#577)
* Fix a few issues with profiler method handlers

* Filter out profiler polling events

* Add a unit test for profiler events

* Add method comment headers
2018-01-17 18:21:40 -08:00
Karl Burtram 7ccf78aec1 Add group id and db display name to OE connection queue key (#531) 2017-10-26 10:56:22 -07:00
Karl Burtram 4d04bff810 Revert "Scripting should await result of requestcontext.sendresult in case it errors" (#526)
* Revert "Add rowcount check so that no results error is sent for a query where no rows are returned (#525)"

This reverts commit 3392f93a2e.

* Revert "Add unknown status for DB Nodes whose status is not known (#524)"

This reverts commit 3d7b87eca2.

* Revert "Should await result of requestcontext.sendresult in case it errors (#520)"

This reverts commit caf196ea31.
2017-10-25 13:34:45 -07:00
Karl Burtram 328fb30db2 Switch back to Tasks in binding queue (#510) 2017-10-19 16:05:24 -07:00
Karl Burtram c2b2d16b6c Reduce OE timeout to 45 seconds (#509) 2017-10-19 15:42:37 -07:00
Karl Burtram 14e3b3a3f6 Increase OE timeout to 60 seconds (#492) 2017-10-12 16:56:20 -07:00
Karl Burtram 4945aead96 Increase parsing thread stack size to avoid stack overflow (#486)
* Increase parsing thread stack size to avoid stack overflow

* Fix extra space

* Remove extra spaces
2017-10-10 16:33:04 -07:00
Karl Burtram 11cb154d6d Add Database status to OE tree node (#485) 2017-10-10 16:32:54 -07:00
Karl Burtram 9091df8f62 Fix some issues with Script As Select (#474) 2017-10-03 14:39:29 -07:00
Karl Burtram 60aad9cf7e Allow connections on non-default port (#462)
* Allow custom port

* Update unit tests for port property
2017-09-21 08:26:13 -07:00
Karl Burtram 4fde186970 Turn off connection pooling to avoid locking (#460)
-- Ignoring the failed profiler test in the CI build since Matt is disabling in his pending PR.

* Turn off connection pool for internal SqlClient connections to avoid locking

* Add additional comments
2017-09-19 10:03:55 -07:00
Karl Burtram 84ea045572 XEvent Profiler initial event handlers (#456)
* Bump SMO to 140.2.5 to pick-up private XEvent binaries

* Pick up SMO binaries from the build lab

* Add ProfilerService class placeholder

* Update SMO nuget package to include DB Scoped XEvents

* Stage changes

* Stage changes

* Update SMO to use RTM dependencies and remove separate SqlScript package

* Stage changes

* Iterate on profiler service

* Fix post-merge break in localization

* More refactoring

* Continue iterating on profiler

* Add test profiler listener

* Address a couple of the code review feedback

* Fix AppVeyor build break

* Use self-cleaning test file
2017-09-12 14:08:50 -07:00
Karl Burtram 4e9ff42dfc Update to SMO built with .Net 2.0 RTM SDK (#437)
* Pick up .Net 2 RTM SMO dependencies

* Add missing NUPKG files

* Remove preview framework nuget packages
2017-08-16 16:08:03 -07:00
Karl Burtram d6c6700a3a Change Integrated Auth to Windows Authentication (#432) 2017-08-14 14:05:43 -07:00
Karl Burtram 354d702d6f Update SMO to pickup latest fixes (#419) 2017-07-19 13:29:42 -07:00
Karl Burtram 18977a89dc Allow empty query string text (#415)
* Allow empty query string text

* Remove test that is no longer valid

* Remove test that is no longer valid
2017-07-15 10:14:32 -07:00
Karl Burtram cfa78bbc3b Execute SQL statement at cursor location (#412)
* Stage changes to other machine

* Parse sql statement from script document

* Fix a few typos and minor changes

* Fix bug
2017-07-13 20:33:05 -07:00
Karl Burtram 005fc9e4df Add try/catch blocks for request handlers (#408)
* Add try/catch for request handlers

* Fix test break
2017-07-13 07:18:34 -07:00
Karl Burtram dd8f600bd4 Fix srgen build script (#404) 2017-07-10 16:15:05 -07:00
Karl Burtram 156ea5de7b Remove PackageTargetFallback to fix restore break (#402) 2017-07-10 15:11:16 -07:00
Karl Burtram bcd20af05e Turn off tests failing in code coverage runs (#401) 2017-07-05 16:56:36 -07:00
Karl Burtram 5dcc82c3d6 Upgrade to net core 2.0 (#356)
* Initial .net core 2.0 conversion

* Convert a few more projects to .net core 2.0

* Convert a few more projects to .net core 2.0

* Fix build.cmd errors

* Add mising nuget package

* Remove dead code

* Add checked in references to workaround nuget package issues

* Update SLN file to refer to correct csproj files

* Rename applications to workaround .net core tooling bug

* Update nuget package with SQL Parser changes

* Add PreserveCompliationContext to avoid MEF bug

* Update smo version to pickup .net core 2 changes

* Pickup latest SMO changes to fix merge break

* Actually pickup correct SMO binaries

* Add support for SLES 12.2

* Fix break running archiving on Linux

* Revert "Add support for SLES 12.2"

This reverts commit 95cdb6d0e35a425be5c0081345d214079cbdc3db.

* Update to latest SMO build

* Install .Net Core 2 during install phase

* Move .Net Core install

* Try to reference dotnet.exe directly

* Fix code coverage script for CSPROJ instead of project.json

* Turn off test that is unreliable in AppVeyor builds.

* Fix appveyor.yml line feed.

* Turn off another flaky test failing in AppVeyor
2017-07-05 16:18:14 -07:00
Karl Burtram 7ce7ec22de Fix DMP message name to use correct casing (#386) 2017-06-16 15:38:47 -07:00
Karl Burtram 79350e10f9 Couple workarounds for OE refresh issues on RHEL (#365) 2017-05-29 16:36:55 -07:00
Karl Burtram 8e7fac26e5 Fix nullref in backup from not providing SFC XML innerDoc (#364) 2017-05-27 13:17:40 -07:00
Karl Burtram 3334b76ab3 Disable tests failing in code coverage runs (#351) 2017-05-15 19:12:02 -07:00
Karl Burtram dc3cd9ea59 Create DB work in-progress (#350)
* Stage changes to other machine

* Stage changes

* Update SMO to fix SMO missing Login bug on macOS
2017-05-15 18:48:04 -07:00
Karl Burtram b26b7674b3 Add EXCEPT to default keyword completion list (#349) 2017-05-12 22:54:55 -07:00
Karl Burtram ed978fe5b7 Fix create db resource strings (#348)
* Hook up SMO call into create db handler

* Clean-up resource strings

* Few additional code clean-ups
2017-05-12 07:53:45 -07:00
Karl Burtram 848cfadf9a Delete more unneeded sql manager UI code (#345) 2017-05-11 17:54:52 -07:00
Karl Burtram c131d29a5e Remove unused code and fix test break (#344) 2017-05-11 17:14:57 -07:00
Karl Burtram c9e2963ca0 Additional create db options (#342)
* Refactor unsafe block

* Stage changes

* Add additional database prototype metadata

* Fix nullref bug

* Read database info properties
2017-05-11 09:44:57 -07:00
Karl Burtram 2e9843cec1 Merge create db work in progress (#341)
* Port over initial block of create db implementation

* Test case placeholder

* In-progress work

* Stage changes to other machine

* Add database prototype strings

* Stage changes to other machine

* Stage changes

* Hook the database info into capabilities discovery

* Stage changes

* Update SMO to latest from ssms_main

* Various clean-ups

* Update localization files
2017-05-09 17:56:32 -07:00
Karl Burtram 1a16101381 Initial admin and DR services. (#329)
* Add initial services for admin, tasks, and DR

* Fix up some of the contract interfaces

* Make fields public to allow Json.Net to work

* Fix a couple issues in backup contracts
2017-04-26 10:29:15 -07:00
Karl Burtram 06c106b18a Show systables for master db (#309) 2017-04-06 19:25:23 +00:00
Karl Burtram a1aa3f8b4c Add table and view metadata messges (#296)
* Add SMO table property lookup event

* Fix a couple bugs in column metadata

* Add GetView metadata message
2017-03-28 16:30:46 +00:00
Karl Burtram f8afee2e94 Make database a non-required option (#289) 2017-03-22 17:02:01 -07:00
Karl Burtram addad29b7c Add Scripter class and use it in the ScriptingService (#286)
* Initial scripting commit

* Fix the script CREATE integration test

* Use language service binding queue for scripting

* Update scripting service to have methods for each operation

* Add scripter class

* Fix build break.

* Fix a few bugs

* Use scripter class instead of PeekDefinition class.

* Fix scripting test break

* Fix header incorrectly saying file is generated.

* Add localization tests to address a large block of code not covered by automation.

* Moving system usings to top of using list
2017-03-21 13:18:52 -07:00
Karl Burtram 1150a19eae Update cake to use JSON.Net 9.0.1 to fix build break (#287) 2017-03-21 13:01:36 -07:00
Karl Burtram 7ba2011a1e Initial metadata and scripting services (#280)
* Initial metadata service and scripting service files

* Simple metadata lookup with SMO objects

* Add metadata type class

* Remove SMO from metadata service.

* Cleanup metadata service SQL

* Initial MetadataService test

* Add scripting commands

* Add metadata test case

* Remove sleep used for testing

* Use random table name in metadata test

* Add scripting tests
2017-03-14 22:35:17 -07:00
Karl Burtram 8f3e83b519 Add nvarchar to IntelliSense keyword list (#272) 2017-03-09 14:33:43 -08:00
Karl Burtram 41a2564921 Add GroupName property to ConnectionOptions (#273) 2017-03-08 18:20:43 -08:00
Karl Burtram 666ee98582 Add description field to ConnectionOption object (#271) 2017-03-08 14:09:12 -08:00
Karl Burtram 17d2d825eb Provide connection options to host process (#267)
* Stage changes to other machine

* Add connection options in init message

* Fix option type
2017-03-07 11:00:52 -08:00
Karl Burtram f00136cffb Fix namespaces for code moved to separate class libraries (#263)
* Create ServiceHost a service-specific class

* Renaming hosting namespace

* Rename credentials namespace

* Fix namespaces
2017-03-02 14:41:06 -08:00
Karl Burtram f9abe5f0bd Remove hosting project from build script (#259) 2017-03-02 00:40:49 -08:00
Karl Burtram 213de5cc12 Don't crash when refreshing IntelliSense cache disconnected (#260)
* Prevent null ref exception in refresh cache handler

* Send refresh complete event when disconnected

* Wrap handler in global try/catch
2017-02-28 23:46:02 -08:00
Karl Burtram 0d99b36cc1 Don't crash when refreshing IntelliSense cache disconnected (#260)
* Prevent null ref exception in refresh cache handler

* Send refresh complete event when disconnected

* Wrap handler in global try/catch
2017-02-28 16:15:11 -08:00
Karl Burtram 3516a05f80 Fix MEF loader issues with framework assemblies (#253)
This is fixing a crashing bug in previous check-in so I'm pushing in.  Please leave comments on the commit and email if there is feedback.

* Fix MEF loader issues with framework assemblies

* Fix broken test from changed behavior

* Fix braces to C# convention
2017-02-23 19:18:43 -08:00
Karl Burtram fdca9fa220 Handle open\close document events with git URI prefix (#254) 2017-02-23 18:16:58 -08:00
Karl Burtram 206cde9a3e Handle open\close document events with git URI prefix (#254) 2017-02-23 18:10:57 -08:00
Karl Burtram 0af7bef66d Create MS.SqlTools.Credentials project (#249)
* Initial credential service files

* Clean-up hostloader

* Update build scripts to build credentials archive

* Move hosting files to new assembly

* Add credentials files to MS.SqlTools.Credentials

* Remove duplicate files

* Update namespace in program.cs

* Fix test build breaks

* Update extensions visibility.

* Remove unused resource strings

* Add xproj files to SLN for appveyor builds

* Fix appveyor build break in test project

* Fix extensibility tests

* Fix various typos in latest iteration

* Add settings for Integration build

* Fix codecoverage.bat to use full pdb for new projects

* Fix bug when packing in folder with native images

* Fix typos in xproj

* Reset XLF to fix build.cmd
2017-02-23 16:09:58 -08:00
Karl Burtram 5d0c187684 Clear and rebuild IntelliSense cache (#238)
* Stage changes to other machine

* IntelliSense cache rebuild command

* Move to other machine

* Add a test for overwriting binding queue.

* Move event handler into lanaguageservice.cs
2017-02-16 12:23:26 -08:00
Karl Burtram a77fb77a85 Update building_sqltoolsservice.md (#212) 2017-01-09 11:01:35 -08:00
Karl Burtram 5b41538d22 Turning off a broken test until a fix can be merged (#207) 2017-01-03 13:28:48 -08:00
Karl Burtram 93a52e3e50 Add a couple more images to docs (#206)
* Add service loader image to docs.

* Add connection service image.

* Fix image width
2017-01-03 12:42:44 -08:00
Karl Burtram 323374d123 More documentation updates. (#205)
* Add additional documentation.

* More docs updates.

* Update docs.  Add building info.
2016-12-22 18:44:45 -08:00
Karl Burtram d5f19031f2 More documentation updates (#203)
* Update docs 1

* MOre oc updates

* Another set of doc updates

* Few more doc cleanups
2016-12-22 01:27:15 -08:00
Karl Burtram adc9672fa3 More documentation updates (#202)
* Add some content to the design page.

* More design doc updates

* Update user guide docs
2016-12-21 16:23:14 -08:00
Karl Burtram 4184eae8a1 Update docs (#200)
This is a documentation-only update so automerging.  Please review the commit if there are any follow-ups requested.

* Update .gitignore for docfx genertated files

* Update documenation (part 1)

* Update docs and add some samples

* More doc updates
2016-12-20 15:52:46 -08:00
Karl Burtram d10c9c4cae Link to SQL Tools Service API documentation from readme.md 2016-12-16 12:32:24 -08:00
Karl Burtram 4964a52be5 Initial docfx documentation placeholder files (#194)
This is documentation changes only so I'm just going to merge directly.  The PR is for FYI purposes.   Please leave feedback on the commit if you see anything I should follow-up on with this documentation.
2016-12-16 12:11:27 -08:00
Karl Burtram dee08e7494 Remove API docs 2016-12-15 22:38:24 -08:00
Karl Burtram f265bb171e Clear out theme setting 2016-12-15 17:17:26 -08:00
Karl Burtram 8379403a49 Set theme jekyll-theme-tactile 2016-12-15 17:15:54 -08:00
Karl Burtram 005e2957c2 Set theme jekyll-theme-minimal 2016-12-15 17:14:08 -08:00
Karl Burtram 99b233654e Set theme jekyll-theme-slate 2016-12-15 17:13:24 -08:00
Karl Burtram aec652c068 Set theme jekyll-theme-cayman 2016-12-15 17:13:09 -08:00
Karl Burtram edb3c4aa1f Add docs template 2016-12-15 17:06:28 -08:00
Karl Burtram 2346ffff38 Update manifest.json 2016-12-15 16:47:43 -08:00
Karl Burtram b9f1c2b60e Update manifest.json 2016-12-15 16:45:52 -08:00
Karl Burtram e3c080b2a0 Add initial doxfx content 2016-12-15 16:37:50 -08:00
Karl Burtram 5a15a2cdf1 Initial commit for GitHub IO pages 2016-12-15 16:11:35 -08:00
Karl Burtram 0d101cf598 Add text utils unit tests and parameter comments. (#192)
* Add unit tests for PositionOfCursor

* Add unit tests for PositionOfCursor
2016-12-15 14:22:39 -08:00
Karl Burtram 6f15ac0b8f Don't call SR generated constructors (#189) 2016-12-14 14:35:45 -08:00
Karl Burtram dd41e0545a Add tests to improve code coverage (#187)
* DbColumn and ReliableConnection tests

* More retry connection tests

* More tests

* Fix broken peek definition integration tests

* Fix test bug

* Add a couple batch tests

* Add some more tests

* More tests for code coverage.

* Validation and Diagnostic tests

* A few more tests

* A few mote test changes.

* Update file path tests to run on Windows only
2016-12-14 13:49:42 -08:00
Karl Burtram b99b01cae0 Peek definition for Azure DB objects (#179)
* Working...

* Call refresh on SmoObject to switch status from creating to existing.

* Add logging to exeception handlers
2016-12-13 09:27:07 -08:00
Karl Burtram df9e207e5f Bump SMO to 140.1.12 to pickup Azure DB fixes (#183) 2016-12-12 22:55:26 -08:00
Karl Burtram 5c2e6b74cf Catch exceptions raised sending telemetry events (#182) 2016-12-12 15:50:08 -08:00
Karl Burtram 84eb164d87 Remove enabling MARS again. This merged down from master (#162) 2016-11-28 13:00:41 -08:00
Karl Burtram e5d577dc81 Fix post merge break 2016-11-28 11:49:53 -08:00
Karl Burtram 39b79ae05b Merge branch 'master' into dev 2016-11-28 09:58:32 -08:00
Karl Burtram a54d081363 Avoid null reference exceptions in diagnostics parsing (#149)
* Avoid a couple possible null reference exceptions

* Switch syntax around a little bit.
2016-11-17 15:06:57 -08:00
Karl Burtram f2b8a16d29 Update README.md 2016-11-15 13:17:49 -08:00
Karl Burtram 6501cb3b1b Add license.txt file 2016-11-14 15:45:25 -08:00
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