696 Commits

Author SHA1 Message Date
Vladimir Matveev
dda24f6d70 allow to compute change ranges only for snapshots from the same script version cache 2016-12-14 14:43:45 -08:00
Vladimir Matveev
e68161adfa when language service is disabled - build program using only open files (#12809) 2016-12-13 13:21:32 -08:00
Jason Ramsay
5829ca82d0 use localUse local updatedFileNames - this way we'll know that set of names is definitely cleared 2016-12-09 14:44:08 -08:00
Jason Ramsay
05160cae8e Rename fileExtensionMap: fileExtensionMapItem[] to extraFileExtensions: FileExtensionInfo[] 2016-12-09 13:36:43 -08:00
Jason Ramsay
5f46e488b7 Mark containing project as dirty when file is closed
(Note: adding this until PR #12789 is merged in so that unit tests pass)
2016-12-09 11:12:00 -08:00
Jason Ramsay
4cb5a36cb4 Merge branch 'master' into tsconfigMixedContentSupport 2016-12-09 10:58:33 -08:00
Jason Ramsay
d52894302a Changes due to CR comments 2016-12-08 17:56:08 -08:00
Vladimir Matveev
7da3383504 do not use ScriptVersionCache for closed files (#12777) 2016-12-08 16:17:42 -08:00
Jason Ramsay
7a11453e35 Fix merge issues 2016-12-07 15:45:41 -08:00
Jason Ramsay
1c3689edef Merge branch 'master' into tsconfigMixedContentSupportRedux 2016-12-07 15:33:42 -08:00
Jason Ramsay
64dad30ca0 Reduced version from CR comments 2016-12-07 15:31:46 -08:00
Vladimir Matveev
c1ec7eff08 remove projects that were no present in the input list in openExternalProjects (#12699)
remove projects that were no present in the input list in openExternalProjects
2016-12-06 16:44:46 -08:00
Vladimir Matveev
225d6d6aef use XDG base directory compatible cache location (#12676)
* use XDG base directory compatible cache location

* use ~/Library/Caches on darwin
2016-12-05 13:40:56 -08:00
zhengbli
f6f866e88c Reset the noEmitForJsFiles option when updating compiler options (#12570) 2016-11-29 23:30:14 -08:00
Vladimir Matveev
1418fd170d send begin/end notifications when installing types packages (#12551) 2016-11-29 10:14:22 -08:00
Vladimir Matveev
c05bf3b0a2 respect casing when comparing names of config files (#12474) 2016-11-23 12:34:00 -08:00
jramsay
855431a943 Merge pull request #12373 from Microsoft/RenameTypingOptions
Rename typingOptions.enableAutoDiscovery to typeAcquisition.enable
2016-11-22 17:22:30 -08:00
Jason Ramsay
2b89d919a0 Addressing CR feedback 2016-11-22 17:08:43 -08:00
Vladimir Matveev
680fb2ea1b add typings installer user agent for npm requests (#12446)
* add typings installer user agent for npm requests

* address PR feedback: change name of user agent
2016-11-22 14:56:18 -08:00
Zhengbo Li
103090b60e report config errors when config file changed (#12372) 2016-11-22 10:56:46 -08:00
Jason Ramsay
70e130b08c Maintain support for deprecated API typingOptions.enableAutoDiscovery 2016-11-21 18:17:27 -08:00
Zhengbo Li
110c3ac6ac Add locale options to tsserver (#12369)
* add locale options to tsserver

* make sys an argument

* fix mistakes and address code review
2016-11-21 10:30:38 -08:00
Mohamed Hegazy
f8b8465a4c Merge pull request #12378 from andraaspar/master
Fix issue #12260.
2016-11-20 15:07:31 -08:00
András Parditka
c96bc89982 Fix issue #12260.
Fixed tsserver crashing on Android (Termux).
2016-11-19 11:28:11 +01:00
Jason Ramsay
5a9451ae23 Rename typingOptions.enableAutoDiscovery to typeAcquisition.enable 2016-11-18 18:14:32 -08:00
Jason Ramsay
464bc0e9e0 Merge branch 'master' into tsconfigMixedContentSupportRedux 2016-11-18 16:15:15 -08:00
Jason Ramsay
7dd30dbfd4 tsconfig.json mixed content support 2016-11-18 15:51:28 -08:00
Vladimir Matveev
a2b13d05f2 pass project name as a constructor parameter (#12333) 2016-11-17 15:12:32 -08:00
Vladimir Matveev
4c2474463c ports #12237, #12258 and #12259 into master (#12274)
* treat failures to resolve module name as missing packages (#12237)

* added extra check to prevent multiple installation of the same typing, added version field to telemetry event (#12258)

* added extra check to prevent multiple installation of the same typing, added version field to telemetry event

* use ts.version

* switch to execSync to ensure that no install orders are interleaved (#12259)

* Make sure version is public

* Update file with version string for nightly release
2016-11-15 12:53:46 -08:00
Vladimir Matveev
f13e6d4ca6 enable syntactic features if project size exceeded the limit, send events when state of language service changes (#12190)
* enable syntactic features if project size exceeded the limit, send events when state of language service changes

* allow getting compiler options diagnostics when language service is disabled
2016-11-14 15:10:32 -08:00
Vladimir Matveev
f11e8a3c69 add 'installSuccess' flag to telemetry, cache misses if npm install fails (#12163)
* add 'installSuccess' flag to telemetry, cache misses if npm install fails

* fix typo
2016-11-14 14:10:22 -08:00
Vladimir Matveev
36511838a4 allow getting compiler options diagnostics when language service is disabled 2016-11-14 10:41:48 -08:00
Vladimir Matveev
3b09010c7c enable syntactic features if project size exceeded the limit, send events when state of language service changes 2016-11-11 17:35:11 -08:00
Mohamed Hegazy
d537b79c61 Merge release-2.1 into master (#12157)
* Update LKG

* Update version

* Update LKG

* Skip overloads with too-short function parameters

If the parameter of an overload is a function and the argument is also a
function, skip the overload if the parameter has fewer arguments than
the argument does. That overload cannot possibly apply, and should not
participate in, for example, contextual typing.

Example:

```ts
interface I {
  (a: number): void;
  (b: string, c): void;
}
declare function f(i: I): void;
f((x, y) => {});
```

This code now skips the first overload instead of considering.

This was a longstanding bug but was only uncovered now that more
functions expressions are context sensitive.

* Test skip overloads w/too-short function params

1. Update changed baseline.
2. Add a new test with baseline.

* Minor style improvements

* Ignore optionality when skipping overloads

* Do not use contextual signatures with too few parameters

* isAritySmaller runs later: getNonGenericSignature

* rewrite void-returning statements in constructors that capture result of super call (#11868)

* rewrite void-returning statements in constructors that capture result of super call

* linter

* Update LKG

* Fix emit inferred type which is a generic type-alias both fully and partially fill type parameters

* Add tests and baselines

* Skip trying to use alias if there is target type

* Update baselines

* Add diagnostics to remind adding tsconfig file for certain external project (#11932)

* Add diagnostics for certain external project

* Show tsconfig suggestion

* fix lint error

* Address pr

* fix comment

* Update error message

* Flag for not overwrite js files by default without generating errors (#11980)

* WIP

* Properly naming things

* refactor

* apply the option to all files and check out options

* Fix typo

* Update LKG

* lockLinter

* use local registry to check if typings package exist (#12014) (#12032)

use local registry to check if typings package exist

* Add test for https://github.com/Microsoft/TypeScript/pull/11980 (#12027)

* add test for the fix for overwrite emitting error

* cr feedback

* enable sending telemetry events to tsserver client (#12034) (#12051)

enable sending telemetry events

* Update LKG

* Reuse subtree transform flags for incrementally parsed nodes (#12088)

* Update LKG

* Update version

* Update LKG

* Do not emit "use strict" when targeting es6 or higher or module kind is es2015 and the file is external module

* Add tests and baselines

* [Release 2.1] fix11754 global augmentation (#12133)

* Exclude global augmentation from module resolution logic

* Address PR: check using string literal instead of NodeFlags.globalAugmentation

* Remove comment
2016-11-10 14:28:34 -08:00
Zhengbo Li
4dc58dde38 Exclude js files in non-configured projects compile-on-save emitting (#12118)
* Exclude js files in non-configured projects CoS emitting

* remove unnecessary method
2016-11-10 14:12:24 -08:00
Vladimir Matveev
9a9f45f0fb use createHash from ServerHost instead of explicit require (#12043)
* use createHash from ServerHost instead of explicit require

* added missing method in ServerHost stub
2016-11-08 15:32:53 -08:00
Vladimir Matveev
9e3d6efb19 reduce set of files being watched, increase polling interval (#12054) (#12092) 2016-11-07 21:13:11 -08:00
Vladimir Matveev
be2e8e85d6 property handle missing config files in external projects (#12094) 2016-11-07 15:49:19 -08:00
Vladimir Matveev
4ffdea838a Ports #12051 and #12032 into master (#12090)
* use local registry to check if typings package exist (#12014)

use local registry to check if typings package exist

* enable sending telemetry events to tsserver client (#12035)

enable sending telemetry events
2016-11-07 13:36:08 -08:00
Andy Hanson
d5c67312f6 Add realpath implementation for lshost 2016-11-07 12:42:12 -08:00
Zhengbo Li
1c004bf317 Port #12027, #11980 and #11932 to master (#12037)
* add test for the fix for overwrite emitting error

* cr feedback
2016-11-03 21:13:41 -07:00
Vladimir Matveev
fdb3b6857d enable non-ts extensions in inferred projects by default 2016-10-28 11:30:00 -07:00
Zhengbo Li
4513ae3034 disable CoS for inferred projects (#11909) 2016-10-27 18:00:21 -07:00
Andy Hanson
12f6dcefa1 Revert "Merge pull request #11354 from Microsoft/map4"
This reverts commit adfdae0dc47db5ad8248d26929a7b31cb895a539, reversing
changes made to aad663cebf6a89f7029af57d8cb6a0a011854978.
2016-10-27 15:50:21 -07:00
Andy Hanson
bcc0807198 Respond to PR comments 2016-10-27 13:14:56 -07:00
Andy Hanson
867093707b Merge branch 'master' into map4 2016-10-27 12:36:50 -07:00
Andy Hanson
dec5f4b39a Merge branch 'master' into map4 2016-10-27 12:21:06 -07:00
Andy Hanson
0f8003fb39 Make extension property of ResolvedModule optional; introduce ResolvedModuleFull interface for when the extension is provided. 2016-10-27 11:35:20 -07:00
Andy Hanson
c958c47ef5 Merge branch 'master' into map4 2016-10-26 11:05:51 -07:00
Andy Hanson
9130fbd731 Merge branch 'master' into refactor_module_resolution 2016-10-26 08:27:34 -07:00