Граф коммитов

270 Коммитов

Автор SHA1 Сообщение Дата
Matt Irvine 8e9481cf07
Update configs for 1.3.1 release (#1084) 2018-04-09 16:26:54 -07:00
Matt Irvine d3ba5c2b1f
Update release notes and config for release (#1043)
* Update release notes and config for release
* Update production SQL Tools Service release
2017-12-08 15:06:23 -08:00
Matt Irvine 4d40cb30ea
Version bump to 1.2.1 (#1020) 2017-11-07 17:17:18 -08:00
Matt Irvine 2e745d3d24
Add support for resource level connection configs (#1018) 2017-11-07 10:56:24 -08:00
Matt Irvine b9ea17c2eb
Change many configs to resource scope (#1017) 2017-11-06 09:59:41 -08:00
Matt Irvine 8521c0f8ea
Display save dialog for serialization - part of multi-folder workspace support (#1015)
Stop using `workspace.rootPath` in order to support multi-folder workspaces
2017-11-02 15:44:22 -07:00
Kevin Cunnane b67d3e1d93 vBump to 1.2 with release notes and candidate SqlToolsService build. (#994)
* vBump to 1.2 with release notes and candidate SqlToolsService build.
- Download center build version will be updated in a separate PR but this one can be used for testing
2017-09-20 21:11:23 -07:00
Kevin Cunnane 047615614c Add language flavor (#988)
Fixes #978: adds a new status indicator for Language Flavor so that users can choose MSSQL or None for provider type. If None then MSSQL intellisense and syntax checking are skipped.
2017-09-19 16:22:10 -07:00
Leila Lali 63fdf92351 Using the localized texts in UI (#979)
* Making the constants used in views and also the commands and settings localizable
2017-09-07 10:45:49 -07:00
Karl Burtram d786cbe95c Add Azure category to package.json (#974) 2017-08-23 14:14:59 -07:00
Kevin Cunnane 5d6d9488e4 Fix #939 Allow messages to display run time for each batch when there are multiple batches (#943)
* Fix  #939 Allow messages to display run time for each batch when there are multiple batches
- Added this feature behind a config flag
- Some time parsing fixes to support this
2017-07-17 11:36:49 -07:00
Kevin Cunnane 06ae7fda52 Fix #933 support Mac versions lower than Sierra (#941)
* Fix #933 support Mac versions lower than Sierra
- Added version check to detect macOS versions lower than Sierra (10.12.0). If this is discovered, use the v1.0 version of the tools service and disable new features
- Updated downloader to fall back to v1 version and added tests to verify this
- Added handling in new commands (use of Integrated Auth and execute current statement) to return an error to the user.
2017-07-14 18:30:15 -07:00
Karl Burtram 8acbb7fdc7 Execute SQL statement at cursor location (#934)
* Execute current statement at cursor location

* Refactor to add explicti runStatement methods

* Fix a couple bugs

* Bump SQL Tools Service to latest build

* Add null check to fix test breaks

* Fix another test break
2017-07-13 22:43:34 -07:00
Kevin Cunnane 000773074f Fix #807 Can't create SQL Profile (#931)
* Fix #807 Can't create SQL Profile
- Use the fault-tolerant jsonc-parser

* Removed invalid test expecting exception on JSON parse
- Created tracking issue to cover need to handle truly corrupted mssql.connections section
2017-07-13 14:41:36 -07:00
Kevin Cunnane 9c0a85ec61 Update SqlToolsService to netcore2.0 and fix test failures (#914)
* Upgrade and fix most tests
- Upgrade to .Net Core 2.0 in SqlToolsService
- Upgraded TypeMoq to fix multiple tests

* Fix tests broken due to TypeMoq update
- Loose vs Strict mode behavior has changed. Given we initially added strict mode to catch regressions and these are now very stable parts of the code, it seems fine to use Loose mocking and allow the passthroughs to be used.
- Other change was due to assert.equal changing. Before it would return true on deep object equality but it no longer seems to work. Added clear property-level validation in some cases to fix this.

* Fixed issue running test from cmdline locally

* Fix for AppVeyor test fail issue
- This is caused by https://github.com/Microsoft/vscode-extension-vscode/issues/64 and will be fixed in the 1.14 release of VSCode

* Attempt to fix travis build without using deprecated group value
- Investigating similar issues causing failure to find apt-get packages led to https://github.com/travis-ci/travis-ci/issues/5252. The solution may be to run apt-get update first.
2017-07-10 16:04:34 -07:00
Kevin Cunnane 789c703800 Stop using localized constants in debug logged strings (#869)
* Stop using localized constants in debug logged strings
- Fixes #867
- There is no benefit in using localized constants when logging to the debug console. It's not user visible, it is only useful when debugging the extension during development

* Fix build break and update xlf file
- Fixed build break due to uglify-js changing multiple behaviors in its v3 Harmony release. Binding to v2 instead
- Missed updating the xlf file that generates the localizedConstants.ts file.
2017-05-10 13:42:46 -07:00
Matt Irvine f06d4e749a Support connecting with connection strings (#861)
- If a profile contains a connection string, it will be directly used to connect
- Users can add profiles with connection strings by giving the string at the server prompt
- Connecting with a connection string overrides any other parameters that are set
2017-05-03 17:48:10 -07:00
Henry Phan 352aa1bb52 Changes to vscode-mssql extension allowing empty passwords for SqlLogin (#852)
* Changes to vscode-mssql extension allowing empty passwords for SqlLogin

* Added in testing and cleaned up code

* Cleanup and ConnectionProfile type check
2017-05-02 10:15:47 -07:00
Kevin Cunnane 1fdf1ee7fb Bump package version to prepare for GA release (#840)
* VBump for GA Release
- Fixes #828
- Fixes #829

Updated package version, added release notes and changelog data. Note: did not update SqlToolsService as we're working to get a 1.0 build with all bits uploaded to GitHub. That will be done in a separate PR.
2017-04-27 05:16:38 -07:00
Matt Irvine d9885736f8 Fix an issue where intelliSense settings were not exposed 2017-04-25 15:18:57 -07:00
Kevin Cunnane 8d1b1ae9ab Fix #782 UI for Export as Excel (#784)
* Fix #782 UI for Export as Excel
- Added support for the saveAsExcel operation that has been added to the SqlToolsService
- Updated tests to cover new scenario
- Open Excel files in default program on the machine since VSCode won't / can't display this
- Add Excel icons
2017-03-20 19:27:35 -07:00
Aditya Bist 3a5ca9a198 change query to uppercase (#771) 2017-03-09 15:24:51 -08:00
Leila Lali 05be480e76 using the new VS code API to create untitled document for SQL language (#766)
* using the new VS code API to create untitled document with SQL language
2017-03-08 16:27:44 -08:00
Kevin Cunnane 795b3449e6 Merge from master (#763)
* SqlToolsService 0.3.0 release target

* Copy should not add new line at end (#717)

- Fixes #715. Should not copy & paste with newline at the end since this overwrites cells in Excel

* Telemetry fix: promise.all not receiving promises (#723)

- Promise.all requires either an array of PromiseLike objects or objects of type T. A change when upgrading to Typescript 2.1.5 caused us to pass in the functions, rather than the promises returned by those functions as previously happened. This meant that Promises.all returned immediately as it thought it was returning an array of functions.
- Fix is to explicitly define the promise return types, and go back to calling the methods so that we get promises back to wait on.

* SqlToolsService update to 0.3.0.1

* Target Download Center for 0.3.0 release

* Fixing regression where null cells are copied as blank strings (#736)

- Fixes #734, a regression where null cells are copied as blank strings
- To fix checksum issue on installing chrome for unit testing, now ignoring checksums

* SqlToolsService 0.3.0.2 Update

* Fix CI test runs broken by gulp-remote-src (#743)

- gulp-remote-src v0.4.2 breaks the vscode test runner due to https://github.com/ddliu/gulp-remote-src/issues/11. This fixes the issue for us by explicitly binding to 0.4.1 which still works

* Fix #711 MSSQL Extension will not run (#744)

- Fixes #711 MSSQL Extension will not run
- Update GetWindowsArchitecture to use new, simpler and more reliable method taken from the Omnisharp-VSCode implementation
- Fixed issues where we were not returning promises as expected, and where we were accessing the _connectionManager even though it was not defined yet, since the extension was still initializing. This will help with overall reliability
- Added test to verify handling of null ConnectionManager

* SqlToolsService 0.3.0.4

* SqlToolsService 0.3.0.5

* Fix changelog open broken by VSCode 1.10.0 (#750)

- Opening a local file in the HTML Preview pan is broken in 1.10. It looks like this is a bug in VSCode that isn't in the Insiders build
- Moving to opening the Master changelog.md in the users default browser instead. This is consistent with our GettingStarted action.

* Fix dates in changelog

* SqlToolsService 0.3.0-alpha.14
2017-03-06 17:50:47 -08:00
Kevin Cunnane d78e18f6ce Update VSCode NPM to 1.0.5 (#757)
* Update VSCode NPM to 1.0.5
- Fixes issue where we needed a temporary fork to run CI tests. Issue is resovled in latest version.

* manually placing vscode typings

* cleaning up semantic typing errors
2017-03-06 16:08:13 -08:00
Raymond Martin 6f109411e2 Fix: Temporary dependency on my fork with vscode module fix (#755)
* temporary dependency on my fork with vscode module fix

* package name update

* name update

* trying yet another package name
2017-03-01 20:22:44 -08:00
Kevin Cunnane 7cf26f4454 Fix release notes and 1 config option (#719)
- Config option was not setup to support discovery of the "saveAsCsv.IncludeHeaders" option - it only gave an empty object instead of the true/false option that's standard for other settings. Updated & verified that the option is still correctly passed through to the SqlToolsService
- Updated release notes, readme & changelog to reflect new release
- Updated Readme to include all config options
2017-02-23 17:33:05 -08:00
Leila Lali fb4ed7b145 renamed the 'Clear Intellisense Cache' command to 'Refresh Intellisense' (#722) 2017-02-23 13:15:58 -08:00
Benjamin Russell 7da07b414d Adding new setting for how to display bit columns, updating tools service version (#714) 2017-02-22 14:58:47 -08:00
Karl Burtram 79a75ef8ff Clear and rebuild IntelliSense cache (#696)
* Stage changes to other machine

* IntelliSense cache rebuild command
2017-02-16 12:22:47 -08:00
Kevin Cunnane 11dc8115a4 Fix VSIX package load due to missing vscode-nls (#702)
- vscode-nls needed to be a regular dependency, but was a dev dependency
- installed and updated shrinkwrap
2017-02-15 17:15:24 -08:00
Kevin Cunnane 3da9d85c82 Update package version to 0.3.0 (#700)
- Includes updated release notes
2017-02-15 15:29:03 -08:00
Kevin Cunnane ea2801123f TSql Formatter support (#698)
* Add formatter settings to package.json
* SqlToolsService version updated to 0.3.0-alpha.2
2017-02-15 14:03:31 -08:00
Raymond Martin bab31c23f9 Task: localization for the extension (#675)
* i18n examples and gulp file mods

* cleaning up changes and adding localize calls

* removing unneeded files

* adding new lines to constants i18n files

* fixing failing tests

* cleaned up gulp file

* added applyLocalization property wtih false default

* setup constants folder and changed all imports

* automation scripts started

* adding xlf format and conversion to json logic

* added locale cli to send to sqltoolsservice

* adding option config

* adding newlines to xliff files

* adding more formatting related newlines

* adding full xlif enu file

* gulp script update

* uncommenting localize calls

* xlf format update

* adding tests and test constant

* spelling correction

* build automation scripts

* escaping qoute characters

* depending on fork and ignoring problem logs

* linking localized sqltoolsservice build
2017-02-09 16:52:31 -08:00
Kevin Cunnane 13cf99e2da Merge master to Dev (#673)
* Switch publisher in telemetry test to ms-mssql (#556)

* Switch publisher in telemetry test to ms-mssql

* Update a couple more hard-coded publisher references.

* Fix Results Panel not Refreshing Automatically (#670)

- Fixes #669
- Ensures that TextDocumentContentProvider.provideTextDocumentContent always provides an updated string when being refreshed. In VSCode 1.9.0, it's vital to do this as there is a diff on the provided content and the document is only refreshed if this is different
- Updated release version
2017-02-03 11:00:51 -08:00
Raymond Martin 4ca4a1a26a Upgrading TypeScript to 2.1.5 (#639)
* fixes for typescript 2.5.1 and gulp-typescript 3.1.4

* simplifying changes
2017-01-20 14:38:26 -08:00
Raymond Martin 597fe49506 Fix new result pane column behavior (#582)
* adding wrapper functions

* added configuration option for splitPaneSelection

* changed to switch statement

* moved helper functions into sqloutputcontentprovider

* adding test and uncommenting out some of the sqloutputtests

* small test fix

* cleaning up output test file

* updated to enum

* addressing issues

* fixed test verbage
2017-01-06 18:54:53 -06:00
Leila Lali 99e79dd027 added new command to create new SQL query document (#569)
* added new command to create new SQL query document
2017-01-04 12:17:47 -08:00
Karl Burtram 6733fb2b3c Add back Getting Started Guide command (#555) 2016-12-19 15:18:07 -08:00
Karl Burtram a0c20d3acd Update publisher back to ms-mssql. (#553) 2016-12-19 11:30:05 -08:00
Raymond Martin 76d85cd57f Fix multi-line display formatting and copy formatting (#527)
* added new settings to package and as a constant

* newlines removed from copied text

* changed result formating to replace newlines with tabs

* fixed comment issue

* pushed back the display newline removal to app.component

* changed newline comment

* put the newline replace in the textformatter
2016-12-15 13:51:09 -08:00
Karl Burtram d54d21db5e Revert the default font size to 13px to match Preview 1 release (#529) 2016-12-14 17:09:26 -08:00
Kevin Cunnane ed3d8428c6 Bump extension version to 0.2.0 (#488) 2016-12-08 20:29:38 -08:00
Anthony Dresser 0ceafb8bd0 Travis CI, Coveralls, AppVeyor (#463) 2016-12-05 18:13:15 -08:00
Anthony Dresser 7d5a1e7d70 update engine; removed npm shrinkwrap; update tests (#455)
* update engine; removed npm shrinkwrap; update tests

* regenerated shrinkwrap to hopefully fix problems

* update dependecy

* updated dependency
2016-12-05 09:38:48 -08:00
Leila Lali 0d63812208 Updating status in the output when installing the service (#436)
* showing download progress in the output window

* added note when installing the service that the commands are not available

* added icon to the status bar when downloading and isntalling
2016-12-02 11:44:45 -08:00
Anthony Dresser 252e1631c2 Default font (#430)
* added default font

* updated default font

* added default font size for results grid

* removed literal string
2016-12-01 11:48:33 -08:00
Mitchell Sternke 4c22125d58 Extension no longer activates on all startup contexts 2016-11-22 18:00:56 -08:00
Kevin Cunnane f1dcce68d4 Copy results supports copy with headers (#386)
Fixes #368.
- Added a config option to support copy with column name header. Defaults to false to match SSMS behavior
- Support this during the copy event
- Context menu support for both Copy and Copy with Headers
- Unit tests will be added once the main unit test PR for the ResultsView is merged, since this has the necessary hooks and files.
- includes tests to cover all inputs to copyResults
2016-11-22 13:57:09 -08:00
Kevin Cunnane 8dfa9229eb Remove USE Database shortcut (#373)
- Fixes #335.
- This shortcut conflicted with the View Output command which we want users to have so they can diagnose connection errors
2016-11-18 13:59:46 -08:00
Anthony Dresser 2e24ff2c17 Front end testing (#336)
* adding tests

* karma setup

* got tests working

* mocking working

* set up coverage

* cleaned up commit

* moved tasks to appropriate places

* added task for jenkins

* change jenkins to cproc

* testing jenkins build

* testing builds

* combined testing

* finished build error

* fixed testing reporting
2016-11-17 10:35:52 -08:00
Eric Kang f06683c2e7 Defect/category (#339)
* fixed categories in package.json

* matched version number

* corrected description
2016-11-11 18:18:53 -08:00
Anthony Dresser 8ff3899539 Progressive batch rendering (#270)
* setup initial websocket communication

* websockets integrated into rendering

* added completion event

* removed dead code; fixed race condition in websockets; fix bug in sending data to a closed ws

* v bump

* cleaned up code
2016-11-10 15:08:39 -08:00
Mitchell Sternke 37c2d1a044 Feature/open ssl help (#307)
* Initial commit of openssl help button

* Fixed compile errors

* Addressing feedback
2016-11-08 15:55:55 -08:00
Anthony Dresser fcd2ba4abc Defect/message close (#293)
* changed condition on hiding message pane

* added resize on message drag; changed default message view to open; changed wording on event

* changed event name
2016-11-08 11:30:40 -08:00
Eric Kang 4f5c55cf73 readme.md 3rdpartynotice.txt changelog.md (#271)
* readme.md 3rdpartynotice changelog

* minor update

* updated MIT license content

* fixed thirdpartynotices.txt issue
2016-11-07 13:15:55 -08:00
Kevin Cunnane 152fccff2a Support code coverage for our VSCode extension. (#273)
- Included a new launch config that supports running with code coverage.
- Coverage is stored in a coverage folder as both LCOV file and HTML report (in sub folder)
- Added new scripts in our build machine to run with code coverage. Will enable a run that uses code coverage once this is merged
- To view code coverage while developing, install the LCOV VSCode extension, enable it and then hit F1 -> LCOV Menu -> Enable Decorations. This will highlight covered / missed lines in green and red.

Note: The HTMLContent codebase is not currently covered. With recent changes to minify this it breaks the remapping tool we use.

Detailed notes
- Coverage uses a config file to load settings. This is copied at the start of each task
- If tests fail, the process exit code will be 1. We should still write out code coverage in these cases as this is a useful detail even on runs with some test failures.

- On Windows, the extension is loaded (pulling in all source files via require) before the test runner is configured. Since instrumentation happens by hooking the require call, this meant that instrumentation never happened on Windows. To resolve this, we invalidate the Module cache for our source files so they are reloaded the next time anything requires them. At this point they are instrumented as expected. There is a minor risk to this if we had some global state or deeper integration test, but this doesn't impact any existing unit tests and is needed to unblock code coverage

* Skip coverage of HTMLContent due to crash
- With the latest HTMLContent changes to minify & uglify the code, the remap-istanbul component responsible for js -> ts remapping crashes trying to parse the sourceMap entries in the file. This is due to lack of whitespace between code which it expects - basically, it's not set up to run against such compact code
- Disabling coverage of this part of the code until this issue is resolved
2016-11-07 12:56:10 -08:00
Sharon Ravindran 085149fa63 Add save as config to package.json (#262)
* Add save as config to package.json

* Modify description
2016-11-07 10:27:47 -08:00
Eric Kang 89401d36a5 final UI strings - UE reviewed (#249)
* final UI strings - UE reviewed

* fix string bug

* updated strings based on PR feedback

* fixed confirmation message
2016-11-03 17:35:38 -07:00
Anthony Dresser e636981736 added css min; minified the source code more (#233)
* added css min; minified the source code more

* added embedded svgs

* added comment comments
2016-11-01 14:35:45 -07:00
Anthony Dresser 7760ed16db Feature/html config (#231)
* added select all event to context menu; added events for save as and select all

* added shortcuts to context menu when present

* fixed build errors

* fixed select all

* added refresh (#195)

* fixed null values in grid (#218)

* added config
2016-10-31 16:28:34 -07:00
Anthony Dresser 59e4ed70c1 Feature/html bundle (#193)
* added bundling

* added minify

* removed unnecessary npm packages

* removes unecessary file
2016-10-26 15:01:40 -07:00
Leila Lali 2c614b3e05 changing the setting namespace to mssql (#222)
* changed the setting namespace to mssql

* Bump service to 0.0.32
2016-10-26 11:54:26 -07:00
Karl Burtram bcef8d0650 Bump extension to version 0.1.1 (#192)
vbump only...
2016-10-24 22:47:57 +00:00
Karl Burtram 6fec20e6ae Merge branch 'dev' of https://github.com/Microsoft/vscode-mssql into dev 2016-10-24 14:48:52 -07:00
Eric Kang 0f62c21c4f Feature/branding (#189)
* fix shortcut for toggleMessagePane

* branding change
2016-10-24 14:42:06 -07:00
Karl Burtram 5c4de34039 Merge dogfood build #2 release branch into dev. 2016-10-24 14:32:10 -07:00
Karl Burtram e29635fb56 Bump package to 0.0.11 (#188) 2016-10-21 16:27:49 -07:00
Eric Kang 8c1c010f11 Feature/ui string review (#176)
* UI strings fit and finish (pre-signoff)

* Fixed UI string for Cancel Executing Query command

* Updated cancel query UI strings

* Authentication type name modification from SQL Authentication to SQL Login

* string change for database promot CR profile

* string review update

* Save file UI string update

* Fix typo
2016-10-19 10:25:30 -07:00
Leila Lali 87ea272687 Feature/editormenu (#169)
* added Execute query menu item to editor context menu
2016-10-18 14:06:01 -07:00
Benjamin Russell b16c0539c3 Support for query cancellation (#148)
Adding a new command for cancelling queries

* WIP

* Creating a cancelling spinner

* Removing keyboard shortcut as per @erickangMSFT

* Changes as per code review feedback
2016-10-17 13:12:01 -07:00
Karl Burtram e401ed24eb Rollback to SqlToolsService 0.0.26 2016-10-17 01:24:59 -07:00
Karl Burtram 1e937dcc67 Update readme.ms 2016-10-16 10:09:25 -07:00
Karl Burtram 3ed06349b3 Bump extension to 0.0.8 for bug bash build (#156)
* Bump sqltoolsservice to 0.0.26

* Bump extension to 0.0.8
2016-10-12 20:55:24 -07:00
Mitchell Sternke a224cad80e Fit and finish for CTP1 connection functionality (#152)
* Fit and finish for CTP1 connection functionality

* Fix so that MRU items not associated with a profile forget passwords

* Minor UI string change

* Addressing feedback

* Minor bugfix related to saving authentication type for MRU items

* Prevent saving plaintext passwords on new profiles

* Fix issue with MRU ordering edge case
2016-10-12 16:45:08 -07:00
Mitchell Sternke 5f64bc1a41 Feature/profiles in settings file (#140)
* Moved conection profiles to vscode settings file

* Fixed tests

* Removed obsolete json schema

* Prevent harmless error message

* Fixed some edge cases

* Addressing feedback
2016-10-10 17:26:32 -07:00
Mitchell Sternke 2279aabe41 Feature/connect fit and finish UI (#134)
* Changed commands from 'MSSQL' to 'MS SQL'

* Rename 'Switch database' -> 'Change database'

* Fix capitalization

* Added disconnected state for new SQL files

* Limit status bar text length

* Finalized tooltip text for connection status

* Added log messages for connect events

* Fix broken unit test

* Minor changes

* Addressing feedback

* Revert change to execute query shortcut
2016-10-07 12:45:49 -07:00
Karl Burtram 15e10922ea Bump package to 0.0.7 2016-10-06 22:43:35 -07:00
Mitchell Sternke 572afc5898 Feature/connect cancel (#126)
* Implemented connection cancellation and handling connection complete notification

* Fixed tests

* Addressing feedback

* Refactor handleConnectionCompleteNotification

* vbump service

* vbump extension version
2016-10-04 16:29:47 -07:00
Mitchell Sternke 2ac7b1ab61 Feature/password handling (#118)
* Improved save password handling for connection profiles

* Move check into promise body

* Update connection json schema
2016-10-04 11:07:02 -07:00
Karl Burtram 44e0879f9a Add embedded Getting Started guide (#120)
* Add prompt to view embedded release notes.

* Add Getting Started guide.

* Correct the display condition
2016-09-28 15:20:49 -07:00
Karl Burtram 4a2d1584c1 Update package version to 0.0.5 (#115)
* Bump SQL Tools version to 0.0.19

* Bump to 0.0.5
2016-09-26 21:42:08 -07:00
Sharon Ravindran 9ec1a76b1a Feature/xml link (#107)
* Add openLink pipe line

* Change post data

* Handle save from  untitle file

* Open file with content

* Add formatter for xml field

* Open xml links in new editor pane

* Remove extra space

* Pretty print xml

* Remove console.log

* Delete .BROWSE.VC.DB-shm

* Delete .BROWSE.VC.DB-wal

* Code cleanup

* Make enableAsyncPostRender an input into slickgrid

* Remove Xml FieldType
2016-09-23 15:02:48 -07:00
Leila Lali 316983e8a5 Status bar message when downloading the service (#101)
* Showing an error in the status bar if downloading the service failed. Hiding the installed service message after 5 seconds

* updating vscode-languageclinet to 2.5.0
2016-09-21 16:16:43 -07:00
Karl Burtram f3f51c46d5 Update service to 0.0.16 2016-09-20 21:42:24 -07:00
Mitchell Sternke 1b1b7dc920 Feature/profile file (#98)
* Initial commit of profile file saving support

* Fix path used on mac/linux

* Fixed issue with loading profiles from settings file

* Refactored out file logic to separate class to fix tests

* Fixed all existing tests

* Fixed unhandled exceptions leaking in tests

* Added unit tests for connection config

* Minor fix for edge case

* Addressing feedback
2016-09-19 18:07:13 -07:00
Leila Lali 3a4625f072 Updating the version of applicationinsights in vs-telemetry module (#100)
* Updating the version of applicationinsights in vs-telemetry module to 0.15.19
2016-09-19 17:59:22 -07:00
Leila Lali a02f63a4b7 gulp scripts for creating vsix package (#94)
* gulp scripts for creating vsix package and installing the service as part of the build
2016-09-19 10:27:33 -07:00
Anthony Dresser 35cd4a881b Feature/copy paste (#83)
* initial copy paste code

* initial copy-paste pipe

* added copy paste functionality

* updated package.json

* added tests; removed console logs

* removed unnecessary code
2016-09-15 11:51:35 -07:00
Kevin Cunnane ee9a4933cb Most Recently Used support in VSCode extension (#77)
* MRU support in ConnectionStore

- Core functionality including tests to support most recently used list
- Configuration option to let users define the size of the MRU list

* Recent Connection added on Connect

- ConnectionManager.Connect will save a connection to the recently used list
- Unit Tests added to cover this
- Default value from the user settings is now filtered out as this change caused it to be shown (and we do not want the sample value visible)
2016-09-13 18:09:38 -07:00
Leila Lali d6593bd1eb downloading the SQL tools service if does not exist (#70)
* downloading the SQL tools service if does not exist before loading the extension
2016-09-13 15:57:29 -07:00
Anthony Dresser 250c0c5243 Merge pull request #57 from Microsoft/feature/updatedVariousSelection
fixed and added various selection options
2016-09-08 16:56:15 -07:00
Kevin Cunnane fb5844a485 Save Connection Password using Credential Store (#35)
* CredentialStore support via ServiceLayer

- Removed Node-based credential implementation as it send password over the command line
- Replaced with implementation via the ServiceLayer
- Improved error handling to catch rejected Thenables
- Removed no longer used npm dependencies

* Save Password fixes

- Renamed RecentConnections to ConnectionStore to accurately reflect status (it stores Profile info and in the future will also have MRU)
- Added a unit test to cover not saving password in the settings. Will update to include in the secret store instead in a future checkin

* Save and Remove password from credential store

- Password is now saved to credential store and removed from it when RemoveProfile is called

* ConnectionUI constructor requires ConnectionStore

* Fix casing for Credential objects

* Multiple fixes for Connection Behavior

- Integrated authentication handled correctly in the Create Profile workflow
- Error Handling in the main events so that rejected promises are not lost
- Handle Escape from Connection workflows correctly

* Use SqlLogin as authenticationType

* Use VSCodeWrapper for calls to ShowErrorMessage

* Update Nuget Dependency to 0.0.8
2016-09-07 13:44:23 -07:00
Anthony Dresser 807a5b44a5 fixed and added various selection options 2016-08-31 16:19:49 -07:00
Mitchell Sternke 1f9f6113ca Added support for most sql connection string properties 2016-08-30 17:30:19 -07:00
Mitchell Sternke 8f17aecf4e Merge branch 'dev' into feature/removeTedious 2016-08-25 16:49:24 -07:00
Leila Lali 97a95add9a Updating language client library to 2.0.0 2016-08-24 16:21:52 -07:00
Mitchell Sternke 4bdb2280d0 Removed Tedious driver and replaced with service calls 2016-08-24 16:12:08 -07:00
Anthony Dresser 180ed98254 added tests for query runner 2016-08-22 11:25:03 -07:00
Mitchell Sternke 83b4c9b214 Updated test runner 2016-08-19 16:38:35 -07:00
Kevin Cunnane 46c9fdfd93 Merge from Dev 2016-08-18 16:18:56 -07:00
Kevin Cunnane dde260f864 Add AuthType question to profile with test
Added AuthenticationType as an option in the Create Profile workflow.
Created new test class and added a single test to verify the basic question flow.
TODO: Add serialization of this property across the API boundary and more tests
2016-08-18 10:11:16 -07:00
Karl Burtram c043faeabf Pull SqlToolsService host binaries from Nuget instead of as checked in
binaries.
2016-08-16 10:15:33 -07:00
Anthony Dresser e0ef372da4 Slick gridwith angular2 (#7)
* Refactored the project to run the front end code as a separate npm package

* Added Slickgrid as UI component rather than Backgrid

* Added Gulp scripts for building
2016-08-01 18:18:36 -07:00
Mitchell Sternke e316a6d1e3 Merge branch 'dev_chooseDatabase' into dev 2016-08-01 17:24:33 -07:00
Mitchell Sternke 75cbb8c1a3 Initial code for switching database on the current server 2016-08-01 13:23:56 -07:00
Kevin Cunnane 12ffea30aa Merge from Dev 2016-07-31 17:18:59 -07:00
Kevin Cunnane f54dad62f7 Create and Remove Profile support
- Renamed actions to "Create Connection Profile", "Remove Connection Profile"
- Plumbed these through the UI
- Refactored Connection workflow to use new prompt flow

TODO:
- Unit Testing
- Most code can now move to ConnectionManager if we want and be unit tested. There are now minimal UI dependencies
2016-07-31 16:51:08 -07:00
Kevin Cunnane 1c36a2c873 Add generic question answering framwork
Add in a standard VSCode pattern for applying a series of questions in a workflow. This is adapted from the Bower VSCode plugin's pattern. The chief difference is it has an opportunity to apply changes when set. Updated the Register Connection command to use this.
2016-07-30 18:40:23 -07:00
Kevin Cunnane 5a163a599f Support for dummy Register Connection command
- Fixed issue where service was called with "dotnet.exe" instead of "dotnet", which breaks Mac usage
- Added dummy commands for Register Connection and Unregister Connection
- Added the Register Connection dummy command as an option in the "Connect" command palette list. This will eventually enable users to connect without needing to manually edit the settings file
- Fixed issue where prompt for password didn't work as the prompt code was commented out
- Fixed issue where hitting ESC to cancel wasn't respected - it showed the "Retry" message box
- Refactored Connect code to make it easier to add multiple prompt for inputs in the workflow
2016-07-27 18:35:39 -07:00
Mitchell Sternke d4428f9137 Initial commit of telemetry-enabled code 2016-07-26 10:48:06 -07:00
Karl Burtram 189032e017 Integrate LanguageClient to dev (#5)
* Hook Language Service client into VS Code.

* Hook servicehost into connection events

* Clean up connection code and add source comments

* Fix merge error in package.config

* Fix tslint errors
2016-07-25 13:05:30 -07:00
Anthony Dresser bd509ff7a7 fix jslint problems and added config 2016-07-22 14:47:21 -07:00
Anthony Dresser 166d11aaa6 updated publisher 2016-07-19 15:03:36 -07:00
Anthony Dresser d9290e8045 added testing for sqlOutputContentProvider 2016-07-18 15:32:29 -07:00
Anthony Dresser 5843b71f74 added multiple result windows 2016-07-18 15:23:48 -07:00
Mitchell Sternke ce59e669df Add unit test infrastructure for xunit style reporting 2016-07-05 16:54:54 -07:00
Mitchell Sternke fcfe97f446 Missing comma 2016-06-30 15:13:20 -07:00
Mitchell Sternke cbfa62a7e4 Disable compile watch by default for builds 2016-06-30 15:12:52 -07:00
Karl Burtram 2e96b1f24b Initial commit to GitHub. 2016-06-26 11:49:47 -07:00