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

658 Коммитов

Автор SHA1 Сообщение Дата
Prashanth 22ca778391
executeCommands: catch and rethrow error with relevant command. (#765)
* executeCommands: catch and rethrow error with relevant command.

* Address feedback.

* Use of parseError made consistent with other usage.
2018-07-17 13:59:23 -07:00
Prashanth 3ee652b1ac
Replace contents of cosmos-result.json with blank text after opening. (#763)
* Replace contents of cosmos-result.json with blank text after opening.
Fixes #676

* create stored procedure: Add validation for input

* Revert "create stored procedure: Add validation for input"

This reverts commit a1a83e10eca9413f246a8d8b3e096f9a7c18d951.
Pushed to wrong branch

* Fetch data before opening document -
obviates printing blank document
2018-07-17 13:59:11 -07:00
Prashanth 7b49e1df85
create stored procedure: Add validation for input (#764) 2018-07-11 11:22:37 -07:00
Prashanth ffc7366afd
Change contextValue in registerCommands.createStoredProc (#762)
Add StoredProcsTreeItem to isAncestorOf for DocDB&Graph AccountTreeItems
2018-07-10 18:09:15 -07:00
Prashanth 28a81c7152
Implement some more tslint rules for 0.9.0 (#758)
* Introduce ordered-imports, curly, eofline, no-single-line-block-comment

* Introduce tslint rule trailing comma

* Enforce : no-console, switch-default, class-name,
Ignore: no-use-before-declare, func-name, export-name, interface-name

* errorDescription -> ErrorDescription

* feedback
2018-07-09 16:08:49 -07:00
Prashanth 14c1047866
Version bump - 0.8.0 -> 0.8.1-alpha (#759) 2018-07-09 15:20:06 -07:00
Prashanth 32a5e09147
Enforce ordered-imports (#757) 2018-07-09 12:28:43 -07:00
Prashanth 7d8fe9482d
Use collection.id instead of label when creating GraphConfig. Fixes #751 (#755) 2018-07-05 16:07:45 -07:00
Prashanth 50f224c50d
Update version number and changelog (#750)
* Version bump. Add 0.7.2 changelog

* Update Changelog for 0.8.0

* Feedback
2018-07-03 18:25:07 -07:00
Prashanth 5401258e8b
contextToObject: return empty obj on unrecognized token. (#749) 2018-07-03 17:07:01 -07:00
Stephen Weatherford (MSFT) df1d7b743e
Add user agent to docdb and mongo calls (#748)
* Add user agent to docdb calls

* Fix dependency issue in mongo language server

* Fix build

* New version of ui
2018-07-03 16:27:40 -07:00
Prashanth fe0681b8a7
Fix typo in intellisense suggestion that leads to an invlaid command. (#747) 2018-07-03 15:31:10 -07:00
Stephen Weatherford (MSFT) 9b93c4106e Revert "Saw/user agent (#740)" (#743)
This reverts commit 8d632526d3.
2018-07-02 17:55:48 -07:00
Prashanth 5200ca8094
Address #737. Ignore Errornodes. (#742)
* Address #737. Ignore Errornodes.

* Add test
2018-07-02 16:34:50 -07:00
Stephen Weatherford (MSFT) 8d632526d3
Saw/user agent (#740)
* Add user agent to docdb calls

* Version

* User agent string for mongo (appname)

* Fix comment

* CosmosDBManagementClient user agent

* Fix spelling

* Fix build
2018-07-02 16:32:34 -07:00
Prashanth 634c3349c9
Uncomment relevent test. Fixes #689 (#741) 2018-07-02 16:23:26 -07:00
Prashanth ca4b143f82
Fix #614 Reject promise on catching error. (#732)
* Fix #614 Reject promise on catching error.

* dummy commit to restart travis build
2018-07-02 16:22:31 -07:00
Eric Jizba b0acf3a53c Preregister extension variables for ui package (#738)
Went ahead and pushed...
2018-06-29 17:15:44 -07:00
Stephen Weatherford (MSFT) e64c5b0b8d
Fix connecting to emulator via Mongo shell (#731) 2018-06-29 17:13:07 -07:00
Stephen Weatherford (MSFT) 4e0de7a68d
Add child type to assertion (#736) 2018-06-29 17:12:38 -07:00
Prashanth 9fbae9a94c
Allow unquoted strings for property values, Allow collection names to have dots (#729)
* Rename STRING_LITERAL to identifier

* propertyName: Allow identifiers too

* Modiify error in failing test to match new implementation.

* 1. Allow collection names to have dots.
2. Modify some tests to check for strings in double quotes, single quotes
and no quotes
3. Add test cases from user-filed issues.

* One more test

* Merge commit from rebase:
1. Regenerate grammar from rebase.
2. Modify outputs from tests to make them pass the new grammar.
3. getAllcommands- sort the errors based on starting position

* Add test for issue #722: Unrecognized child type.

* Address feedback.

* Add test case from user filed issue
2018-06-28 20:17:36 -07:00
Stephen Weatherford (MSFT) 8c93b27145
Use actual error message from lexer (#725) 2018-06-27 16:19:34 -07:00
Stephen Weatherford (MSFT) 76a6409e4e
Add setting for document field labels (#719)
* Add setting for document field labels

* fix

* fix
2018-06-26 18:09:51 -07:00
Stephen Weatherford (MSFT) acbe4d5569
Fix comparing explicitly against null (#721) 2018-06-26 17:37:25 -07:00
Stephen Weatherford (MSFT) d3e411248a
Regenerate grammar (two .g4 changes collided) (#720)
* Regenerate grammar (two .g4 changes collided)

* fix
2018-06-26 17:36:33 -07:00
Stephen Weatherford (MSFT) 46520b2a88
Use error listeners and catch errors not associated with command (#711) 2018-06-26 17:18:46 -07:00
Prashanth e41cdd30d1
Handle single quotes in scrapbook (#685)
* Initial commit + tests. TESTS WILL FAIL.

* Initial commit. EOD work draft.

* Parse property name value tokens. Works for single-quoted strings.
TODO: Remove command.arguments and use command.argumentObjects.

* Fix handling of ArrayLiteralContexts to pass tests

* Handle numbers, booleans properly in the input.
Handling undefined still fails.

* Fix errors popping up when the user is still typing.

* Remove unused import

* Changes based on feedback

* Implement filterType, findType.
RandomUtils: Remove getRandomHexString (unused)

* Changes based on Feedback

* Throw errors based on feedback.
g4: Ensure '1.' (incomplete decimal) is an error node.

* Changes based on feedback

* Feedback

* prevent functionCallContext from throwing. Make some tests smaller.

* STRING_LITERAL  : disallow single quotes.
Hinders the parser from tokenizing as functionCallContext needlessly.

* Tests: nested objects, incomplete calls (replicate user typing)

* Fix failing tests

* Add more test cases

* Handle empty arrays in argument - accompanying test

* Ensure this._query & this._proj are undefined if query is [].
Fixes #715 that this PR introduces.
2018-06-26 14:35:17 -07:00
Stephen Weatherford (MSFT) 76f6874f08
Only use local port as default Mongo connection if running (#713) 2018-06-25 15:27:46 -07:00
Stephen Weatherford (MSFT) aa550d173c
Add refresh to attached DBs node (#714) 2018-06-25 15:27:07 -07:00
Stephen Weatherford (MSFT) 71cded2dfb
Lint fixes (#712) 2018-06-25 15:23:12 -07:00
Stephen Weatherford (MSFT) 387985842a
Fix scrapbooks link (#704)
* Fix scrapbooks link

* Approach #2
2018-06-25 11:11:45 -07:00
Stephen Weatherford (MSFT) 11bf935f31
npm audit fix (#702) 2018-06-20 16:35:44 -07:00
Stephen Weatherford (MSFT) 6744420ec5
Update to ui 0.15.0 (#701) 2018-06-20 14:34:12 -07:00
Prashanth e6fa015de3
Document labels: use fields other than _id wherever possible (#569)
* Update third party notices for mongodb-extended-json.

* Document labels: use fields other than _id wherever possible

* Remove the number of calls to toString in finding the label

* Force refresh a document's tree item post-update. Fixes #145

* Document labels : make private

* Add setter for tsc -p

* Changes based on feedback

* Based on feedback

* tsc fix

* Feedback + tests

* Add field to documentLabelFields. Kicks off CLA.
2018-06-19 13:54:30 -07:00
Prashanth 3ea8080cce
Display stored procedures in graphs (#639)
* Display stored procedures in graphs

* Pass client instead of collectionTreeItem
2018-06-19 12:03:50 -07:00
Stephen Weatherford (MSFT) 33b1e8658a
More instructions for debugging .g4 (#690) 2018-06-18 14:52:03 -07:00
Stephen Weatherford (MSFT) f3641d4a88
Cannot read property text of undefined (#660) 2018-06-13 15:58:40 -07:00
Prashanth 83a3a1c5c0
Put in place triple-equals, restrict-plus-operands, no-unnecessary-local (#654) 2018-06-11 13:58:47 -07:00
Prashanth 986a875ebd
Mongo- Doc&Coll - Remove ObjectID constructor from update operation (#671)
* Mongo- Doc&Coll - Remove ObjectID constructor from update operation

* Remove unused import. Fixes tsc -p failure.
2018-06-08 14:18:35 -07:00
nuri 2fb1060dd8 Allow MongoDB connection of the form 'mongodb+srv://...' (#670) 2018-06-08 11:46:03 -07:00
Stephen Weatherford (MSFT) 9fbb8fa4fd
Show errors in the error list (#652)
* Show errors in the error list

* Updates

* typo

* fix build
2018-06-06 16:13:03 -07:00
Stephen Weatherford (MSFT) b617b25de8
Enable debugging Mongo grammar via mike-lischke.vscode-antlr4 extension (#651) 2018-05-31 11:05:22 -07:00
Stephen Weatherford (MSFT) 52c41e3c86
Enable debugging Mongo grammar via mike-lischke.vscode-antlr4 extension (#649) 2018-05-30 18:48:13 -07:00
Prashanth 364ffbb855
find operation: Use EJSON to parse query and projection (#635) 2018-05-30 17:40:49 -07:00
Stephen Weatherford (MSFT) 768d2a8f58
Format mongo.g4 (no functional changes) (#650) 2018-05-30 17:23:59 -07:00
Prashanth 9001508648
Filter out invalid accounts under a subscription (#637)
* Update third party notices for mongodb-extended-json.

* Filter out invalid accounts under a subscription

* Remove error throwing code used for testing

* Use a mock node to display error within tree

* Use parseError

* util -> vscodeUtils wherever appropriate

* parseError and ID removal
2018-05-29 12:27:56 -07:00
Prashanth 0ee0fe5ab7
[SQL]: Allow setting a partitionkey value during document creation (#638)
* [SQL]: Allow setting a partitionkey value during document creation

* Remove unused import

* Feedback

* Comment based on feedback
2018-05-25 14:04:50 -07:00
Prashanth 4236162db3
Add a lint command to perform fixes (#634)
* Update third party notices for mongodb-extended-json.

* Add lint-fix command
2018-05-17 15:15:05 -07:00
Prashanth 66d1acd39f
Update third party notices for mongodb-extended-json. (#631) 2018-05-15 17:38:37 -07:00
Prashanth 3c572d376e
Implement prefer-for-of in the repo (#618)
* implement prefer-for-of

* Fix comment

* tslint fixes for no-var-keyword from another commit.
2018-05-10 16:28:49 -07:00