Nathan Shively-Sanders
81c2cb90e8
apply captured type parameters to returned classes
...
Get instantiated constructors for classes with captured (outer) type
parameters that have not yet been applied. The fast path was incorrect for
these classes.
2015-11-09 10:16:16 -08:00
Nathan Shively-Sanders
16f69daf10
Merge pull request #5469 from Microsoft/improve-constructor-object-return-error-message
...
Improve constructor object return error message
2015-10-30 10:17:47 -07:00
Vladimir Matveev
83919f0a3e
addressed PR feedback: renamed 'toRelativePath' to 'convertToRelativePath'
2015-10-30 09:52:14 -07:00
Nathan Shively-Sanders
79f09dab4f
Add more detailed error message
...
When an object literal, for example, is returned that does not match the
type of the consturctor, add detail about a field that is required but
missing.
Do this by passing `node.expression` instead of `undefined` -- the rest of
the error reporting infrastructure is already in place.
2015-10-30 09:16:10 -07:00
Vladimir Matveev
534bb62c59
remove 'path' suffix from FileMap methods
2015-10-29 16:43:12 -07:00
Vladimir Matveev
e1b4f01e77
introduce Path as branded string type, switch FileMap to use Path
2015-10-29 16:24:00 -07:00
Vladimir Matveev
93e942a6de
FileMap now internally stores absolute normalized file names
2015-10-29 13:52:43 -07:00
Vladimir Matveev
67026f3461
use resolvedFileName as is when calling methods on host
2015-10-29 13:09:46 -07:00
Vladimir Matveev
067e1ccef2
Merge pull request #5440 from Microsoft/lintServer
...
lint code in 'server' folder
2015-10-28 20:55:46 -07:00
Vladimir Matveev
9c0982051d
lint node.d.ts
2015-10-28 16:02:16 -07:00
Vladimir Matveev
5ce7fd9781
lint server
2015-10-28 15:42:15 -07:00
Mohamed Hegazy
8e732c9b95
Merge pull request #5375 from MartyIX/issue-5109
...
Add warning message empty THEN clause
2015-10-28 14:19:51 -07:00
Ron Buckton
9201ba2857
Merge pull request #5429 from Microsoft/fixAsyncTypeAlias
...
Fix type check for async function with alias return type.
2015-10-28 14:10:44 -07:00
Ron Buckton
fdac86fab9
Linter errors
2015-10-28 13:48:13 -07:00
Mohamed Hegazy
0d71ec3120
Fix #5430 : Use FileMap instead of a simple Map for storing file list in tsserver
2015-10-28 13:38:39 -07:00
Martin Všetička
1e2108854b
Add warning message empty THEN clause
2015-10-28 08:25:41 +01:00
Ron Buckton
96504fa604
Use resolvedSymbol instead of mergedSymbol.
...
Fixes #5333 .
2015-10-28 00:09:50 -07:00
Vladimir Matveev
e811fecda6
Merge pull request #5275 from Microsoft/fixCasingAndPathFormat
...
use absolute path as key to store files, correctly handle scenarios w…
2015-10-27 14:02:35 -07:00
Vladimir Matveev
f5d4aa7d9c
addressed PR feedback (change command line flag description), added tests
2015-10-27 13:27:51 -07:00
Wesley Wigham
6e78b9c34d
Merge pull request #5358 from Microsoft/debugger
...
Add JS breakpoint into Debug.assert failure
2015-10-27 10:27:02 -07:00
Vladimir Matveev
ea054f7cbb
Merge pull request #5412 from Microsoft/classesInLoop
...
treat local classes as block scoped variables
2015-10-27 10:23:16 -07:00
Vladimir Matveev
847a074f5b
Merge pull request #5408 from Microsoft/asyncWriteOnServer
...
use process.stdout.write on server instead of fs.write
2015-10-27 09:59:30 -07:00
Mohamed Hegazy
33d7a1fc13
Merge pull request #5397 from seanchas116/fix-nested-parameter-destructuring
...
Fix nested parameter destructuring
2015-10-27 09:46:23 -07:00
Vladimir Matveev
654befa781
treat local classes as block scoped variables
2015-10-26 22:18:04 -07:00
Zhengbo Li
a9058f9aa9
Merge pull request #5402 from zhengbli/i4177
...
Add string overloads to document.createElementNS
2015-10-26 23:41:28 -04:00
Vladimir Matveev
4dbd04cdeb
Merge pull request #5208 from Microsoft/capturedBlockScopedVars
...
support block scoped vars captured in closures inside loops
2015-10-26 16:58:15 -07:00
Vladimir Matveev
41697b948f
addressed PR feedback
2015-10-26 16:54:33 -07:00
Vladimir Matveev
2fbc7e7751
use process.stdout.write on server
2015-10-26 16:10:23 -07:00
Paul van Brenk
dababb10a6
Merge pull request #5273 from Microsoft/shortenLocMessages
...
Shorten loc messages
2015-10-26 14:34:57 -07:00
Vladimir Matveev
60d8cf3bdf
Merge pull request #5405 from Microsoft/allowAllFilesAsPackages
...
allow other files except .d.ts as external library packages
2015-10-26 11:43:38 -07:00
Vladimir Matveev
751a8ea148
allow other files except .d.ts as external library packages
2015-10-26 10:43:55 -07:00
zhengbli
38caf535fc
fix i4177 and sync with the TSJS repo
2015-10-26 08:23:50 -04:00
Mohamed Hegazy
ed5dc5536d
Merge pull request #5390 from maybejulian/declareOnTypeAliasInDts
...
Allow type aliases to omit 'declare' keyword in '.d.ts' files
2015-10-25 23:26:18 -07:00
Ryohei Ikegami
3b23ab5fb7
Do not type non-identifier binding name
2015-10-25 12:23:24 +09:00
Julian Williams
1d6f5c6781
Added grammar change to the comments.
2015-10-24 22:21:34 -04:00
Zhengbo Li
c3c66a40f1
Merge pull request #5354 from zhengbli/fixWriteSync
...
Change sys.write to async in tsserver
2015-10-24 18:57:14 -04:00
Julian Williams
a0939d962b
Added TypeAliasDeclaration to exceptions for required top level declare modifier
2015-10-23 22:43:11 -04:00
Nathan Shively-Sanders
c4e54685c6
Merge pull request #5384 from Microsoft/fix-union-of-variadic-functions
...
Fix union of variadic functions
2015-10-23 14:54:13 -07:00
Nathan Shively-Sanders
d26a4c8a87
Merge pull request #5359 from Microsoft/merge-inherits-interface-members
...
Merge inherits interface members
2015-10-23 14:51:13 -07:00
Nathan Shively-Sanders
742c701868
Use emptyArray instead of [] for no base types.
2015-10-23 14:26:45 -07:00
Nathan Shively-Sanders
ab2994ff87
Fix union types of variadic functions
...
The check used `=== len - 1` instead of `>= len - 1` to check whether a
parameter index might be pointing to a rest argument.
2015-10-23 13:34:09 -07:00
Vladimir Matveev
69986a158f
Merge pull request #5367 from Microsoft/cacheFileExists
...
cache results of fileExists check in default compiler host
2015-10-23 13:27:32 -07:00
Vladimir Matveev
19a222e718
addressed PR feedback
2015-10-23 13:09:05 -07:00
Nathan Shively-Sanders
fe19ccf7d7
Merge pull request #5368 from Microsoft/convert-diagnostic-text-to-es2015
...
Convert diagnostic text to es2015
2015-10-23 12:47:26 -07:00
zhengbli
bf1335b0e6
CR feedback.
2015-10-23 12:39:16 -07:00
Zhengbo Li
f431c82296
Merge pull request #5336 from zhengbli/fixWatcherIssue
...
Issue fix for config file watcher callback
2015-10-23 11:47:54 -07:00
Wesley Wigham
8e492a496f
Merge pull request #5370 from weswigham/system-export-var
...
Fix system export var when targeting ES6
2015-10-23 11:20:22 -07:00
Daniel Rosenwasser
7ed6c7a944
Merge pull request #5373 from brettm523/5298-normalize-err-msg-path
...
add normalizePath to to fix slashes
2015-10-22 23:54:01 -07:00
Brett Mayen
7c251bc605
add normalizePath to to fix slashes
2015-10-22 21:01:24 -07:00
Ryan Cavanaugh
bede6edc51
Merge pull request #5366 from RyanCavanaugh/typeOperatorSpacingRule
...
Type operator spacing rule
2015-10-22 16:33:21 -07:00