Commit graph

4916 commits

Author SHA1 Message Date
Ramya Achutha Rao
fe9d9532ea Absorb upstream bug fix for #46511 2018-04-11 21:34:22 -07:00
Matt Bierner
556fa03cf3 Add source code action kind
Fixes #47621

Adds the concept of a source code action that applies to an entire file. Does not show these actions in the lightbulb menu by default
2018-04-11 15:34:33 -07:00
Rob Lourens
93582ce6de Fix #47228 - Don't autofix JSON incorrectly when the user has only typed a key and colon 2018-04-11 14:32:54 -07:00
Martin Aeschlimann
71300ed48d
Merge pull request #47520 from DustinCampbell/update-csharp-grammar
Update C# TextMate grammar with latest bug fixes
2018-04-11 22:09:56 +02:00
Matt Bierner
8cb7e80544
Split out Webview from WebviewEditor in proposed API (#47370)
* Split out `Webview` from `WebviewEditor` in API

**Problem**
The current proposed `Webview` interface has a few methods and properties that are very editor specific, such as `.reveal` and `.onDidChangeViewState`. These properies will not make sense if we ever allow webview to be displayed in other locations, such as in widgets

**Proposal**
Split the concepts of a `Webview` and of a `WebveiwEditor`. A webview is the html content itself. A `WebviewEditor` is an editor that displays a `Webview`

This would allow us to easily add other types of `Webview` owning objects in the future without having to document that some methods only apply when a webview is used as an editor vs as a widget
2018-04-11 11:49:02 -07:00
Ramya Achutha Rao
e6b61067f2 Validate surrounding text before providing emmet completions in jsx/xml Fixes #47612 2018-04-10 16:14:56 -07:00
Matt Bierner
9aef83c000 Make sure js/ts blocks folds show ending bracket
Fixes #47240
2018-04-10 14:42:10 -07:00
Matt Bierner
fee0dde012 foldering -> folding 2018-04-10 14:42:10 -07:00
Ramya Achutha Rao
f17b5ad659 Emmet can return empty array for css #47429 2018-04-10 10:16:24 -07:00
Matt Bierner
424b95bfcf Don't upgrade ts unused diagnostics
These diagnostics should only ever be downgraded from errors to warnings, not ever upgraded from a lower level to warnings
2018-04-09 15:07:59 -07:00
Matt Bierner
2cbe56f39d Update markdown grammar
Pulls in new header scopes for #47113
2018-04-09 14:55:34 -07:00
Ramya Achutha Rao
a786ed344e Cannot assign to read only property in nested settings #47316 2018-04-09 14:38:03 -07:00
Dustin Campbell
39e3073bf9 Update C# TextMate grammar with latest bug fixes
This PR includes the following fixes for the C# TextMate grammar:

* Comments are now allowed after checked and unchecked statements
(https://github.com/dotnet/csharp-tmLanguage/issues/104)
* 'dynamic' is now highlighted as a built-in type keyword (https://github.com/dotnet/csharp-tmLanguage/issues/26)
* Single-line comments with four slashes (i.e. ////) are now highlighted properly
(https://github.com/dotnet/csharp-tmLanguage/issues/100)

Thanks to (@Muchiachio](https://github.com/Muchiachio) for contributing these fixes!
2018-04-09 12:48:20 -07:00
Matt Bierner
8582f39044 Pick up new TS insides 2018-04-09 10:35:24 -07:00
Matt Bierner
52c293a050 Fix webview type name casing 2018-04-06 17:09:41 -07:00
Matt Bierner
d0bc1c3fe4 Updating js/ts grammars 2018-04-06 17:08:40 -07:00
Matt Bierner
b641742452 Targeted fix for markdown special character links in #37079
Fixes #37079
2018-04-06 16:06:45 -07:00
Matt Bierner
5b90e42e3c Make sure we don't try posting mesages to disposed markdown previews
Fixes #45553
2018-04-06 16:06:45 -07:00
Johannes Rieken
05c70a3ad8 add api-test, #30075 2018-04-06 11:08:12 +02:00
Matt Bierner
c14e30aeb4 Show error when webview restore fails 2018-04-05 19:18:55 -07:00
Matt Bierner
afc08ae477 Make markdown preview revive wait on content populated 2018-04-05 10:24:07 -07:00
Matt Bierner
9755b46bf6 Fix double click markdown editor when in split view
#47188
2018-04-05 10:16:39 -07:00
Rob Lourens
707d5ecd0d Fix basic PHP extension name 2018-04-04 11:13:59 -07:00
Matt Bierner
dd21d3520a
Add webview restoration api proposal (#46380)
Adds a proposed webiew serialization api that allows webviews to be restored automatically when vscode restarts
2018-04-03 18:25:22 -07:00
Martin Aeschlimann
21ec23c075 [css] enable strict on server 2018-04-03 22:03:08 +02:00
Martin Aeschlimann
f57c35c0f2 Languages -> Programming Languages (for #47103) 2018-04-03 14:30:02 +02:00
Martin Aeschlimann
4bb262df0c [powershell] invalid auto-closing pairs in language-configuration.json. Fixes #46988 2018-04-03 11:58:07 +02:00
João Moreno
5c481a83cc
Merge pull request #47052 from floriantraber/46860
#46860 make git delete popup modal
2018-04-03 09:04:32 +02:00
Matt Bierner
5900899b83 Fix quick suggestions not shown in ${| template string
Fixes #37176
2018-04-02 18:43:28 -07:00
Matt Bierner
fd182746cb Fix can't change markdown security level for directly opened file
Fixes #46424
2018-04-02 16:29:49 -07:00
Matt Bierner
85d01bfd81 Update js/ts grammars 2018-04-02 16:08:25 -07:00
Matt Bierner
f4010646aa Update markdown grammar
Fixes #46794
2018-04-02 16:08:08 -07:00
Matt Bierner
0dd7c793ae Fixes js/ts quick fixes
Fixes #47002

Use the correct grouping for the not null assertion
2018-04-02 11:56:42 -07:00
Florian Traber
67b3957473 #46860 make git delete popup modal 2018-04-01 09:39:41 +02:00
Gus Hurovich
1b4886dda9 Adding setting for disabling partial parsing in stylesheets (#46979)
* Adding setting for disabling partial parsing in stylesheets

* Added description
2018-03-30 11:24:54 -07:00
Gus Hurovich
e252da3861 Adding tests for stylesheets partial parsing (#46977) 2018-03-29 17:48:32 -07:00
Johannes Rieken
df7ee603cb follow up on #46880 2018-03-29 15:29:51 +02:00
Martin Aeschlimann
11f5d549db [css] path completion sometimes only works for one folder level. Fixes #46722 2018-03-29 15:20:39 +02:00
Ramya Rao
2de91fdce5
Css partial parse refactoring (#46894)
* Refactor parsePartialStylesheet

* More refactoring

* To avoid errors, parse line comments char by char and no when getting to previous line.

* Revert "To avoid errors, parse line comments char by char and no when getting to previous line."

This reverts commit f353dba4c7.

* Fix for inline comments inside block comments
2018-03-28 18:12:07 -07:00
Martin Aeschlimann
4b55e2d7de [css] update service 2018-03-28 23:08:29 +02:00
Martin Aeschlimann
d9d762d1ce [css] .asar file breaks CSS path completion. Fixes #46638 2018-03-28 21:41:21 +02:00
Martin Aeschlimann
b08ba054ba [folding] Folded regions are lost when starting multi line comment Fixes Microsoft/vscode#46655 2018-03-28 16:06:10 +02:00
Martin Aeschlimann
cc81646edf Rename editorActiveLineNumber.foreground. Fixes #46848 2018-03-28 15:44:25 +02:00
Joao Moreno
42c882151f only detect git encoding if files.autoGuessEncoding is enabled
fixes #46826
2018-03-28 12:52:10 +02:00
Joao Moreno
dafdde11c9 fixes #45911 2018-03-28 09:56:58 +02:00
Gus Hurovich
95b0cffe72 Fix for #46745 (#46788)
* Fix for #46745

* If { found in selector, don't partial parse.
Adding sanity checks
2018-03-27 18:32:46 -07:00
Ramya Achutha Rao
7cf6969bd0 Absorb upstream fix for #45790 2018-03-27 17:17:21 -07:00
Matt Bierner
c059826ba2 Have distinct js/ts commands for organize imports
Fixes #46701
2018-03-27 14:33:55 -07:00
Matt Bierner
ddd967559b Pick up TS 2.8.1 2018-03-27 14:33:55 -07:00
Ramya Achutha Rao
c2dc46c1ce Offset is relative to position when finding comment 2018-03-27 12:28:20 -07:00