Karl Burtram
8f3e83b519
Add nvarchar to IntelliSense keyword list ( #272 )
2017-03-09 14:33:43 -08:00
Kevin Cunnane
adcc5c8089
Merge latest Dev and latest master
2017-03-06 17:59:41 -08:00
Kevin Cunnane
0f706f28ee
Merge from Master
2017-03-06 17:56:04 -08:00
Benjamin Russell
ef3100de3b
Changing test projects to UnitTests, fixing peek definition codegen bug ( #269 )
2017-03-06 17:55:48 -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
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
Kevin Cunnane
b38c1f2a42
Remove duplicate PeekDefinition telemetry event ( #255 )
2017-02-24 13:10:03 -08:00
Kevin Cunnane
ab70218249
Remove duplicate PeekDefinition telemetry event ( #255 )
2017-02-24 13:08:51 -08:00
Kevin Cunnane
e1c8cc5ac3
Formatter and PeekDefinition Telemetry ( #245 )
...
- Add telemetry point for format requests
- Update PeekDefinition telemetry so that it captures whether the attempt succeeded and if it was connected. This will help us understand whether our current behavior of just notifying success/failure to the output window was useful or not. It will also help us understand whether we're doing a good job implementing this / if we need to improve reliability and preformance.
2017-02-21 21:26:10 -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
Kevin Cunnane
7477642854
TSQL Formatter Service ( #229 )
...
- TSqlFormatterService with support for formatting document and text range inside document
- Settings support for all formatting options.
- Extensibility support so that the service can be initialized using MEF extensibility, and can find all necessary TSqlFormatters using the same process
Fix Initialize request error on startup
- Messages were being read from the input channel before all request handlers were registered
- In particular, the Initialize request which is key for any server to talk to the client was getting lost because the message reader thread begins consuming, and we take an extra few hundred milliseconds due to MEF startup before we register the handler
- The solution is to initialize the message handler so request handlers can register, but not actually start processing incoming messages until all handers are ready. This is a safer way to go and should improve reliability overall
Improvements from internal prototype:
- Normalizing baselines to handle the line ending differences on Mac & Linux vs. Windows
- Significantly shortened most lines by implementing base class methods to wrap common objects from Visitor.Context and removing unnecessary "this." syntax
- Refactored the SqlCommonTableExpressionFormatter and related classes to reduce code count significantly. This provides a pattern to follow when refactoring other classes for similar clarity. It's likely a lot of common logic could be found and reused across these.
- Reduced overall code size by adding utility methods
2017-02-14 23:40:17 -08:00
Aditya Bist
eb4f2f2b91
port batch parser wrapper ( #232 )
...
* Initial commit for GitHub IO pages
* Add initial doxfx content
* Update manifest.json
* Update manifest.json
* Set theme jekyll-theme-cayman
* Set theme jekyll-theme-slate
* Set theme jekyll-theme-minimal
* Set theme jekyll-theme-tactile
* Clear out theme setting
* Remove API docs
* Revert "Adding Milliseconds to DateTime fields (#173 )" (#197 )
This reverts commit 431dfa4156 .
* ported new BatchParser
* added BatchParser tests
* fixing merge conflicts
* fix build issues
* cleaned code and addressed comments from code review
* addressed code review and made BatchParser logic more efficient
* fixed batch parser tests
* changed class name to fix build issues
* fixed merge conflicts
* added path for lab mode baseline tests
* changed env path for lab mode
* added env variable to appveyor
* testing env variable for appveyor
* fixed lab build
* debug appveyor build
* testing changes for appveyor
* changed trace env path
* debugging appveyor build
* changed baseline env path
* debugging
* debugging
* debugging
* switched on trace flag
* debugging
* debugging
* changed build config
* changed baseline files
* checking baseline output
* changed baseline files
* debug baseline tests
* debugging baseline
* debugging
* debugging
* debug
* debugging
* testing baseline format
* debug
* debug
* debug
* debug
* debug
* newline debug
* changed baseline file
* debug
* test
* try new way to read
* added execution engine tests
* change test
* testing file encoding
* moved execution engine tests to integration
* try compare without spaces
* removed no op test
* added env variable for travis
* put batch parser tests to integration too
* put batch parser in integration
* try new baseline string match
* compare baseline test logic changed
* changed baseline logic as well as cleaned tests
* fix build for travis CI
* fix travis CI issues
* fixed highlighting bugs on vscode
* code review changes
* ported new BatchParser
* added BatchParser tests
* Initial commit for GitHub IO pages
* Add initial doxfx content
* Update manifest.json
* Update manifest.json
* Set theme jekyll-theme-cayman
* Set theme jekyll-theme-slate
* Set theme jekyll-theme-minimal
* Set theme jekyll-theme-tactile
* Clear out theme setting
* Remove API docs
* Revert "Adding Milliseconds to DateTime fields (#173 )" (#197 )
This reverts commit 431dfa4156 .
* fixing merge conflicts
* fix build issues
* cleaned code and addressed comments from code review
* addressed code review and made BatchParser logic more efficient
* fixed batch parser tests
* changed class name to fix build issues
* fixed merge conflicts
* added path for lab mode baseline tests
changed env path for lab mode
added env variable to appveyor
testing env variable for appveyor
fixed lab build
debug appveyor build
testing changes for appveyor
changed trace env path
debugging appveyor build
changed baseline env path
debugging
debugging
debugging
switched on trace flag
debugging
debugging
changed build config
changed baseline files
checking baseline output
changed baseline files
debug baseline tests
debugging baseline
debugging
debugging
debug
debugging
testing baseline format
debug
debug
debug
debug
debug
newline debug
changed baseline file
debug
test
try new way to read
added execution engine tests
change test
testing file encoding
moved execution engine tests to integration
try compare without spaces
removed no op test
added env variable for travis
* put batch parser tests to integration too
* put batch parser in integration
try new baseline string match
* compare baseline test logic changed
* changed baseline logic as well as cleaned tests
* fix build for travis CI
* fix travis CI issues
* fixed highlighting bugs on vscode
* code review changes
* fixed filestream writer test
* added localization string
* added localization string
* generated new string files again
* code review changes
2017-02-10 16:51:26 -08:00
Aditya Bist
767f689c42
temp tables not escaped any more
2017-02-09 16:23:49 -08:00
Sharon Ravindran
b10d6bdfdc
Check database case sensitivity for peek definition token matching ( #227 )
...
* Check database case sensitivity before peek definition token matching
* Add sr gen
* add tests for ignore case
* remove sr.Designer
2017-02-08 12:34:01 -08:00
Sharon Ravindran
50195faced
Fix to get the current database context for peek definition ( #220 )
...
* Get db name from query connection
* Add comments
* Correct typos
* revert changes to .sln
* Add unit tests
* Fix typo
* Fix error due to a mistyped comment
2017-02-03 17:50:55 -08:00
Sharon Ravindran
5464e4e63a
Feature/peek def code gen ( #215 )
...
* Add codeGen for existing types
* Modify code gen logic to match current code
* Extend logic for new smo objects
* Add logic to retrieve token type from QuickInfo
* Remove duplicate types
* Add tests for new types
* Modify GetScript logic to use suggestions first
* Add more tests
* Modify codeGen to include quickInfo logic
* Cake build changes to run CodeGen
* CodeGen replace indentation
* Refactor GetScript and add more tests
* Refactor Resolver calls
* Fix TestDriver test for Definition
* Change quickInfo string case
* Revert change sto .sln file
* Fix typos in comments
* change String to string
* Rename test sql objects
2017-01-19 13:24:58 -08:00
Sharon Ravindran
e186ffa3f2
Reuse existing ServerConnection in PeekDefinition ( #209 )
2017-01-06 12:17:48 -08:00
Leila Lali
379decf4e9
added support for QUOTED_IDENTIFIER in auto complete list ( #190 )
...
* added support for QUOTED_IDENTIFIER in auto complete list
2017-01-04 14:03:10 -08:00
Aditya Bist
1a2e802a5d
Merge pull request #191 from Microsoft/customerIssue/escapeReservedWordsAutocomplete
...
reserved words with brackets in autocomplete
2016-12-19 11:25:18 -08:00
Aditya Bist
cde7bd49b3
added tests for new scenario
2016-12-19 10:53:20 -08:00
Aditya Bist
ac28d3b78f
fixed changes according to review
2016-12-15 13:59:34 -08:00
Sharon Ravindran
5d2bf7fbe4
Feature/delete peek scripts ( #174 )
...
* Delete temp script folder
* Delete folder and refactor code
* Add unit tests
* create folder per workspace
* Refactor and move creation to FileUtils
* Separate multiple assignment
2016-12-15 13:34:33 -08:00
Aditya Bist
6e746efad0
reserved words with brackets in autocomplete
2016-12-15 11:12:36 -08:00
Sharon Ravindran
9c6162282a
Add error handling for Azure Exceptions ( #177 )
...
* Add error handling for Azure Exceptions
* Add SRGen for string
* Add specific exception messages
* Move DefinitionResult class
* Add SqlLogin constant
* Add error scenarios
* revert timeout duration
* Modify tests
* Modify tests
* Add tests
* Revert live connection definition
* Modify DefinitionsHandlerWithNoConnectionTest
* fix test after merge
* Code review changes
* Code review changes
* Code review changes
2016-12-14 16:04:47 -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
Leila Lali
e9398f7182
Sending status change notifications from server ( #186 )
...
* Sending status change notifications from server
2016-12-14 13:19:02 -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
Connor Quagliana
40c1434745
Fixed null ref exception in GetSignatureHelp ( #175 )
...
- Fixed a few places where ScriptParseInfo was being used before it was verified to be non-null
- Added 1 basic test for GetSignatureHelp scenario
2016-12-09 15:18:08 -08:00
Leila Lali
9526b4dd49
changing the telemetry event name incase the other one is used by vs code
2016-12-08 15:23:21 -08:00
Leila Lali
0b295e78c2
adding a new event for when definition is requested ( #167 )
...
* sending telemetry events for intellisense usage
2016-12-08 14:05:42 -08:00
Sharon Ravindran
ab97948005
Fix/peek def mac ( #170 )
...
* Fix Integrated auth error and Uri for *nix/Mac
* Format code
* Add Logging and unit tests
* Modify tests for Windows:
* Workaround missing default schema on *nix and Mac
* Add unit tests
* Correct comments
* Change loop length
* Fix Log message
2016-12-07 16:52:35 -08:00
Leila Lali
379c6170b3
Intellisense for when the text starts with bracket ( #164 )
...
* Intellisense for when the text starts with bracket
2016-12-06 10:09:50 -08:00
Sharon Ravindran
82a7a01304
Peek definition support for tables, views and stored procedures ( #160 )
...
* Add support for peek/go to definition
Add unit tests for definition
Microsoft/vscode-mssql#253 and Microsoft/vscode-mssql#268
* Format Strings
* Add integration tests
* Refactor variable names
* Remove test file
* Remove LIVE_CONNECTION definition
* Change method name
* Write files to a separate directory
* Refactor GetDefinition
* Remove unnecessary whitespace and modify variable name
* Check intellisense settings
* Refactor code to be scalable and modify tests
* Refactor to facilitate CodeGen
* Reorder methods
* Modify method to strip bracket syntax
* Add one_second constant
* Add comments
* Modify null check
* Modify GetSchema code to account for spaces
* Alter variable names and modify null checks
* Remove timeout callback and refactor null check
* remove LIVE_CONNECTION_TEST definition
2016-12-02 12:16:21 -08:00
Mitchell Sternke
c95933b7e1
Implemented function signature help, and added tests ( #153 )
...
* Implemented function signature help, and added tests
* Incremental commit of changes from code review feedback
* Rename test
* Added check to make sure intellisense is enabled
* Use HoverTimeout instead of BindingTimeout
2016-11-30 14:22:48 -08:00
Karl Burtram
39b79ae05b
Merge branch 'master' into dev
2016-11-28 09:58:32 -08:00
Mitchell Sternke
ba0f564126
Fixed Turkish I problem with autocomplete keyword suggestions ( #158 )
2016-11-22 17:05:03 -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
Mitchell Sternke
32f6cbc304
Language service no longer binds on duplicate connections ( #148 )
2016-11-15 18:12:16 -08:00
Mitchell Sternke
2211bd0403
Added notification for when language service is done updating after connect ( #146 )
...
* Added notification for when language service is done updating after connect
* Addressing feedback
* Added unit test
2016-11-15 17:39:17 -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
6cdaa6e808
Add more test cases for code coverage ( #127 )
...
Next round of code coverage test cases. Please review the commit for next iteration.
* Add connection retry tests
* More test coverage
* Update diagnostics end-to-end test
2016-10-29 12:10:02 -07:00
Leila Lali
017b00437a
changing the setting namespace ( #116 )
2016-10-25 17:19:33 -07:00
Leila Lali
cac3ae5eeb
changing the setting namespace ( #116 )
2016-10-25 17:09:42 -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
649ea7d05c
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 17:21:37 +00: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
Leila Lali
5a7b412c38
changed the icons for the completion list based on the sql type ( #112 )
...
* changed the icons for the completion list based on the sql type
2016-10-21 15:50:12 -07:00
Karl Burtram
854a6a0eca
Switch back to event from locks to fix blocking issues. ( #111 )
2016-10-21 15:46:33 -07:00