Commit Graph
16957 Commits
Author SHA1 Message Date
Anders Hejlsberg ce6fd5eeaa Exception for 'any' constraint only applies to type parameters 2018-05-08 09:42:03 -07:00
csigs ec974a599a LEGO: check in for master to temporary branch. 2018-05-08 10:10:40 +00:00
csigs 7b888906f7 LEGO: check in for master to temporary branch. 2018-05-08 04:10:32 +00:00
AndyandGitHub 123ae530a7 convertToEs6Module: Replace 'module.exports =' with 'export default' without replacing nodes (#23948) 2018-05-07 15:45:43 -07:00
AndyandGitHub a50001c9da Treat 'import("")' as a module reference (#23949) 2018-05-07 15:42:36 -07:00
Sheetal NandiandGitHub 8fc4242097 Merge pull request #23915 from Microsoft/jsonCompletions
Suggest json files in completion when resolveJsonModule is set and module resolution is node
2018-05-07 12:53:09 -07:00
AndyandGitHub 004a558125 Avoid unnecessary newline when inserting node at start of class (#23935) 2018-05-07 12:40:33 -07:00
AndyandGitHub 2604bb4dd3 Add 'string' ScriptElementKind (#23821) 2018-05-07 12:39:00 -07:00
AndyandGitHub 05b250691f Expose ProjectService to plugins (#23824)
Add refreshDiagnostics() method to Project
2018-05-07 12:38:38 -07:00
Sheetal Nandi 92296b34dd Rename 2018-05-07 12:14:53 -07:00
Mohamed HegazyandGitHub e39e6fc780 Merge pull request #23894 from Microsoft/importOutlining
Add outlining spans for Import declarations
2018-05-07 12:08:11 -07:00
AndyandGitHub a05feed839 generateGetAccessorAndSetAccessor: Preserve a parameter property declaration (#23318) 2018-05-07 11:33:00 -07:00
AndyandGitHub 7fa5f70b9a Remove verify.referencesAre, verify.referencesOf, verify.rangesReferenceEachOther (#23900) 2018-05-07 10:08:38 -07:00
csigs f3e4f596a9 LEGO: check in for master to temporary branch. 2018-05-05 22:10:26 +00:00
Mohamed Hegazy 64d6b24c87 Code review comments 2018-05-05 13:22:48 -07:00
Mohamed Hegazy 3bc3f2d404 Add comments to kinds 2018-05-05 12:38:59 -07:00
Mohamed Hegazy 12ed49bada Revert adding named import binding list outlining spans 2018-05-05 12:04:12 -07:00
Mohamed Hegazy 8072dae16b Change kind name to imports 2018-05-05 12:02:40 -07:00
Paul Koerbitz a2d42a6421 Add WSH as an alias for WScript in scripthost.d.ts 2018-05-05 17:03:05 +02:00
csigs 4c48e2ca05 LEGO: check in for master to temporary branch. 2018-05-05 04:10:17 +00:00
Sheetal Nandi e8cd6b1111 Suggest json files in completion when resolveJsonModule is set and module resolution is node
Fixes #23899
2018-05-04 17:10:48 -07:00
AndyandGitHub cecad27662 findAllReferences: Treat a nested property in a jsdoc type literal as a definition (#23901)
* findAllReferences: Treat a nested property in a jsdoc type literal as a definition

* Fix lint
2018-05-04 16:58:07 -07:00
Mohamed Hegazy ea96638701 Fix indentation 2018-05-04 15:59:55 -07:00
Mohamed Hegazy 82381280cf Merge branch 'master' into importOutlining 2018-05-04 15:58:56 -07:00
AndyandGitHub 21a6a9afcc Remove unused interface (#23905) 2018-05-04 15:51:46 -07:00
Wesley WighamandGitHub 618da24d6a Look at simplified types when checking distributive conditional constraints (#23884) 2018-05-04 14:35:39 -07:00
AndyandGitHub df9e2621d2 Fix find-all-refs for import("mod").Foo where Foo is a typedef (#23881)
* Fix find-all-refs for import("mod").Foo where Foo is a typedef

* Add Debug.assertNever message

* Ensure SemanticMeaning is matched
2018-05-04 13:32:40 -07:00
Sheetal NandiandGitHub 5133c70e7e Merge pull request #22167 from Microsoft/requireJson
Resolve the modue names with "modulename.json" to json files when doing node module resolution
2018-05-04 12:42:10 -07:00
Sheetal NandiandGitHub ec19733f61 Merge pull request #22072 from Microsoft/configFileWithIncorrectProjectRoot
Search till root just like tsc when the projectRootPath specified doesnt contain the info.path
2018-05-04 12:23:56 -07:00
Mohamed Hegazy 2d725feb51 Add outlining span for named bindings in import declarations 2018-05-04 11:26:03 -07:00
Sheetal Nandi c4143ae0c1 Update the message for resolveJsonModule as per PR feedback 2018-05-04 11:14:39 -07:00
Sheetal Nandi 4e6586deb8 PR feedback 2018-05-04 10:45:46 -07:00
Mohamed Hegazy de13cc4692 Merge remote-tracking branch 'origin/master' into importOutlining 2018-05-04 10:40:58 -07:00
Mohamed Hegazy f1713c92d3 Add outlining spans for import declarations 2018-05-04 10:39:47 -07:00
Mohamed HegazyandGitHub 1a320fcd5e Merge pull request #23883 from Microsoft/outliningSpanKind
Fix #22419: Add `kind` field to `OutliningSpan`
2018-05-04 09:16:01 -07:00
Ron BucktonandGitHub b172311778 Merge pull request #23882 from Microsoft/reduceStackDepthPart1
Minor changes to reduce stack depth during emit
2018-05-03 16:46:11 -07:00
Ron BucktonandGitHub 4c6e93b166 Merge pull request #23878 from Microsoft/vfsBaselines
New vfs baselines follow-up
2018-05-03 16:35:48 -07:00
Mohamed Hegazy e52efb04f3 Fix #22419: Add kind field to OutliningSpan 2018-05-03 16:28:55 -07:00
Ron Buckton de10e82e8a Add assertion message 2018-05-03 16:27:15 -07:00
Ron Buckton a7074e2054 Minor changes to reduce stack depth during emit 2018-05-03 16:04:52 -07:00
Sheetal Nandi 92d08738d5 Merge branch 'master' into configFileWithIncorrectProjectRoot 2018-05-03 15:56:00 -07:00
Sheetal Nandi 15f9ea3d14 Merge branch 'master' into requireJson 2018-05-03 15:35:54 -07:00
Wesley WighamandGitHub 0d7d75ec64 Add formatting rule for import type import keyword and open paren (#23872) 2018-05-03 14:57:01 -07:00
AndyandGitHub 406ca06e8e Fix bug: JSDocPropertyTag is a declaration (#23876) 2018-05-03 14:19:15 -07:00
Ron Buckton f67afa098f Unpatch vfs resolver and default lib rename 2018-05-03 14:18:50 -07:00
Ron Buckton 9891b699a7 Unpatch project tests 2018-05-03 14:05:06 -07:00
AndyandGitHub 38016f9300 Implement feedback on "Improve completions testing" (#23842) 2018-05-03 13:04:08 -07:00
AndyandGitHub bad3a44bb2 In insertNodeAfter, handle file with no trailing newline (#23814) 2018-05-03 12:58:42 -07:00
Wesley WighamandGitHub eb80e9a51c node builder should strive to preserve mapped type keyofness (#23815) 2018-05-03 12:38:31 -07:00
Wesley WighamandGitHub 23b9a23455 Ensure properties with computed names are visited (#23787) 2018-05-03 11:21:29 -07:00