Commit graph

173 commits

Author SHA1 Message Date
Johannes Rieken 890ffa4072 adopt api-tests to new match logic, #21886 2017-03-07 17:29:21 +01:00
Cody Hoover 503f8f516e Add ability to open untitled document with initial content (#22021) 2017-03-07 07:43:21 +01:00
Johannes Rieken 1239cebb70 Merge branch 'joh/editors' 2017-03-06 12:40:47 +01:00
Sandeep Somavarapu b68f3b2f38 #19733 Default configurations
- Define a new extension point `configurationDefaults` for contributing default language specific editor settings
2017-02-09 00:23:00 +01:00
Matt Bierner 7f8173680f Use @types a few more places (#20159) 2017-02-07 18:16:19 -08:00
Matt Bierner 42335c57f5 Revert "Use types tsconfig option where possible"
This reverts commit 38fbba35ff.
2017-02-07 16:31:50 -08:00
Matt Bierner 38fbba35ff Use types tsconfig option where possible 2017-02-07 15:57:22 -08:00
Matt Bierner 1a024c1b19 Use reference @types/node in extensions 2017-02-07 15:38:04 -08:00
Matt Bierner 8dad2594ce Remove a few more extension d.ts files that are not needed 2017-02-01 17:53:47 -08:00
Matt Bierner cda3584a99 Use @types/node in extensions (#19692)
Switches builtin extensions to use @types/node for node definitions. Fixes a few errors that show up as a result of updating to a more modern version of node.d.ts
2017-02-01 15:20:17 -08:00
Matt Bierner 7c633148b3 Remove unneeded d.ts files from extensions (#19653)
* Remove unneeded d.ts files from extensions

Moves most extensions to use the lib files for the standard library that typescript provides.

* Remove a few more node.d.ts references
2017-02-01 12:34:50 -08:00
Johannes Rieken a2a077b088 optionally allow to specify selection at which to insert a snippet, #19116 2017-01-25 15:56:08 +01:00
Johannes Rieken 211d9ccdd8 explicit insertSnippet function instead of edit overload, #19116 2017-01-25 14:06:39 +01:00
Johannes Rieken b4817e5884 Merge pull request #17628 from joelday/master
Adding an overload to TextEditor.edit for insertion of a SnippetString
2017-01-20 10:52:33 +01:00
Johannes Rieken 133db393db don't double install vscode.d.ts 2017-01-20 10:50:18 +01:00
Johannes Rieken c8adfcc3f9 api tests should require vscode.d.ts from source 2017-01-20 09:53:51 +01:00
Joel Day c21734fd30 Snippet insertion extension API changes
- Basing snippet insertion failure on a new `_codeEditor` null-check.
- Now returns `Thenable<boolean>`.
- Removed vscode.proposed.d.ts copy of the `TextEditor` change.
- Removing empty options interface.
2017-01-18 10:13:56 -08:00
Benjamin Pasero 8b7756063b Open new file buffer via API 2017-01-18 19:13:26 +01:00
Joel Day 95fc03271c TextEditor.edit snippet overload now returns void. No longer preventing when already in snippet mode. 2017-01-17 23:25:40 -08:00
Joel Day 713aaff9d8 Fix test selection range. 2017-01-17 22:42:25 -08:00
Joel Day 3c817c7fe2 Insert snippet API changes. 2017-01-17 16:09:15 -08:00
Joel Day 8a3039245e Merge master. 2017-01-17 13:18:41 -08:00
Benjamin Pasero f9ce2e16fc fix compile errors 2017-01-09 18:13:23 +01:00
Joel Day a41b017b28 Temporarily referencing vscode.proposed.d.ts for API tests. 2016-12-20 15:40:07 -08:00
Joel Day 9c42a68dc0 Merge branch 'master' of https://github.com/Microsoft/vscode 2016-12-20 14:35:38 -08:00
Joel Day 40522e28f8 TextEditor.insertSnippet extension API.
More robust type validation on ext side of insertSnippet.
Position/range check for snippet insertion was inverted.
Adding insertSnippet to vscode.d.ts. (Should it be in vscode.proposed.d.ts?)
Adding extension API tests for insertSnippet.
2016-12-20 14:33:37 -08:00
Benjamin Pasero 3cefffccfc Get rid of IEventService in favour of real events (#17515) 2016-12-19 09:37:10 +01:00
Alex Dima 19291ef2c1 Fixes #16573: Ensure textEditor.options always contains all properties 2016-12-07 14:16:08 +01:00
Johannes Rieken 7b12aeb422 config-editing, api-test use strictNull-checks, #6907 2016-11-23 12:12:31 +01:00
Daniel Imms c8fc3e418e Clean up terminal api tests 2016-10-22 04:40:16 -07:00
Daniel Imms 611ed75a9b Remove wait loop in extHostTerminalService
Fixes #12434
2016-10-22 04:30:45 -07:00
Johannes Rieken 093cd8b2a3 enable integration tests again, cleanup a little of the ///-reference mess, #14059 2016-10-20 12:04:01 +02:00
Johannes Rieken 404effdd98 don't use engine-vscode: * with an old version of vscode-module, fixes #14059 2016-10-20 11:18:10 +02:00
Johannes Rieken dc7402b978 make vscode.d.ts use a declare module, #13990
* a declared module allows to have a sibling module containing experimental API
* this change also cleans up some bogous type pollution that happened because vscode used to be both, a declare module and a global namespace
2016-10-19 11:43:56 +02:00
Johannes Rieken c18db474ba clean-up util using new event, #643 2016-10-13 10:29:03 +02:00
Johannes Rieken 5f0ba23b69 add simple test for onDidChangeVisibleTextEditors, #643 2016-10-13 10:29:03 +02:00
Johannes Rieken 196c630451 tsfmt - extensions/vscode-api-tests 2016-10-08 09:41:37 +02:00
Johannes Rieken 3650ea4238 register/execute, #12337 2016-09-21 10:14:58 +02:00
Johannes Rieken 203055c6da make sure to return initial value, #11503 2016-09-19 16:28:15 +02:00
Daniel Imms 5094cf079e Add test for onDidCloseTerminal
Part of #10925
2016-09-15 12:17:39 -07:00
Johannes Rieken f5a0ea60c8 WinJS.Promise#as is not what you think it is, use wrap instead - fixes #11754 2016-09-09 16:30:50 +02:00
Daniel Imms b1174ea3d4 Fix tests from terminal API revert 2016-09-01 14:25:07 -07:00
Daniel Imms d0ec4e6a6a Fix terminal API tests 2016-08-31 12:42:32 -07:00
Johannes Rieken 182764c361 disconnect token on promise resolve/reject, cancel picker on next picker, fixes #11172 2016-08-31 09:12:28 +02:00
Alex Dima e1b98c60f6 Fixes #11145: Write integration test for new option bag in TextEditor.edit 2016-08-30 17:37:25 +02:00
Daniel Imms 1e151dd85c Add some terminal API tests
Fixes #11132
2016-08-29 14:57:34 -07:00
Johannes Rieken e3219411b7 don't test for the number of methods... 2016-08-29 11:30:18 +02:00
Johannes Rieken 45f1593479 adjust test for new member, #1396 2016-08-25 15:36:56 +02:00
Johannes Rieken e3c810ec52 test for index-access style, make object immutable, #1396 2016-08-25 12:11:27 +02:00
Johannes Rieken 9cb04a03c8 tests for undefined vs '', #10640 2016-08-18 21:57:26 +02:00
Johannes Rieken a8a920e2fc don't push code without tests... #8093 2016-08-12 12:32:15 +02:00
Johannes Rieken ff061902a7 add cancellation support for showInput and showQuickPick, #9377 2016-08-08 15:51:06 +02:00
Johannes Rieken 903ee61b39 debt - move diagnostics tests 2016-08-02 10:47:36 +02:00
Alex Dima 5d218261e8 Fixes #8379: validate column argument of vscode.previewHtml 2016-06-28 16:21:30 +02:00
Johannes Rieken a941b59fe9 add 'vscode.open' API command, fixes #566 2016-06-27 15:33:17 +02:00
Johannes Rieken d681654ac9 more test to cement current behaviour, #1396 2016-06-08 13:38:07 +02:00
Johannes Rieken e8ddfed2cc getConfiguration should not crash when section denotes a value, #1396 2016-06-08 11:56:30 +02:00
Benjamin Pasero dcd7c87af5 improve revert logic for untitled (also dispose untitled input after save) 2016-06-06 16:20:16 +02:00
Benjamin Pasero 7c483ab854 polish 2016-06-06 07:32:06 +02:00
Johannes Rieken 3d5e058652 support only custom title of preview pane, #2351 2016-06-03 10:44:31 +02:00
Johannes Rieken 68d19ce0ab use title in API test, #2351 2016-06-03 08:58:13 +02:00
Johannes Rieken 45a797bec1 check for input box options, fixes #7013 2016-05-30 10:54:15 +02:00
Benjamin Pasero 6b0f18a91f Merge branch 'master' into ben/stacks 2016-05-21 08:06:12 +02:00
Benjamin Pasero d8412d0a5a fix tests? 2016-05-19 16:33:48 +02:00
Johannes Rieken d37a76dc92 allow empty string as valid document content, fixes #6526 2016-05-19 12:45:42 +02:00
Johannes Rieken d8f6ac3501 add new api command to compare two resources, fixes #1865 2016-05-17 16:22:05 +02:00
Johannes Rieken 4458bdf5c0 merge tuples of equal Uri, #6373 2016-05-17 11:22:28 +02:00
Alex Dima 8cd47bb55e Fixes #6281: Do not truncate line number, column in position 2016-05-13 15:09:57 +02:00
Alex Dima b02c4facaf Fixes #5362: MainThreadTextEditor: disassociate code editor as soon as code editor's model changes 2016-04-28 17:15:09 +02:00
Johannes Rieken c0b4331de1 use untitled scheme without the risk of a long authority, #5949 2016-04-28 16:42:01 +02:00
Johannes Rieken 5e7f6d8c92 expose appName in env, fixes #5297 2016-04-25 12:03:50 +02:00
Benjamin Pasero 8e0ebc3a21 fix test for #5649 2016-04-24 10:24:29 +02:00
Johannes Rieken 3fc5204134 ops, bad json 2016-04-23 19:17:13 +02:00
Johannes Rieken 11eeab9943 extension test for #5649 2016-04-23 19:15:33 +02:00
Martin Aeschlimann 4fe233c752 completion and language selector test 2016-04-18 17:55:39 +02:00
Johannes Rieken 742ae2ea14 provideCodeActions get those diagnostic instances others provided, not a clone 2016-04-08 17:52:20 +02:00
Johannes Rieken 8cdf377b66 add DiagnosticsCollection#has and #get 2016-04-08 17:31:35 +02:00
Johannes Rieken aeb52ceb8d add DiagnosticsCollection#forEach 2016-04-08 16:40:12 +02:00
Johannes Rieken 78dcfe10d8 make sure that the falsy value for the activeTextEditor is undefined, #5022 2016-04-06 17:43:07 +02:00
Johannes Rieken 5f44e36593 fix issue #4945 2016-04-06 12:49:01 +02:00
Alex Dima 18c4629511 Rename gulp tasks around extensions 2016-03-01 11:40:18 +01:00
Alex Dima 1a97264011 gulpfile.plugins -> gulpfile.extensions 2016-03-01 11:40:17 +01:00
Alex Dima 58c1cdd3eb php extension compiles to commonjs 2016-03-01 11:40:14 +01:00
Benjamin Pasero 45e344292a more reliable tests in ci 2016-02-09 11:17:15 +01:00
Benjamin Pasero d743c3884c use proper version of vscode 2016-02-09 10:36:22 +01:00
Johannes Rieken eba220d39c prepare bulk editor for not having an active editor, fixes #1708 2016-02-02 09:25:58 +01:00
Johannes Rieken 6250b6531e expose EventEmitter in our API, fixes #2359 2016-01-27 12:18:19 +01:00
Johannes Rieken 8755e438f5 scheme and path or authoriy are mandated, fixes #2341 2016-01-27 11:37:20 +01:00
Johannes Rieken 74d033e92a allow to register for the same scheme twice. lifo behaviour 2016-01-25 16:12:33 +01:00
Johannes Rieken ee249f86bd api - add vscode.env.language 2016-01-25 14:49:36 +01:00
Johannes Rieken 1d47228e95 one more attempt, fixes #2217 2016-01-25 09:59:08 +01:00
Johannes Rieken 86ecfe849d fix api test 2016-01-22 09:50:52 +01:00
Johannes Rieken 5be404dd5c #1835 - onDidChangeTextEditorViewColumn event 2016-01-21 15:12:13 +01:00
Johannes Rieken c14e864b2b #1835 add viewColumn property to TextEditor, not yet decided if we also need an event to signal changes 2016-01-21 12:05:10 +01:00
Johannes Rieken a9c1895117 allow to provide ViewColumn with 'vscode.previewHtml' command 2016-01-20 15:49:01 +01:00
Johannes Rieken a6aa8ddf80 add html preview sample 2016-01-18 18:27:24 +01:00
Johannes Rieken f345c94847 virtual doc - support content provider signalling change via onDidChange event 2016-01-12 10:50:53 +01:00
Johannes Rieken 44b8ebe084 merge with master 2016-01-11 13:03:39 +01:00
Benjamin Pasero 5884fe2b83 adopt postinstall script 2016-01-08 16:43:14 +01:00
Johannes Rieken ffc21477ea add missing changes to test 2016-01-08 16:19:49 +01:00