Commit Graph

1509 Commits

Author SHA1 Message Date
Joao Moreno
31997b32c3 Revert "Only apply TS Dot Accept Suggestion if Previous Character is a valid identifier (#18063)"
This reverts commit 41cb5ee5ae.
2017-01-10 10:11:52 +01:00
Matt Bierner
db0d72e663 Fixes #18347 2017-01-09 20:19:13 -08:00
Martin Aeschlimann
6d906aef32 documentLinkProvider should return an object (for #17289) 2017-01-09 23:17:29 -04:00
Martin Aeschlimann
5df445b978 Cannot read property 'length' of undefined. Fixes #18293 2017-01-09 22:47:43 -04:00
Martin Aeschlimann
d12f865650 [jsx] Automatic HTML indentation and cursor position in JSX. Fixes #18284 2017-01-09 21:47:42 -04:00
Matt Bierner
de6c80e882 Merge branch 'generate-line-numbers-in-md-output' 2017-01-09 15:06:07 -08:00
Matt Bierner
7baf789eef Generate Line Number in Markdown Output HTML
Adds basic line number data to the output html of the markdown renderer
2017-01-09 15:04:47 -08:00
Matt Bierner
450778c177 Exclude Definition From TS code lens (#18338)
Fixes #18335

Removes the definition itself from the list of references shown in the TS code lens
2017-01-09 11:37:15 -08:00
Matt Bierner
1e2059c676 Fix nls command title 2017-01-09 10:59:43 -08:00
Matt Bierner
41cb5ee5ae Only apply TS Dot Accept Suggestion if Previous Character is a valid identifier (#18063)
* Only apply TS Dot Accept Suggestion if previous character is a valid identifier char

Fixes #17825
Fixes #17770
Fixes #17584

**Bug**
When typing two or more `.` in a row, we end up unexpectedly accepting suggestions in TS files. This is caused by the custom keybinding that ts registers for `.`.

**Fix**
Only accept the suggestion on `.` if the previous character is a valid identifier character.

* Move title to nls
2017-01-09 10:43:59 -08:00
Benjamin Pasero
f9ce2e16fc fix compile errors 2017-01-09 18:13:23 +01:00
Alex Dima
e664ba622d Fixes #18262: interpret languages with empty aliases array as languages that don't want to show up in the picker 2017-01-09 12:32:39 +01:00
Alex Dima
88c45c4e57 Merge remote-tracking branch 'origin/master' into alex/tokenization 2017-01-09 11:19:26 +01:00
Martin Aeschlimann
c53041b780 [html] update jsbeautify (for #2204) 2017-01-07 23:44:02 -04:00
Martin Aeschlimann
be716e241f [html] attribute on separate line formatting. Fixes #2204 2017-01-07 22:48:35 -04:00
Martin Aeschlimann
ca0bf48d75 [json] update service 2017-01-07 22:46:23 -04:00
Martin Aeschlimann
d826ad6e4f [jsx][tsx] Wrong type of comments for React code. Fixes #6461 2017-01-07 10:57:37 -04:00
Matt Bierner
265803b0c9 Add TypeScript References Code Lens Provider (#18205)
Fixes #18054

Adds an references code lens provide for JS and TS
2017-01-06 15:18:06 -08:00
Alex Dima
51b5727501 Merge remote-tracking branch 'origin/master' into alex/tokenization 2017-01-06 17:06:26 +01:00
Matt Bierner
83db3cad0c Fix Autolink Syntax Highlighting in Markdown (#18201)
Fixes #18197

**Bug**
Autolinks that start a line in markdown are currently parsed as as html content

**Fix**
Restrict the html element parser a little more so that we don't match tags html tags that look like `<scheme:...>`
2017-01-05 17:03:39 -08:00
Matt Bierner
9eb91d2de4 Show Error Message if TypeScript Settings Update Fails (#18130)
Fixes #18127

Show error messages if the workspace or user settings update fails
2017-01-05 12:33:29 -08:00
Matt Bierner
5cf85c73d5 Use Better Range When Formatting TS Quick Fixes (#18135)
**Bug**
TS 2.2 includes a number of new code actions, such as implementing missing interface methods on classes. TS returns these in unedited form, so we have to format the document after applying these fixes. This formatting is not always correct using the current logic.

**Fix**
Try to determine the range to format using the set of text edits that TS returns to us. This is not perfect, but it should better match the actual edit that we make using the quick action
2017-01-05 12:32:53 -08:00
Matt Bierner
97ba3fddce Pick up ts 2.1.4 (#18061) 2017-01-05 12:30:42 -08:00
Alex Dima
ebc43b3e8b Merge remote-tracking branch 'origin/master' into alex/tokenization 2017-01-05 12:31:43 +01:00
Alex Dima
90d74c59aa Use hex colors in themes integration tests 2017-01-05 09:47:08 +01:00
Matt Bierner
80481edbdf Remove logging statement 2017-01-04 15:43:52 -08:00
Alex Dima
10f68352a0 Themes integration tests 2017-01-04 22:44:08 +01:00
Matt Bierner
a2ae9109e5 Fix markdown syntax highlighting for script or style html elements with blank lines (#18116)
Fixes #18069

**Bug**
Script and style blocks inside markdown cannot contain blank lines

**fix**
Add a specific rule for script, style, and pre blocks according to the common mark spec: http://spec.commonmark.org/0.27/#html-block
2017-01-04 11:44:07 -08:00
Martin Aeschlimann
939f0876c9 [html] setting to disable script & style validation 2017-01-03 20:37:48 -04:00
Martin Aeschlimann
420de32d3c [html] can not disable angular proposals anymore 2017-01-03 20:37:47 -04:00
Martin Aeschlimann
e9f15e6495 [html] indentation after scripts broken 2017-01-03 20:37:47 -04:00
Matt Bierner
31e1aebf30 Fix markdown colorization tests 2017-01-03 11:15:05 -08:00
Josh Peng
b9a362a185 Improve Markdown code block tokens (#17591)
* Improve Markdown code block tokens

Code blocks without a language weren't tokenized.
Code blocks didn't have their ending ``` punctuation tokenized.
Code blocks used to only have one token. Now each block has the following tokens available for syntax highlighters:
- Starting and ending ``` punctuations
- Code block's language setting
- Code snippet

* Variable whitespace for MD code block ``` token

Allow for variable amount of whitespacing before ``` code blocks

* Reorder raw blocks

Raw blocks were preventing tokenizing as languaged blocks. Putting them on bottom resolves this.

* Fix MD block detection when following paragraph

Used to require a new line inbetween ``` code blocks and preceding paragraph text.

* Prevent broken language grammar leaks in MD fences

Prevents leaks in MD code fences while also capturing the closing fence punctuations.

* Update Markdown tokenizer test file
2017-01-03 10:03:16 -08:00
Alex Dima
8998f7a53d Adopt new vscode textmate 2017-01-03 15:36:08 +02:00
Martin Aeschlimann
a606a5a7bc Update c grammar to atom/language-c@0d0f323 (2016-12-07) 2016-12-30 21:39:10 -04:00
Johannes Rieken
bc1b1f1881 Merge pull request #17423 from mjbvz/fix-package-json-auto-complete
Fix package.json Auto complete
2016-12-30 13:50:14 +01:00
Matt Bierner
e753f86984 Use Word Based Completion Range by Default in TS (#17918)
Fixes #17906

**bug**
To support completion items that span multiple words, I added extra logic in 1.9 insiders to use the word prefix to compute the completion range. This introduced a few regressions for completions that do start with the replacement.

**fix**
Use the old, word based range logic by default. Use the prefix completion if it is longer.
2016-12-29 15:26:23 -08:00
Matt Bierner
371f5e449f Pick up TS 2.1.5 12/29 insiders (#17915) 2016-12-29 15:47:20 -06:00
Martin Aeschlimann
9486bf472c [make] Could you add *.mk file extension to be highlighted as a Makefile into default VS Code distribution? Fixes #17734 2016-12-28 23:06:42 -04:00
Martin Aeschlimann
c923c91476 [jade] Adaptation of autoClosingPairs and surroundingPairs for Jade extension. Fixes #17745 2016-12-28 23:00:35 -04:00
Martin Aeschlimann
b09e1df106 [fsharp] Updated fsharp.json to ionide/ionide-fsgrammar@864bfd9 (2016-12-21). Fixes #17820 2016-12-28 22:51:46 -04:00
Martin Aeschlimann
ac16d37827 [ts/js] update grammar 2016-12-28 15:11:12 -04:00
JimiC
bd0fb19e9f Change order of Diff extensions.
Fixes visual issue with associated images.
2016-12-21 16:26:51 +02:00
Benjamin Pasero
8b82f0de8f fix compile issue 2016-12-21 09:28:14 +01:00
Matt Bierner
d413a67e92 Pick up 12/20 ts drop (#17635) 2016-12-20 18:46:58 -08:00
Matt Bierner
1505b3dcbf Monitor Typings Acqusition Events for TS Completion Item Provider (#17098)
Monitors the status of typings acqusition from TS. If we are acquiring typings, in the completion item provider, return an error result that informs the user that the results are incomplete. Typings acqusition is currently capped at 30 seconds per typings install event so that we don't block intellisense forever if something goes wrong
2016-12-20 18:33:30 -08:00
Matt Bierner
04f541160e Map TS completion to Class CompletionItemKind (#17571) 2016-12-19 16:52:54 -08:00
Matt Bierner
9101a4a875 Add TS Code Action Provider (#16299)
* Initial work using ts2.1 and TS Code Actions

* Clean up implementation and fix a few issues

* Gate provider to ts2.1+

* Switch gate to use 2.1.3 instead

* Fix a few null checks

* Format after completion
2016-12-19 16:38:03 -08:00
Matt Bierner
08b89952fb Fix case sensitivy for completionItemProvider 2016-12-19 16:30:26 -08:00
Matt Bierner
5d7ba47683 Merge branch 'fix-serif-font-in-markdown-preview' 2016-12-19 14:50:08 -08:00