Commit Graph

1872 Commits

Author SHA1 Message Date
Ryan Cavanaugh
61b71008d7 Remove obsolute AMD logic from reference preprocessing in services 2015-10-16 17:35:43 -07:00
Ryan Cavanaugh
1a36fce4c2 JavaScript LS scaffolding + JS module inference 2015-10-14 17:36:03 -07:00
Ryan Cavanaugh
b2d666c489 Merge pull request #5184 from RyanCavanaugh/fix5096
Don't issue completion in JSX text
2015-10-13 13:27:39 -07:00
Nathan Shively-Sanders
8a051343ff Merge pull request #5169 from Microsoft/fix-simple-uses-of-polymorphic-this-in-services
Fix simple uses of polymorphic this in services
2015-10-12 13:54:50 -07:00
Vladimir Matveev
c35419e12e add rule to insert space between async keyword and open paren 2015-10-11 22:19:51 -07:00
Paul van Brenk
573652160c Merge pull request #5197 from Microsoft/supportIndentStyle
Support different indentation styles
2015-10-09 16:51:39 -07:00
Nathan Shively-Sanders
f19a2f54ed Fixup comments 2015-10-09 09:02:42 -07:00
Ryan Cavanaugh
24334b506c Only show the opening tag name when completing a close tag
Fixes #5096
2015-10-08 15:32:36 -07:00
Ryan Cavanaugh
b1c8303300 Fix case for completion on the line after a self-closing element 2015-10-08 14:55:11 -07:00
Ryan Cavanaugh
88bffac07f Don't issue completion in JSX text
Fixes #5096
2015-10-08 14:26:43 -07:00
Nathan Shively-Sanders
2fb6eabc2e Fix this.member completion+quickinfo of overloads
1. Completion after `this.` was empty.
2. Quick info of methods with overloads always chose the first overload,
regardless of whether an argument whose type matched a different overload.

Both have the same cause: the type parameter introduced by
polymorphic `this` is not usable, whereas the original is. In both cases,
the usage is simple -- it doesn't take advantage of the capabilities of
polymorphic `this`.
2015-10-08 08:11:33 -07:00
Vladimir Matveev
75af4f70b6 transpile text as tsx if jsx option is specified 2015-10-07 10:37:28 -07:00
Mohamed Hegazy
53cff210fd Merge pull request #5103 from SaschaNaz/formatStringTemplates
Format template internal spaces
2015-10-05 16:01:10 -07:00
SaschaNaz
c9e237c2b3 Format template internal spaces 2015-10-05 07:02:22 +09:00
Nathan Shively-Sanders
04510ac157 Automatic semicolon insertion for class modifiers
This includes public, private, protected, abstract

async and declare already work this way, but it looks
like they didn't block the completion list, so I added
them to the list too.
2015-10-02 14:30:31 -07:00
Anders Hejlsberg
cbe2f3df64 Merge pull request #4910 from Microsoft/polymorphicThisType
Polymorphic 'this' type
2015-09-30 13:18:33 -07:00
Ryan Cavanaugh
a4db4be4b6 Merge pull request #5019 from RyanCavanaugh/fix4731
Issue correct completions in 'as' operator
2015-09-30 13:11:09 -07:00
Zhengbo Li
4ad216073c Merge pull request #4994 from zhengbli/i4959
Avoid deleting trailing white spaces in templates
2015-09-29 16:53:40 -07:00
Anders Hejlsberg
24f906a143 Error when emitted type in declaration file references inaccessible 'this' 2015-09-29 15:15:30 -07:00
Mohamed Hegazy
bedeab73ed Merge pull request #5018 from SaschaNaz/formatAssignment
Indent expression statements
2015-09-29 15:12:40 -07:00
zhengbli
16762a4ff0 Update tests 2015-09-29 13:56:57 -07:00
Ryan Cavanaugh
141813ca09 Issue correct completions in 'as' operator 2015-09-29 12:23:16 -07:00
SaschaNaz
06bf74a029 indent expressions 2015-09-30 02:59:10 +09:00
Ryan Cavanaugh
b3d2c20ace Offer correct completion when between a boolean JSX attr and the close tag
Fixes #4574
2015-09-28 17:13:29 -07:00
zhengbli
fbb73b76c7 cr feedback 2015-09-28 15:52:09 -07:00
Vladimir Matveev
85a29d2c1a Merge pull request #4932 from Microsoft/formatMalformedTsx
use formatting scanner with languageVariant=JSX for .tsx files
2015-09-28 11:13:42 -07:00
zhengbli
f66c23811e Remove extra empty lines 2015-09-27 20:15:51 -07:00
zhengbli
896f745c83 Avoid deleting trailing whitespaces for tempmlates 2015-09-27 19:36:25 -07:00
Anders Hejlsberg
47c9190408 Proper handling of "this" in getSymbolAtLocation 2015-09-26 07:57:39 -07:00
Daniel Rosenwasser
2692cde712 :%s/apst/apt 2015-09-25 17:10:58 -07:00
Daniel Rosenwasser
6bfc28f883 Try to grab parameters for single-declaration variable statements.
We only do this for a (parenthesized) function expression, arrow function,
or class expression with a constructor.

In the presence of a class expression, if there are multiple constructor
declarations, the parameters are acquired from the first one.
2015-09-25 16:30:26 -07:00
Daniel Rosenwasser
a458d4b2f4 Amended comments. 2015-09-25 13:59:47 -07:00
Daniel Rosenwasser
81dabb4d51 Ensure that doc comments don't appear between dotted names.
Also updated TODO
2015-09-24 17:11:05 -07:00
Daniel Rosenwasser
67b44b59c0 Add JSDoc to methods, constructors, classes, and namespace/module declarations. 2015-09-24 16:40:13 -07:00
Daniel Rosenwasser
1545ab56f3 Use a loop because reduce is unreadable. 2015-09-24 16:01:47 -07:00
Vladimir Matveev
5078152a21 use formatting scanner with languageVariant=JSX for .tsx files 2015-09-22 14:57:23 -07:00
Anders Hejlsberg
9438a4bce0 Polymorphic "this" type 2015-09-21 14:29:31 -07:00
Daniel Rosenwasser
38b605ea7d Merge branch 'release-1.6'
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/program.ts
	tests/baselines/reference/emptyObjectBindingPatternParameter04.symbols
	tests/baselines/reference/emptyObjectBindingPatternParameter04.types
	tests/baselines/reference/nodeResolution5.errors.txt
	tests/baselines/reference/nodeResolution7.errors.txt
2015-09-15 13:36:08 -07:00
Vladimir Matveev
98f31635f8 Check if imported file is a proper external module 2015-09-10 21:46:03 -07:00
Vladimir Matveev
04949a005c Merge remote-tracking branch 'origin/master' into properExternalModules 2015-09-10 16:42:17 -07:00
Vladimir Matveev
e0c16b4332 Check if imported file is a proper external module 2015-09-10 16:00:44 -07:00
Mohamed Hegazy
7e1739604a Fix #4727: prerocess export import declarations correctelly 2015-09-10 13:24:45 -07:00
SaschaNaz
eb2d86aa7b revert newlines 2015-09-10 02:20:15 +09:00
SaschaNaz
8cd8f863b3 remove type operation rules, add types instead 2015-09-10 01:41:21 +09:00
SaschaNaz
44009fa951 Housekeeping part from #4609 2015-09-10 01:37:34 +09:00
Vladimir Matveev
97b846c444 handle jsx identifiers correctly, indent content of JsxSelfClosingElement 2015-09-04 13:03:47 -07:00
Vladimir Matveev
2d37a44df4 Merge pull request #4646 from Microsoft/formattingJsxAttributes
handle jsx identifiers correctly, indent content of JsxSelfClosingEle…
2015-09-04 12:59:13 -07:00
Vladimir Matveev
35d608692b handle jsx identifiers correctly, indent content of JsxSelfClosingElement 2015-09-04 10:53:33 -07:00
SaschaNaz
4aded270f7 move declaration into the block 2015-09-04 21:54:14 +09:00
SaschaNaz
59f5ce4582 fix comment indentation 2015-09-04 19:35:07 +09:00