Commit Graph

1863 Commits

Author SHA1 Message Date
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
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
Vladimir Matveev
ff640e415f fix 'findPrecedingToken' for jsxText 2015-09-03 13:33:22 -07:00
SaschaNaz
58c732b47d format class expression indentation 2015-09-03 13:33:05 -07:00
SaschaNaz
b8071f99bc format intersection type 2015-09-03 13:32:34 -07:00
Vladimir Matveev
e484305c98 allow backslashes in fileName argument of the transpile function 2015-09-03 13:31:57 -07:00
Vladimir Matveev
dc86736820 Merge pull request #4596 from Microsoft/jsxIndentation
fix 'findPrecedingToken' for jsxText
2015-09-03 13:29:44 -07:00
Vladimir Matveev
4f4c8ee12d Merge pull request #4627 from Microsoft/backslashesInTranspile
allow backslashes in fileName argument of the transpile function
2015-09-03 13:29:27 -07:00
Vladimir Matveev
feddff0b7b Merge pull request #4622 from SaschaNaz/fixClassExpressionIndent
Fix class expression indentation
2015-09-03 11:59:50 -07:00
Vladimir Matveev
9a78b66068 allow backslashes in fileName argument of the transpile function 2015-09-03 09:25:43 -07:00
SaschaNaz
dfde9e4e10 format intersection type 2015-09-03 22:33:07 +09:00