Commit Graph

4551 Commits

Author SHA1 Message Date
Matt Bierner cfcc5c8121 Annotate param with jsdoc type 2018-02-26 17:46:25 -08:00
Matt Bierner 68c21cde76 Prevent out of range line acecss on markdown preview scrolling when user scrolls to end of document 2018-02-26 17:17:22 -08:00
Matt Bierner 6b85d3afdc Fix markdown show preview 2018-02-26 17:09:23 -08:00
Matt Bierner cfbebc3faf Fix bad merge 2018-02-26 16:52:30 -08:00
Matt Bierner 2279b4d252 Scroll sync markdown editor with markdown preview (#44454)
Fixes #19459

Syncs the markdown preview's viewport with the markdown editor's using the proposed visible ranges API
2018-02-26 16:46:54 -08:00
Matt Bierner 5f25d3c167 Update js/ts grammars 2018-02-26 16:35:57 -08:00
Matt Bierner 6b743d8c61 Prevent multiple markdown previews of the same type in the same editor group 2018-02-26 16:35:57 -08:00
Pine Wu e22aac5b52 correctly handle new value and range from html service 2018-02-26 16:33:03 -08:00
Pine Wu 5a67acfb17 Avoid running pathCompletion in languages other than html 2018-02-26 16:30:29 -08:00
Matt Bierner b34585bc6d Make sure we dispose of markdown preview on webview dispose 2018-02-26 15:51:15 -08:00
Matt Bierner 4d95590a81 Use onDid* type event names in webview 2018-02-26 15:51:15 -08:00
Matt Bierner 6f5f757479 Use fspath for reveal line to fix drive letter case differences 2018-02-26 15:11:51 -08:00
Pine Wu e6200af9a0 Merge branch 'master' of github.com:Microsoft/vscode 2018-02-26 15:04:39 -08:00
Pine Wu 3b5a1c3907 address ramya's feedback on html completion participants 2018-02-26 15:04:32 -08:00
Ramya Achutha Rao 57572a12e9 Use latest emmet helper 2018-02-26 14:59:25 -08:00
Alex Dima 47d249b651 More fixing invalid JSON in typescript extension that breaks the build 2018-02-26 23:53:30 +01:00
Alex Dima e1dc91fc04 Fix invalid JSON in typescript extension that breaks the build 2018-02-26 23:45:53 +01:00
Martin Aeschlimann 44a45f8bad typescript.experimental.syntaxFolding (#44444) 2018-02-26 14:06:51 -08:00
Christof Marti 8eddfa2cfb Fix TypeScript features in Interactive Playground (fixes #44172) (#44443) 2018-02-26 14:05:24 -08:00
Martin Aeschlimann 7e97f98c41 compile errors in html 2018-02-26 22:06:44 +01:00
Matt Bierner 26cbbea694 Add webview.show method to show a webview in a given group
Fixes #44430
2018-02-26 12:56:23 -08:00
Matt Bierner 205143c088 Move onDidChangeTextEditorSelection into Markdown preview 2018-02-26 12:56:23 -08:00
Matt Bierner 95b3bc9af4 Move onDidChangeTextDocument into MarkdownPreview 2018-02-26 12:56:23 -08:00
Matt Bierner 037747734f Hook up markdown preview onDispose 2018-02-26 12:56:23 -08:00
Matt Bierner 4f00d4c520 Make resource private in markdown preview 2018-02-26 12:56:22 -08:00
Matt Bierner 1d864d8419 Move webview creation into MarkdownPreview 2018-02-26 12:56:22 -08:00
Matt Bierner e6105ab277 Add a way to 'pin' a markdown preview
Fixes #44429
2018-02-26 12:56:22 -08:00
Matt Bierner 5627c11660 Set markdown context based on scheme 2018-02-26 12:56:22 -08:00
Martin Aeschlimann 292a290e3f Rename built-in syntax and snippet extensions to "Language Basics". Fixes #44241 2018-02-26 21:27:22 +01:00
Martin Aeschlimann 033d21d196 Change python block comment to """. Fixes #42767 2018-02-26 21:23:19 +01:00
Martin Aeschlimann f7167ccda7 Merge pull request #44144 from Microsoft/octref/html-path-completion
Html path completion. Fix #2037
2018-02-26 20:55:13 +01:00
Martin Aeschlimann 9ca6bf4743 vscode-html-languageservice: 2.0.17-next.3 2018-02-26 20:54:24 +01:00
Martin Aeschlimann 13dfd2dbf4 Merge branch 'master' into octref/html-path-completion 2018-02-26 20:53:52 +01:00
Martin Aeschlimann 4f5b8dcfaf rev version 2018-02-26 20:53:30 +01:00
Martin Aeschlimann 46d4c16ef9 fix vscode-languageserver version 2018-02-26 20:43:10 +01:00
Martin Aeschlimann a9d90af1a7 Add tests, update version 2018-02-26 20:06:24 +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
Dirk Baeumer 7ddd37c10e Add proper readme, images and localization to grunt, gulp and jake 2018-02-26 17:38:57 +01:00
Joao Moreno dbbfa5d3a5 delete diff extension
fixes #44412
2018-02-26 17:25:09 +01:00
João Moreno 635f82fa7e Merge pull request #42831 from Microsoft/unused-variables
Re-enable the unused variables tslint rule for the hygiene task fixes #42157
2018-02-26 16:06:20 +01:00
Benjamin Pasero a23edada50 debt - avoid deprecated Buffer ctors 2018-02-26 13:09:54 +01:00
Christof Marti 264d0c2ec8 Name, description, icon for merge-conflict extension (#43978) 2018-02-26 09:48:34 +01:00
Joao Moreno 03be224fa4 use links in messages 2018-02-26 09:11:23 +01:00
Pine Wu 4eca3c3d89 move to textedit 2018-02-25 19:27:34 -08:00
Pine Wu 18aed804c5 make sure test is included 2018-02-25 19:26:33 -08:00
Matt Bierner ee558b001c Refactoring
Extract shouldEnableDotCompletions

Extract getConfigurationForResource

Reorder methods

Format sig
2018-02-23 17:25:47 -08:00
Matt Bierner a269045780 better scope try catch in provideCompletionItems
We only want to swallow exceptions around the request itself
2018-02-23 17:11:30 -08:00
Matt Bierner ec3e57e946 Remove TS 2.6.1 import path workaround since this was fixed in TS 2.6.2+ 2018-02-23 17:04:55 -08:00
Matt Bierner a16e650dcf Remove unused cast 2018-02-23 17:01:00 -08:00
Matt Bierner b0add1e84f Use vscode namespace instead of specific imports 2018-02-23 16:57:44 -08:00