6734 Commits

Author SHA1 Message Date
Pine Wu
3815bb15fd Update service and adopt HTML provider interface 2019-01-27 22:22:50 -08:00
Pine Wu
aad260bc7d Adopt new css provider interface 2019-01-27 19:03:09 -08:00
Matt Bierner
4fe1cdc4df
Merge pull request #66958 from flurmbo/detect-md-image-link
Detect md image link
2019-01-25 17:46:47 -08:00
Phil Marshall
4c2d33559f lazy quantifiers for linkPattern regex 2019-01-25 19:07:45 -06:00
Phil Marshall
ef66e5fab1 tweaked linkPattern regex to pass new tests 2019-01-25 18:55:42 -06:00
Phil Marshall
a7c88d79a2 updated test for switched order and new tests for image link 2019-01-25 18:46:28 -06:00
Phil Marshall
9070abedaf image link should be pushed to results before other link 2019-01-25 18:45:06 -06:00
Matt Bierner
770beca118 Update js/ts grammars 2019-01-25 15:36:17 -08:00
Matt Bierner
ff58f5083f Pull in updated coffeescript grammar
Fixes #67138
2019-01-25 15:36:17 -08:00
Matt Bierner
7f1745027b Re-use options from markdown engine instead of creating new options object
Fixes https://github.com/mjbvz/vscode-markdown-mermaid/issues/26
2019-01-25 11:48:25 -08:00
Matt Bierner
b36fddfc1f Experimentally marking a few more quick fixes as preferred 2019-01-25 11:48:25 -08:00
Phil Marshall
5fdc5c2675 factor documentlink extraction into separate function 2019-01-24 17:25:09 -06:00
Matt Bierner
0927975565 Mark more quick fixes as preferred
#62110
https://github.com/Microsoft/TypeScript/issues/29450
2019-01-24 12:00:40 -08:00
Matt Bierner
4a39da971e Extend disposable in more places 2019-01-24 12:00:40 -08:00
Matt Bierner
e6f93f3074 Extract isPreferredFix 2019-01-24 12:00:40 -08:00
Dipen Ved
b80da8bb5a Show the folder path a file is in, in title of the window (#66746)
* Add active folder feature

* use urilabel instead

* use resource instead of path

* show empty instead for activeFolderShort
2019-01-24 18:37:57 +01:00
Pine Wu
f053101c41 CSS semantic selection. Fix #65925 2019-01-23 16:10:56 -08:00
Pine Wu
0c579d7ac8 Run safe for html selectionRange 2019-01-23 15:10:12 -08:00
Pine
fc0002cb66
Merge pull request #67014 from Microsoft/octref/html-selection
Html semantic selection. Part of #65925
2019-01-23 12:16:09 -08:00
Pine Wu
c47d3d4d46 Update service 2019-01-23 12:15:20 -08:00
Pine Wu
d3c14cf0af Move logic to service 2019-01-23 12:11:29 -08:00
Matt Bierner
f4cd44f635
Merge pull request #66997 from aeyerstaylor/more-lgtm-fixes
Fix another LGTM.com warning
2019-01-23 11:51:10 -08:00
alexet
16d3d13c5b Remove pointless conjucntion in documentTracker 2019-01-23 15:46:23 +00:00
Martin Aeschlimann
c798b53596 revert unintended change 2019-01-23 13:57:58 +01:00
Martin Aeschlimann
6ded24bc60 make color contribution point dynamic 2019-01-23 12:41:40 +01:00
Phil Marshall
b1de159292 added test for markdown image link underline 2019-01-22 18:46:55 -06:00
Phil Marshall
d372fa0697 md extension should underline images used as link description 2019-01-22 18:46:46 -06:00
Matt Bierner
7b095ea781 Pick up TS 3.3 rc
#66175
2019-01-22 15:23:29 -08:00
Matt Bierner
508f43166b Rename source.autoFix to source.fixAll
Part of #62110

`autoFix` is a confusing term since we have a `auto fix` command now. Using `fix all` as this term is used by many linters for this type of operation
2019-01-22 14:34:43 -08:00
Matt Bierner
73dfd92e65 Fix spelling 2019-01-22 14:34:43 -08:00
Matt Bierner
c800831ffc Update js/ts grammar 2019-01-22 14:34:43 -08:00
Pine Wu
d1690ad706 Improve granularity 2019-01-22 11:25:41 -08:00
Pine Wu
82aab5a16e HTML selections 2019-01-21 22:15:39 -08:00
Matt Bierner
f929531dfb Add CodeActionKind.intersects
Fixes #66881
2019-01-21 18:04:01 -08:00
Matt Bierner
c994fc20fa Apply auto fix on save actions sequentially and make sure we request fixes of the specific type we are interested in 2019-01-21 17:16:06 -08:00
Matt Bierner
ee65a242a9 Gate auto fix for TS to use an undocumented experimental TS setting
We likely do not want to enable autofixes until we have proper TS support: https://github.com/Microsoft/TypeScript/issues/29452
2019-01-21 17:16:06 -08:00
Matt Bierner
4e6bd4aedd Prototype autofix source code action
Part of #62110

* Adds a new `CodeActionKind`: `source.autoFix`.
* Implements a simple auto fix provider for typescript. This provider can auto fix `implement interface` and `spelling` errors (provided there is only a single valid fix listed)

The provider is likely not something we actually want to check it (especially in its current state), we should ask TS for proper autoFix support
2019-01-21 17:16:06 -08:00
Matt Bierner
4f8d546aa7 De-duplicate "fix all" quick fixes across requests for multiple diagnostics in selection range
For https://github.com/Microsoft/typescript-tslint-plugin/issues/49
2019-01-21 17:15:49 -08:00
Matt Bierner
59ce7f3b28 Fix markdown preview code highlighting
Fixes #66772
2019-01-21 14:09:30 -08:00
Matt Bierner
bcc2281e45 Rename CodeAction.canAutoApply -> CodeAction.preferred
Part of #62110

Use the more generic name as suggested in https://github.com/Dart-Code/Dart-Code/issues/1393. This makes the intent of the field more clear and also allows us to extend the concept of preferred code actions to refactorings and other classes of code actions

Experimentally also allows a `preferred` value for `apply` when configuring code aciton keyboard shortcuts. This applies the preferred code action returned from the list of code actions returned
2019-01-21 14:09:30 -08:00
Pine Wu
02b7e03b72 Update service 2019-01-18 11:16:20 -08:00
Pine Wu
9a3ef8c4b2 Load html data using new API per Microsoft/vscode-html-languageservice#45 2019-01-18 11:09:34 -08:00
Benjamin Pasero
af010d9cf7
Merge branch 'master' into regex-fixes 2019-01-18 12:37:18 +01:00
Pine Wu
e0a3f26e07 Emmet dependency for #66013 2019-01-17 13:18:22 -08:00
Martin Aeschlimann
54adadd72c fix lgtm warnings 2019-01-17 20:53:18 +01:00
Ubuntu
35eae99ec3 Fix more lgtm.com issues 2019-01-17 18:06:23 +00:00
Pine Wu
926cfe1c4a Update css language service for #66519 and #66637 2019-01-16 18:36:11 -08:00
Matt Bierner
1904cd8d84 Prototype auto fixable quick fixes
Part of #62110

- Adds a new field `canAutoApply` to code actions. This field indicates that a code action can be applied without additional user input. For quick fixes, this should be set if the fix properly addresses the error

- Enable auto fixes for TS spelling errors

- Added a `editor.action.autoFix` command to triggers auto fixes at the current cursor position
2019-01-16 17:56:22 -08:00
Pine Wu
ba0d1454e7 Update emmet-helper for #65455 2019-01-16 15:40:30 -08:00
Pine Wu
5ac02a0910 Update emmet-helper for #63384 and #62855 2019-01-16 11:13:25 -08:00