Vladimir Matveev
da009b8612
use \r\n as new line in harness
2015-08-21 11:32:53 -07:00
Vladimir Matveev
dc2c968b08
addressed PR feedback: added comment
2015-08-21 10:37:13 -07:00
Vladimir Matveev
68d6d8c550
use Harness.IO instead of sys in harness
2015-08-21 00:31:25 -07:00
Adi Dahiya
7f52d5054d
Make TypeCheckerHost internal
...
Fixes #4346
2015-08-21 01:43:47 -04:00
Mohamed Hegazy
b395fb9f45
Merge branch 'master' into outFile
...
Conflicts:
src/harness/fourslash.ts
2015-08-20 17:46:38 -07:00
Mohamed Hegazy
00cd8ad745
Add --outFile and revert change make --out relative in tsconfig.json
2015-08-20 17:37:56 -07:00
Vladimir Matveev
dde7545d34
address PR feedback
2015-08-20 16:13:49 -07:00
Mohamed Hegazy
cfc164b044
Consolidate option error messages into two
2015-08-20 15:58:57 -07:00
Sheetal Nandi
345de8fca5
Resolve the decorator type as type and check if the symbol has value.
...
This would make sure we are referencing correct symbol to check if it has value
Fixes #4239
2015-08-20 15:45:51 -07:00
jramsay
425ad026ae
Merge pull request #4385 from Microsoft/ToolsVersionUpdate
...
Updating the internal toolsVersion from 1.5 -> 1.6 in shims.ts
2015-08-20 15:25:41 -07:00
Zhengbo Li
b0868c6ba3
Merge pull request #4023 from zhengbli/addTsConfigWatcher
...
Add file watcher for tsconfig.json
2015-08-20 15:20:48 -07:00
Jason Ramsay
d1fa571113
replacing let with const
2015-08-20 15:17:04 -07:00
Mohamed Hegazy
2a751abe4e
Merge pull request #4371 from Microsoft/emitOutputForTsx
...
Emit tsx files correctly in getEmitOutput calls
2015-08-20 15:12:22 -07:00
zhengbli
b78e560927
Add message in protocol.d.ts and rename "rebuildProjects" to "reloadProjects"
2015-08-20 14:53:29 -07:00
Jason Ramsay
e6c4019671
Updating the internal toolsVersion from 1.5 -> 1.6 in shims.ts
2015-08-20 14:48:03 -07:00
zhengbli
a4d496c4c6
add command for rebuild all project structure
2015-08-20 14:34:46 -07:00
zhengbli
762e0e8146
Delay creating inferred projects
2015-08-20 13:02:52 -07:00
Ryan Cavanaugh
6eca09b062
Handle non-entities as well
2015-08-20 12:30:12 -07:00
Ryan Cavanaugh
16e72971d9
Add comments
2015-08-20 12:23:27 -07:00
Ryan Cavanaugh
67f81bc53c
Convert HTML entities to strings ( #4125 )
2015-08-20 12:20:28 -07:00
Ryan Cavanaugh
f659c9098c
Fix React whitespace emit #4376
2015-08-20 11:38:03 -07:00
Yui T
bb7a132b0e
Address code review
2015-08-20 09:25:02 -07:00
Basarat Syed
042e1bbd91
fix(scanner) try a trivia scan only if pos === 0
2015-08-20 17:45:54 +10:00
Daniel Rosenwasser
069d2dc724
Merge pull request #4369 from Microsoft/updateES6DotDDotTsForFinalDraft
...
Update es6.d.ts for ES6 final draft (Part II)
2015-08-19 22:42:18 -07:00
Mohamed Hegazy
f95fcf9671
Emit tsx files correctelly in getEmitOutput calls
2015-08-19 22:18:32 -07:00
zhengbli
d1253d56ac
Added null checks
2015-08-19 20:47:02 -07:00
Daniel Rosenwasser
a55d531677
Fixed newlines, switched 'module' keyword to 'namespace'.
2015-08-19 18:22:40 -07:00
Daniel Rosenwasser
af05e46b28
Added overloads for typed array constructors to take an 'Iterable<number>'.
2015-08-19 17:11:10 -07:00
Daniel Rosenwasser
0efa8599f0
Merge branch 'master' into updateES6DotDDotTsForFinalDraft
2015-08-19 17:04:26 -07:00
Zhengbo Li
bce2d67c51
Merge pull request #4306 from zhengbli/issue4220
...
Fix ImageData constructor
2015-08-19 17:02:09 -07:00
Vladimir Matveev
5bcb3f0be8
Merge pull request #4368 from Microsoft/noResolveAndExternalModules
...
Process imports to source files to record module name resolutions
2015-08-19 17:00:36 -07:00
zhengbli
b16536b60d
CR feedback
2015-08-19 16:02:36 -07:00
Daniel Rosenwasser
b27ab24343
Updated 'Reflect.construct' to add third 'newTarget' argument.
2015-08-19 15:53:31 -07:00
Daniel Rosenwasser
f36f510411
Fix documentation for methods of the 'String' interface.
2015-08-19 15:46:56 -07:00
Vladimir Matveev
4a829572be
added tests
2015-08-19 15:37:37 -07:00
Daniel Rosenwasser
08f37cc2fa
Added overload for 'String#split' to take objects with '[Symbol.split]' method.
2015-08-19 15:09:25 -07:00
Daniel Rosenwasser
312df84934
Added overload for 'String#search' to take objects with '[Symbol.search]' method.
2015-08-19 15:06:10 -07:00
Daniel Rosenwasser
25d55b5101
Added overload for 'String#replace' to take objects with '[Symbol.replace]' method.
2015-08-19 15:02:46 -07:00
zhengbli
df3ecab074
Remove duplicated code
2015-08-19 15:02:37 -07:00
Daniel Rosenwasser
4dd701a22c
Added overload for 'String#match' to take objects with '[Symbol.match]' method.
2015-08-19 15:02:13 -07:00
zhengbli
831d2eb137
Move back the constructor signature with Uint8ClampedArray
2015-08-19 15:01:23 -07:00
zhengbli
9848e335d8
Merge branch 'master' into issue4220
2015-08-19 14:55:18 -07:00
zhengbli
0ba3760923
Merge branch 'master'
2015-08-19 14:35:30 -07:00
Zhengbo Li
648d1d869b
Merge pull request #4312 from zhengbli/issue4015
...
Add missing types to webworker.generated.ts
2015-08-19 14:29:09 -07:00
Zhengbo Li
a2a6dec6d5
Merge pull request #4313 from zhengbli/issue4012
...
Fix document.open return type
2015-08-19 14:26:15 -07:00
Zhengbo Li
b5a6161d46
Merge pull request #4318 from zhengbli/issue3999
...
Fix File constructor
2015-08-19 14:25:58 -07:00
zhengbli
04c54f80bb
Merge branch 'master' into issue3979
2015-08-19 14:05:07 -07:00
zhengbli
424c6d3b90
Remove extra files
2015-08-19 12:49:10 -07:00
zhengbli
42942a5dc4
Merge branch 'master' into addTsConfigWatcher
2015-08-19 12:44:29 -07:00
Yui T
4c44de6c5f
Write out type parameter in type alias in quick-info
2015-08-19 12:38:36 -07:00
Yui T
ed1383842c
Fix space
2015-08-19 12:38:08 -07:00
zhengbli
58ac077a49
Handle root file removal and addition in configured projects
2015-08-19 12:28:43 -07:00
Vladimir Matveev
ffadce6335
always process imported modules in 'createProgram' to record module resolutions
2015-08-19 11:58:02 -07:00
Mohamed Hegazy
478cc32e5e
Merge pull request #4355 from DavidSouther/ts4354
...
Emits safe value for import.
2015-08-19 10:25:25 -07:00
zhengbli
c81cc9fee3
CR feedback and logic rewrite
2015-08-19 00:48:16 -07:00
David Souther
407c8beed5
Emits safe value for import.
2015-08-18 21:17:43 -04:00
Daniel Rosenwasser
21de00fb7e
Removed inappropriate methods from the 'RegExp' interface.
2015-08-18 15:24:23 -07:00
Daniel Rosenwasser
006fc951e3
Added the '[Symbol.unscopables]' method to the 'Array<T>' interface.
2015-08-18 15:22:13 -07:00
Daniel Rosenwasser
66b17c1c73
Added the '[Symbol.species]' method to the 'RegExpConstructor' interface.
2015-08-18 15:14:37 -07:00
Daniel Rosenwasser
f56d8f5509
Added the '[Symbol.split]' method to the 'RegExp' interface.
2015-08-18 15:10:08 -07:00
Daniel Rosenwasser
e4077ec0f8
Added the '[Symbol.search]' method to the 'RegExp' interface.
2015-08-18 15:01:58 -07:00
Daniel Rosenwasser
97618104bd
Added the '[Symbol.replace]' method to the 'RegExp' interface.
2015-08-18 14:58:35 -07:00
Vladimir Matveev
f415097d0d
addressed PR feedback
2015-08-18 14:52:21 -07:00
zhengbli
fcf68c278d
Add Uint8ClampedArray to core.d.ts, and split call signature of method "from"
2015-08-18 13:40:17 -07:00
Daniel Rosenwasser
1e9b5e4c30
Added the '[Symbol.match]' method to the 'RegExp' interface.
2015-08-18 13:39:51 -07:00
Vladimir Matveev
049a5fba07
added tests
2015-08-18 13:36:08 -07:00
Daniel Rosenwasser
b7fcf161d5
Added the '[Symbol.toPrimitive]' method to the 'Date' interface.
2015-08-18 13:17:27 -07:00
Daniel Rosenwasser
2682703cca
Added the '[Symbol.hasInstance]' method to the 'Function' interface.
2015-08-18 13:17:23 -07:00
Daniel Rosenwasser
448f2d607d
Removed 'Function.toMethod'.
2015-08-18 13:17:10 -07:00
Yui T
c5d5155234
Add comment and prevent completion in type paramter of class expression
2015-08-17 22:02:45 -07:00
Schmavery
6f42e4164b
Apply suggested fixes to arguments
PR
2015-08-17 18:33:48 -07:00
Vladimir Matveev
1cb5280971
Merge branch 'master' into moduleResolutionStrategies
2015-08-17 18:31:53 -07:00
Vladimir Matveev
3b95ea460e
initial implementation of module resolution for node/requirejs
2015-08-17 18:31:12 -07:00
Schmavery
2b3da9a49e
Add arguments
to completion list #4249
2015-08-17 17:13:17 -07:00
Mohamed Hegazy
e86f207859
Merge pull request #4309 from Microsoft/fix4274
...
Fix #4274 : When collecting linked aliases use SymbolFlags.Alias to capture local aliases as well
2015-08-17 15:55:35 -07:00
zhengbli
2a3867a742
CR feedback. Add more tests.
2015-08-17 15:35:27 -07:00
Sheetal Nandi
ed361a26b9
Merge pull request #4086 from Microsoft/sourcemap
...
Fixes the interaction of sourcemap and source comments
2015-08-17 15:34:35 -07:00
Mohamed Hegazy
25dfcec83b
Merge pull request #4290 from Microsoft/fix4277
...
Fix #4277 : Ensure we are passing refEnd and not length to findSourceFile
2015-08-17 15:21:04 -07:00
Vladimir Matveev
b6b735c0f2
merge with master
2015-08-17 14:38:24 -07:00
Vladimir Matveev
a88bfbd651
Merge branch 'master' into reuseAndCache
2015-08-17 14:36:17 -07:00
Mohamed Hegazy
2ffc37510d
Merge pull request #4281 from adidahiya/expose-scanner-typings
...
Make createScanner external (fixes #4057 )
2015-08-17 12:18:00 -07:00
Mohamed Hegazy
96286e9400
Merge pull request #4330 from SaschaNaz/formatTsx
...
Fix JsxElement formatting
2015-08-17 11:57:45 -07:00
Sheetal Nandi
ebe7ca75a6
Merge branch 'master' into sourcemap
2015-08-17 11:26:49 -07:00
Yui T
abc96936b5
Do not show completions in type parameter of type alias
2015-08-17 10:48:36 -07:00
Vladimir Matveev
6a17db8e3b
Merge pull request #4319 from Microsoft/renameDependencies
...
allow transpiler to provide alternative names for dependencies
2015-08-17 10:44:53 -07:00
Vladimir Matveev
cbb2425ccd
addressed PR feedback
2015-08-17 10:37:44 -07:00
SaschaNaz
bcde56202e
fix jsxelement formatting
2015-08-16 17:27:23 +09:00
Yui T
c57adeda1f
Fix null reference in type parametr of type alias
2015-08-15 17:02:08 -07:00
Vladimir Matveev
bc3025b391
make 'require is defined' a precondition for Node-based sys
2015-08-14 20:53:38 -07:00
zhengbli
20902b00e8
Remove the extension.d.ts and move the content to core.d.ts
...
Change the set function parameter type in TypedArrays
2015-08-14 16:27:48 -07:00
Mohamed Hegazy
53239d4a8b
Merge pull request #4310 from Microsoft/fix4170
...
Fix #4170 , remove error when using import=require syntax in t=ES6 and in ambient context
2015-08-14 15:11:19 -07:00
zhengbli
7e1201eed2
Further fixes
2015-08-14 14:17:55 -07:00
Vladimir Matveev
7e8cfa0859
allow transpiler to provide alternative names for dependencies
2015-08-14 13:00:41 -07:00
Vladimir Matveev
5fbe3fc75c
Merge pull request #4308 from Microsoft/adjustNodeCheck
...
adjust check for node env to handle webpack\browserify
2015-08-14 11:41:16 -07:00
zhengbli
43f7d8ca89
Fix File constructor
2015-08-14 10:50:18 -07:00
zhengbli
cdbf2b4771
Fix document.open return type
2015-08-14 00:28:40 -07:00
zhengbli
1c434ecdf2
Added missing dictionaries also
2015-08-14 00:07:03 -07:00
zhengbli
e4dd7e0e48
Add missing types in webworker.generated.ts
2015-08-13 23:56:02 -07:00
Anders Hejlsberg
7376e4845d
Merge pull request #4200 from Microsoft/unionPartialSignatures
...
Partial matches in union type signatures
2015-08-13 23:16:48 -07:00
Mohamed Hegazy
e34238cb92
Merge pull request #4305 from ToddThomson/SpaceWithinNonEmptyBrackets
...
Add Spacing for Nonempty Brackets Formatting Option
2015-08-13 15:00:13 -07:00
Mohamed Hegazy
7353cfaece
Fix #4170 , remove error when using import=require syntax in t=ES6 and in ambient context
...
This is consistent with the behaviour of "export=" in --t=ES6 and in ambient contexts
2015-08-13 14:56:27 -07:00
Mohamed Hegazy
fafd497124
Fix #4274 : When collecting linked aliases use SymbolFlags.Alias to capture local aliases as well
2015-08-13 14:30:29 -07:00
ToddThomson
0415cc7f68
Addresses PR comments
...
Removed all spaces from nonempty parenthesis in code for this PR.
Modified the input string for testing the
InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets option in the
fourslash test.
2015-08-13 14:06:56 -07:00
zhengbli
37c0acf4c2
CR feedback
2015-08-13 13:48:25 -07:00
Vladimir Matveev
5a48508ffa
adjust check for node env to handle webpack\browserify
2015-08-13 13:14:38 -07:00
zhengbli
6315f7302b
Make parameter littleEndian in DataView methods optional
2015-08-13 13:11:25 -07:00
zhengbli
82dc484ccb
Fix ImageData constructor
2015-08-13 12:59:19 -07:00
Mohamed Hegazy
1749329655
Merge branch 'master' into fix4277
2015-08-13 12:45:53 -07:00
Mohamed Hegazy
fdda66f055
handel merge conflict, use refPos instead of start
2015-08-13 12:45:26 -07:00
ToddThomson
9146d9bc2f
Add Spacing for Nonempty Brackets Formatting Option
...
User formatting option to add single space after opening and before
closing nonempty brackets.
2015-08-13 11:56:35 -07:00
SaschaNaz
f832bd20f2
fix class expression + expressionWithTypeArgument
2015-08-14 03:45:52 +09:00
zhengbli
9dac516b26
CR feedback
2015-08-13 11:06:36 -07:00
Yui
f92aa8681a
Merge pull request #4230 from Microsoft/commentsNotPreserveForCallExp
...
Preserve comments on parameters in call expressions
2015-08-12 18:54:34 -07:00
Yui T
6adf7feb5e
Remove asterisks
2015-08-12 17:52:36 -07:00
Yui T
732376a73b
Merge branch 'master' into commentsNotPreserveForCallExp
2015-08-12 17:46:39 -07:00
Yui T
c0801b1388
Add asterisks
2015-08-12 17:46:24 -07:00
Vladimir Matveev
405db829a0
mismatch order of arguments
2015-08-12 13:55:41 -07:00
Mohamed Hegazy
94fa6b92b4
Fix #4277 : Ensure we are passing refEnd and not length to findSourceFile.
...
Also add a more conservative check for empty refPos and refEnd to ensure diagnostic emit does not fail
2015-08-12 13:04:10 -07:00
zhengbli
03ea38f31f
Fix bugs and add support for @param expressions
2015-08-11 23:20:03 -07:00
zhengbli
5e9186b9ed
Enable intellisense in jsDoc tag @type brackets
2015-08-11 21:40:37 -07:00
zhengbli
0b6aeeca9d
Add JsDoc intellisense for JavaScript files
2015-08-11 20:18:05 -07:00
Adi Dahiya
fcc43a6730
Make createScanner external ( fixes #4057 )
2015-08-11 21:44:56 -04:00
Vladimir Matveev
7c8da42230
Merge pull request #4279 from Microsoft/highlightRefsInOneDocument
...
keep only document highlights from the original file
2015-08-11 18:01:59 -07:00
Daniel Rosenwasser
9717427130
Merge pull request #4276 from SaschaNaz/typeAssertionFormattingFix
...
Fix generics/type-assertion formatting
2015-08-11 12:22:08 -07:00
Vladimir Matveev
ce44d95115
keep only document highlights from the original file
2015-08-11 12:04:55 -07:00
Ryan Cavanaugh
5035559c59
Merge pull request #4228 from RyanCavanaugh/jsxHash
...
Fix case where # occurs after > in JSX expression
2015-08-11 11:56:19 -07:00
Ryan Cavanaugh
dd446d80ad
Fix comment
2015-08-11 11:05:37 -07:00
SaschaNaz
dfcc1e6944
fix generics/type-assertion formatting
2015-08-11 23:47:44 +09:00
Yui T
86b104133f
Fix comments
2015-08-10 17:34:39 -07:00
Vladimir Matveev
586abacec4
Merge pull request #4179 from Microsoft/exportDeclarationsInSystem
...
emit export declarations for system modules as a part of 'execute' me…
2015-08-10 13:59:45 -07:00
Vladimir Matveev
7ecaea3926
addressed PR feedback
2015-08-10 13:51:54 -07:00
Mohamed Hegazy
bfa624c0c7
Merge pull request #4133 from Microsoft/addNewLineHelper
...
Add a helper for getting Newlines
2015-08-10 13:21:23 -07:00
zhengbli
b3f0a2a2e4
Merge branch 'master' into JSDocCommentScaffolding
2015-08-10 12:55:45 -07:00
Zhengbo Li
74dc5a27b5
Merge pull request #3858 from zhengbli/fixWorkerType
...
Update ErrorEventHandler type in worker
2015-08-10 12:24:46 -07:00
Zhengbo Li
a3ef530139
Merge pull request #3918 from zhengbli/issue3884
...
Change the type of window.orientation to number
2015-08-10 12:24:40 -07:00
Mohamed Hegazy
7f49375f3e
Fix #3912 : emit declaration for binding elements correctelly
2015-08-10 10:50:08 -07:00
zhengbli
fceba238dd
Merge branch 'master' of https://github.com/Microsoft/TypeScript into errorlist
...
Conflicts:
src/server/session.ts
2015-08-10 09:40:12 -07:00
Yui T
673e741f57
Add comments to do clean-up
2015-08-07 16:30:16 -07:00
Ryan Cavanaugh
cdd5b6a7e9
Rename parameter
2015-08-07 16:23:34 -07:00
Ryan Cavanaugh
4a96491d5b
Remove silly function
2015-08-07 16:06:49 -07:00
Ryan Cavanaugh
5f6ac45bde
S p a c e s
2015-08-07 16:03:45 -07:00
Arthur Ozga
92f152cb8e
Merge pull request #4205 from Microsoft/fixAbstractAssignabilityRestriction2
...
Fix abstract assignability restriction2
2015-08-07 16:01:43 -07:00
Ryan Cavanaugh
555297a62b
Fix case where # occurs after > in JSX expression
2015-08-07 15:46:36 -07:00
Mohamed Hegazy
c07dfc3371
Merge pull request #4213 from tinganho/columnRows
...
Adds columns and rows properties to process.stdout
2015-08-07 15:40:24 -07:00
Arthur Ozga
f9c82ea274
save files changed in refactoring
2015-08-07 14:24:30 -07:00
Arthur Ozga
e9fa806c9f
move helper and add capture of this
2015-08-07 14:01:07 -07:00
Arthur Ozga
410e4e4df7
added a clarifying comment
2015-08-07 11:07:06 -07:00
Anders Hejlsberg
61b3a185ce
Making partial signature matching more inclusive
2015-08-07 08:03:59 -07:00
Tingan Ho
4cb789984c
Adds columns and rows properties to process.stdout
2015-08-07 21:33:27 +08:00
Arthur Ozga
cbb159770f
fixed null de-reference
2015-08-06 17:43:06 -07:00