Commit Graph

32 Commits

Author SHA1 Message Date
Johannes Rieken
c47296282a type converters, use namespace for ViewColumn 2018-05-04 18:49:40 +02:00
Johannes Rieken
9f6053242f type converters, use namespace for Position 2018-05-04 18:49:39 +02:00
Johannes Rieken
dfb070c277 type converter, use namespace for Range 2018-05-04 18:49:39 +02:00
Johannes Rieken
069bbd81e4 type converters, use namespace for Selection 2018-05-04 18:49:39 +02:00
Matt Bierner
27a17935b8 Move webview to use onDidChangeViewState event
After discussions, we settled on making the webview private unlike `TextEditors`. This means that webview events will live on the webview object itself

Fixes #44571
2018-03-20 14:30:39 -07:00
Alex Dima
20ed3d9632 Fixes #44424: Add proposed API - TextEditor.visibleRanges 2018-02-26 21:28:09 +01:00
Matt Bierner
2038b8fc7f Webview API prototype 3 (#44307)
* Webview API prototype 3

Part of #43713

Third try at refining the webview api. This pass reworks  #44165.  Major changes:

- Adds an `id` field to webviews. The id is provided by the extension and identifies the webview. It is used with the new event handling apis.

- Adds a new `onDidChangeActiveEditor` api. This is similar to `onDidChangeActiveTextEditor` but is also fired when you change webviews. It replaces the old `onFocus` and `onBlur` events on the webview itself

- Adds an `onDispose` event ot webviews. This is fired when a webview is closed by the user

- Perist webview state when the editor group changes. This is enabled for all webviews, not just those with keep alive.

* Throw error when trying to access disposed webview

* Improving webview documentation

* Clean up dispose management

* Throw if we receive a bad handle

* Move more event handling to input

* Simplify input updating

* Remove extra container property

* Fixing md security alert button

* Remove extra update container call

* Restore syncing of preview to active editor

* Fixing posting to webview

* Debounce preview updates

* Remove previewUri

* Enable direct window.postMessage instead of window.parent.postMessage

* Fixing scroll position not preserved when updating previews

* Revert parent.postMessage change.

Old behavior was correct

* Properly hide webview container on tab switch

* Make sure we only handle scroll events for the correct document

* Don't try setting negative scroll

* Revert vs code whitespace change
2018-02-26 10:06:50 -08:00
Matt Bierner
e1f33fbb07 Rename ext host / main thread editor to textEditor
Rename to make it more clear that these APIs are for `vscode.TextEditor`
2018-02-15 15:32:16 -08:00
Alex Dima
54e7055c12 Rename IModel to ITextModel 2018-01-04 16:44:40 +02:00
Alex Dima
0721df783d Extract model types out of editorCommon.ts 2018-01-04 16:27:58 +02:00
Alex Dima
1ec2438d57 Remove usage of CustomMarshaller for MainThreadEditors (#40169) 2017-12-13 17:01:24 +01:00
Matt Bierner
d8e926be97 Mark most private static constants as private static readonly 2017-11-20 15:18:52 -08:00
Alex Dima
324650128e Add fast path for vscode.TextEditor.setDecorations 2017-10-16 22:48:45 +02:00
Johannes Rieken
229093ec9e debt - remove unused 'usesCommandLink' telemetry 2017-10-02 14:40:03 +02:00
kieferrm
08d8f0f9f6 indentation changes 2017-09-25 18:36:43 -07:00
kieferrm
fbb3e25987 omit endPoint where it defaults to none 2017-09-25 18:36:43 -07:00
kieferrm
a65363876a more GDPR classification 2017-09-25 18:36:43 -07:00
Johannes Rieken
0417a75e4f know decorations using command links v2, #29076 2017-08-23 12:23:39 +02:00
Johannes Rieken
eb4e09ba69 Revert "know decorations using command links, #29076"
This reverts commit 94c4b25a47.
2017-08-23 11:54:45 +02:00
Johannes Rieken
94c4b25a47 know decorations using command links, #29076 2017-08-23 11:50:58 +02:00
Ron Buckton
066a2bb141 Update Promise definition (#30268)
* Update definition of Promise in winjs.base.d.ts.

* Update to new Promise declaration

* Fix remaining errors.
2017-08-18 00:02:57 -07:00
Johannes Rieken
b8e8c435cc ignore dispose-errors, fixes #30578 2017-08-16 12:00:51 +02:00
Felix Becker
dbe0f89264 Always reject Promises with Error instances 2017-06-26 15:24:41 +02:00
Johannes Rieken
b548d2128d split things up into api/node and api/electron-browser 2017-05-12 11:24:22 +02:00
Alex Dima
974f8aca31 Fixes #20757: Detect overlapping ranges in the extension host, no need to call into renderer process to find out the edits are illegal 2017-04-27 12:48:58 +02:00
Benjamin Pasero
b34f17350f Un-allowed double quoted imports (for #25451) 2017-04-26 19:13:12 +02:00
Matt Bierner
6147b54439 Fix TS 2.3.1 Compiler Errors in VSCode src/workbench (#25249)
TS 2.3.1 introduced a breaking change by [switching to covariant types for callbacks](https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#covariance-in-callback-parameters). This change tries to fix these compiler errors in the workbench codebase
2017-04-25 08:20:25 -07:00
Alex Dima
f3be941164 Move IRange out of editorCommon 2017-04-18 17:33:22 +03:00
Alex Dima
5aea732093 Move editor options out of editorCommon 2017-04-18 16:30:09 +03:00
Joao Moreno
acb29bf425 registerDiffInformationCommand instead of computeDiff 2017-03-24 15:22:43 +01:00
Johannes Rieken
c01a616062 debt - allow to somewhat work with a closed editor 2017-03-23 09:53:19 +01:00
Johannes Rieken
1239cebb70 Merge branch 'joh/editors' 2017-03-06 12:40:47 +01:00