Sheetal Nandi
d8280d8807
Handle the require call in javascript file for getSymbolAtLocation
...
This helps in getting the alias symbol so that it can go to the definition of external module
Fixes #9251
2016-10-05 17:19:38 -07:00
Sheetal Nandi
f30874763f
Even in javascript files when creating completion entry from symbols we need to perform identifier check
...
Fixes #11217
2016-10-05 16:59:58 -07:00
Sheetal Nandi
ffe07e7e71
Fix incorrect returning of completion entries when in string literal of property assignment expression
...
Fixes #11232
2016-10-05 16:58:50 -07:00
Kanchalai Tanglertsampan
13373e41c8
Address Github #11081 when we start paring "1" in type and keep going instead of terminate when see ")"
2016-10-05 10:27:30 -07:00
Vladimir Matveev
4f39a3b919
do not apply subtype reduction if type set contains enum literals fro… ( #11368 )
...
* do not apply subtype reduction if type set contains enum literals from the same enum
* do not re-read symbol for the first enum
* addressed PR feedback
2016-10-04 17:10:37 -07:00
Dirk Bäumer
132d1dacec
Addresses #11348 : Could the tsserver add process.noAsar = true; ( #11351 )
2016-10-04 10:18:03 -07:00
Vladimir Matveev
6e0eea76e2
validate inferred typing names to be legal package names
2016-10-03 13:01:09 -07:00
mihailik
2906656f40
More robust check for Intl.Collator ( #11318 )
...
Comparing to `object` is both too wide and too narrow.
Too wide because `typeof null==="object"` so the check would pass in cases where it shouldn't.
Too narrow because there is no need to forbid `Intl` to be a function. All we care about is to be able to call `Intl.Collator`. Whilst the standard Chakra host might have `Intl` as plain object, it's best to keep it open and only limit to what we really need, not some implementation details.
Mentioned in https://github.com/Microsoft/TypeScript/pull/11268/files
2016-10-03 09:22:24 -07:00
Yui
3bab21c25e
Merge pull request #11268 from Microsoft/fixChakraIntl
...
[Release-2.0.5] Address how Chakra load globalization dll
2016-09-30 10:33:10 -07:00
Andy Hanson
3084ffbf3f
Ensure that checkGrammarModuleElementContext reliably returns true when there is bad grammar
2016-09-30 06:09:37 -07:00
Kanchalai Tanglertsampan
a83a692c40
Fix 11110: this is to address how Chakra load globalization dll
2016-09-29 16:52:45 -07:00
Mohamed Hegazy
a9d97ae22e
Merge pull request #11071 from Microsoft/gulpbuild
...
Add gulp build tasks for cancellationToken and typingsInstaller
2016-09-22 19:11:45 -07:00
Vladimir Matveev
a991673f1a
allow to replace content of script info with empty text ( #11075 )
2016-09-22 17:29:18 -07:00
Zhengbo Li
ff082eb617
Merge pull request #11070 from zhengbli/allowSynthetic
...
set allowSyntheticDefaultImports to true by default for jsconfig.json
2016-09-22 17:13:31 -07:00
Mohamed Hegazy
0cd1af4fd6
Add gulp build tasks for cancellationToken and typingsInstaller
2016-09-22 16:20:27 -07:00
zhengbli
12578a5cc6
set allowSyntheticDefaultImports to true by default for jsconfig.json
2016-09-22 14:55:58 -07:00
Mohamed Hegazy
311e2851b9
Merge branch 'release-2.0.5' into FixNPMLocation
2016-09-22 14:39:12 -07:00
Mohamed Hegazy
f13cef19dd
Add fallback for npm location if not running under node.exe
2016-09-22 14:34:08 -07:00
Vladimir Matveev
1fd0a8ca7d
added unittest for watching @types ( #11027 )
...
added unittest for watching @types
* remove debugger statement, fix linter issues
2016-09-22 14:17:19 -07:00
Zhengbo Li
3c4786d542
fix 9610 ( #11042 )
2016-09-21 16:52:02 -07:00
Vladimir Matveev
2a206b3dd7
add check if expected directory path is non-empty string
2016-09-21 00:02:20 -07:00
Ryan Cavanaugh
53232b9680
Merge pull request #11002 from RyanCavanaugh/watchForTypes
...
Watch for changes in types roots
2016-09-20 17:12:18 -07:00
Ryan Cavanaugh
52fddfa137
Add TODO
2016-09-20 17:12:07 -07:00
Ryan Cavanaugh
6449e5c357
Lint
2016-09-20 16:56:50 -07:00
jramsay
6275da2a52
Merge pull request #10960 from Microsoft/throttleTypingsInstallerRequestsFinal
...
Add throttle limit to typings installer requests
2016-09-20 16:55:21 -07:00
Ryan Cavanaugh
8c899a6c60
An elegant weapon for a more civilized age
2016-09-20 16:52:34 -07:00
Vladimir Matveev
7ca85e0e4b
move throttling to runAsync
2016-09-20 14:14:51 -07:00
Ryan Cavanaugh
2dfcafe2b3
)
2016-09-20 12:11:39 -07:00
Ryan Cavanaugh
3c7b213a8c
PR updates
2016-09-20 12:07:52 -07:00
Ryan Cavanaugh
aa03a04c7f
Use explicit coercion
2016-09-20 11:30:34 -07:00
Jason Ramsay
609e56ed8e
- Reorganize nodeTypingsInstaller and typingsInstaller for testing purposes
...
- Add throttle tests
- Add full npm path
2016-09-19 22:27:11 -07:00
Ryan Cavanaugh
76f51ad37c
Cleanup
2016-09-19 18:28:53 -07:00
Ryan Cavanaugh
c0806439ea
Refactor
2016-09-19 18:20:50 -07:00
Ryan Cavanaugh
46dfd68ef8
Always return []
2016-09-19 18:00:42 -07:00
Ryan Cavanaugh
924a2bf03d
Remove unused
2016-09-19 17:53:10 -07:00
Ryan Cavanaugh
c1630e59d1
Fixup
2016-09-19 17:25:27 -07:00
Ryan Cavanaugh
6de3dc4f8b
Cleanup
2016-09-19 17:04:51 -07:00
Ryan Cavanaugh
2612a74f63
Working version
2016-09-19 17:04:51 -07:00
Vladimir Matveev
55f6d4f90d
do not adjust location being passed to the managed side ( #10999 )
...
do not adjust location being passed to the managed side
* remove redundant code
2016-09-19 16:57:19 -07:00
Vladimir Matveev
286a12edd1
defer settings format options on file until it is explicitly requested ( #10971 )
2016-09-18 21:14:39 -07:00
Jason Ramsay
4b9e554494
Add throttle limit to typings installer requests
2016-09-16 18:36:13 -07:00
Vladimir Matveev
121b04ee36
(lshost): run second module resolution pass if first pass yielded non-ts file ( #10959 )
...
* (lshost): run second module resolution pass if first pass yielded non-ts file
* use length check
2016-09-16 15:49:20 -07:00
Vladimir Matveev
5c604f92d7
correctly update external project if config file is added or removed
2016-09-15 15:39:16 -07:00
Kanchalai Tanglertsampan
7fd5699511
Merge branch 'release-2.0' into release-2.0.5
2016-09-14 16:57:59 -07:00
Ryan Cavanaugh
d37391fcfc
Allow type and NS references to UMD globals from modules
...
Fixes #10638
2016-09-14 16:11:23 -07:00
Mohamed Hegazy
9cabffe5db
Merge branch 'release-2.0' into release-2.0_fix10625
2016-09-14 13:36:07 -07:00
Yui T
14b59b23e7
Address PR
2016-09-14 13:30:15 -07:00
Mohamed Hegazy
b6aeaab019
Update version
2016-09-14 13:13:34 -07:00
Yui T
332b3165c3
Emit declaration file which inferred type alias with its value
2016-09-14 11:54:17 -07:00
Zhengbo Li
3c20df5e93
Create folders for sys.writeFile if folder doesn't exist ( #10848 )
...
* Create folders for sys.writeFile
* Use project root path for emit output file name
* Normalize project file path for external projects
* Patch writeFile for all sys implementations
* Use the original file for single inferred project case
* recursive create directory for all sys implementations
2016-09-13 16:20:42 -07:00