Commit Graph

33920 Commits

Author SHA1 Message Date
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 1e708b46a7 Implement not.greaterThan for completion list 2015-10-08 15:31:59 -07:00
Wesley Wigham 63fe64f067 use a map, backticks 2015-10-08 15:31:45 -07:00
Daniel Rosenwasser 61ece765c7 Return the string literal type itself instead of the union type. 2015-10-08 15:27:12 -07:00
Daniel Rosenwasser 74ac57ddfc Accepted post-merge baselines. 2015-10-08 15:26:00 -07:00
Daniel Rosenwasser 6e3343cb9e Merge branch 'master' into stringLiteralTypes 2015-10-08 15:18:18 -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
Sheetal Nandi 2c3c321593 Merge branch 'master' into tscJsFiles 2015-10-08 14:40:40 -07:00
Yui T cd3f711a76 Address PR feedback 2015-10-08 14:38:58 -07:00
Daniel Rosenwasser d2e2a55a9e Added fourslash test. 2015-10-08 14:36:36 -07:00
jbondc afa08181e2 Address code review.
Accept baselines.
2015-10-08 17:30:46 -04:00
Sheetal Nandi 2d083f7d83 Use compilation options to get extensions to remove to get module name 2015-10-08 14:27:02 -07:00
Ryan Cavanaugh 88bffac07f Don't issue completion in JSX text
Fixes #5096
2015-10-08 14:26:43 -07:00
Sheetal Nandi f7b72047f0 Remove extension for emitting output should remove any of supported extensions + js/jsx to get the dts file 2015-10-08 14:26:40 -07:00
Daniel Rosenwasser a440f06cac Accepted baselines. 2015-10-08 14:10:15 -07:00
Anders Hejlsberg bff9148fe0 Merge pull request #5176 from Microsoft/emitExportAssignments
Fix emit for `export {...}` with ES6 target and non-ES6 modules
2015-10-08 13:18:57 -07:00
Anders Hejlsberg 241220411e Merge branch 'master' into emitExportAssignments 2015-10-08 12:02:04 -07:00
Ryan Cavanaugh d229ae4be5 Escape quotes when emitting React 2015-10-08 11:28:18 -07:00
zhengbli 9eed58db47 Fix i4684 2015-10-08 11:23:52 -07:00
Anders Hejlsberg cae21c09b4 Adding tests 2015-10-08 10:58:58 -07:00
Zhengbo Li c2a589826d Merge pull request #5159 from zhengbli/i4942
Change types of fillStyle and strokeStyle in CanvasRenderingContext2D
2015-10-08 10:18:50 -07:00
Anders Hejlsberg 533c4eb0c2 Emit export assignments when target is ES6 and module kind is not ES6 2015-10-08 10:18:14 -07:00
Nathan Shively-Sanders 10f9fa6da6 Fix lint: remove trailing whitespace on empty line 2015-10-08 09:30:08 -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
jbondc 82eb992dc4 Accept baselines. 2015-10-08 08:21:28 -04:00
jbondc 8960f523ea Resolve const enum value in index access. 2015-10-08 07:57:35 -04:00
Yui T 75de6d4530 Add comment 2015-10-07 18:44:20 -07:00
Vladimir Matveev 0d95d0405c Merge pull request #5153 from Microsoft/transpileTsx
transpile text as tsx if jsx option is specified
2015-10-07 16:33:22 -07:00
Daniel Rosenwasser f7a6ac7e0c Added more tests. 2015-10-07 16:10:07 -07:00
Vladimir Matveev fb1d2cf42c address PR feedback 2015-10-07 15:48:53 -07:00
Yui T 3b8cdb684b Address comment to increment emitCount in separate line 2015-10-07 15:26:09 -07:00
Yui T 37db03ae6a Address feedback on diagnostic message 2015-10-07 14:50:58 -07:00
zhengbli 7175e5d1ae fix issue 4942 2015-10-07 14:32:17 -07:00
Wesley Wigham 0115d68877 PR Feedback, add enums to exceptions 2015-10-07 10:49:47 -07:00
SaschaNaz 2c395e6819 trimWhitespacesInEmptyLineTrivia 2015-10-08 02:48:10 +09:00
Vladimir Matveev 75af4f70b6 transpile text as tsx if jsx option is specified 2015-10-07 10:37:28 -07:00
SaschaNaz e873bc0b8c Merge remote-tracking branch 'Microsoft/master' 2015-10-07 14:46:43 +09:00
Wesley Wigham d8aa469a7d forbid duplicate var exports 2015-10-06 17:59:14 -07:00
Ron Buckton 738b26f065 Merge pull request #5145 from Microsoft/fixAsyncTypeChecks
Fixes some checker errors regarding async functions. Fixes #5115.
2015-10-06 16:57:19 -07:00
Ron Buckton 703af074ff Fixes some checker errors regarding async functions. Fixes #5115. 2015-10-06 16:44:48 -07:00
Ron Buckton 4d3c74fd80 Merge pull request #5137 from Microsoft/fixExportDefaultClassStatics
Fix emit for ES6 export default class with static initializers.
2015-10-06 15:55:45 -07:00
Wesley Wigham b9800f09b7 Handle export * reexport errors smartly 2015-10-06 15:50:35 -07:00
Sheetal Nandi 242eb8bc5c Taken feedback into account and simplified the getFileNames logic to handle extensions by priority 2015-10-06 15:49:39 -07:00
Ron Buckton f52b7cc2c5 Removed unnecessary check 2015-10-06 15:41:47 -07:00
Yui T 8be77b448f Update test to parse typeAssertion as simpleUnaryExpression 2015-10-06 15:29:21 -07:00
Yui T d96a00e4b8 Parse typeAssertion expression as simpleUnaryExpression 2015-10-06 15:28:48 -07:00
Vladimir Matveev 4795acf694 Merge pull request #5139 from Microsoft/getBlockScopedVariableIdIsNoMore
[cleanup] remove unused function from the EmitResolver
2015-10-06 14:16:13 -07:00
Yui T bfaa51b4e9 Add comment and address PR on comment 2015-10-06 14:09:47 -07:00
zhengbli 9ed5b4c435 more test fixes 2015-10-06 13:10:03 -07:00
Daniel Rosenwasser 87554cbc0c Merge branch 'master' into iFeelPrettyErr
Conflicts:
	src/compiler/commandLineParser.ts
2015-10-06 12:54:01 -07:00