Commit Graph

20 Commits

Author SHA1 Message Date
Johannes Rieken
a2a077b088 optionally allow to specify selection at which to insert a snippet, #19116 2017-01-25 15:56:08 +01:00
Matt Bierner
5bf8cc7618 Add Markdown Preview to Editor Scroll Syncronization
Adds an initial implementation of scroll synrconization from the markdown preview to the editor. When the preview is scrolled, automatically scrolls the editor to reveal the same location.

This required adding a new supported reveal type `AtTop` in our API. This is already supported and used internally, but not really exposed in the public apis (except for the `revealLine` command).
2017-01-22 00:47:06 -08: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
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
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
f2c47075c8 tslint: less implicit any use 2016-12-30 19:28:08 +01: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
Joel Day
38a3a1a239 Adding insertSnippet to TextEditor extension API. 2016-12-16 00:50:35 -08:00
Alex Dima
19291ef2c1 Fixes #16573: Ensure textEditor.options always contains all properties 2016-12-07 14:16:08 +01:00
Johannes Rieken
6681a2a7d6 tsfmt - src 2016-10-08 09:53:13 +02:00
isidor
1a15210f01 first set code editor, then setConfiguration
fixes #12879
2016-10-07 10:30:49 +02:00
Alex Dima
d2060eee32 Fixes #12730: "editor.lineNumbers" should use "on", "off", and "relative" 2016-09-27 23:20:13 +03:00
Alex Dima
7f0e2adacf Introduce TextEditorLineNumbersStyle for TextEditorOptions.lineNumbers 2016-09-27 23:10:43 +03:00
Alex Dima
a8894fbf0e Add API to change editor's lineNumbers option 2016-09-27 01:14:24 +03:00
Alex Dima
05e9b96033 Fixes #8096: Add options to TextEditor.edit that allows to control the undo/redo behaviour around the edit 2016-08-26 17:03:05 +02:00
isidor
b4937be487 mainThreadEditorsTracker: skip editors with models not in the model service 2016-08-05 15:13:40 +02:00
Johannes Rieken
16926be391 mirror 'source' when cursor changes, #8093 2016-07-14 12:34:51 +02:00
Alex Dima
c8ba3022eb Fixes #8205: Make emmet edits undoable in one step 2016-06-30 12:41:57 +02:00
Alex Dima
d285fe05e1 Split up ext host <-> main thread communication to separate files 2016-06-27 14:59:54 +02:00