Commit Graph

2479 Commits

Author SHA1 Message Date
Alex Ryan
f9bd3afb8f Fix comment typo in types.ts 2018-05-08 14:51:49 -07:00
Wesley Wigham
8ab5be9a86 Add hook for adding transforms into the declaration emit pipeline after the main one (#23946)
* Add hook for adding transforms into the declaration emit pipeline after the main one

* Fix lint
2018-05-08 11:20:48 -07:00
Ryan Cavanaugh
ffa0ccba2a Project References Core support 2018-05-07 15:12:50 -07:00
Sheetal Nandi
15f9ea3d14 Merge branch 'master' into requireJson 2018-05-03 15:35:54 -07:00
Armando Aguirre
1d593fd81e Merge pull request #23191 from armanio123/AddVueSupport
Added deferred ScriptKind and renamed JsFileExtensionInfo to FileExte…
2018-05-02 18:13:34 -07:00
Ron Buckton
ab8c3fa3ac Pre-generate names ahead of time 2018-05-02 13:34:14 -07:00
Sheetal Nandi
579748bc2b Merge branch 'master' into requireJson 2018-04-30 11:44:09 -07:00
Anders Hejlsberg
25d5952096 Merge pull request #23751 from Microsoft/reduceIntersectionTypes
Remove redundant primitive types from intersections
2018-04-28 11:42:56 -07:00
Daniel Rosenwasser
443c1c7965 Merge pull request #23327 from Microsoft/importDotMeta
Support 'import.meta'
2018-04-27 20:52:28 -07:00
Daniel Rosenwasser
bc0d3e1297 Look for top-level imports/exports before diving into the tree. 2018-04-27 17:25:23 -07:00
Anders Hejlsberg
cfe7284876 Merge branch 'master' into reduceIntersectionTypes 2018-04-27 15:54:17 -07:00
Anders Hejlsberg
6c28da328e Merge pull request #23672 from Microsoft/intersectionWithUnionConstraint
Type relationships for intersections with union constraints
2018-04-27 15:53:00 -07:00
Anders Hejlsberg
d25a6ec9ad Remove redundant primitive types from intersections with literal types 2018-04-27 10:40:16 -07:00
Daniel Rosenwasser
9672116d8c Merge remote-tracking branch 'origin/master' into importDotMeta 2018-04-25 22:21:56 -07:00
Wesley Wigham
ec05f29632 Make signature help node building cancellable (#23543)
* Make token building cancellable

* Scope cancellation token, make find all refs and quickinfo cancellable

* Make completion entry details cancellable

* Actually accept public API update

* Add test verifying cancellations within checker for select language service operations

* Document runWithCancellationToken a bit more

* Add post-cancellation verification to test
2018-04-25 11:44:13 -07:00
Anders Hejlsberg
3707f7dfbe Handle more situations involving combined constraints of intersections 2018-04-25 10:58:08 -07:00
Andy
583bcea603 Always parse an argument for an ElementAccessExpression (#23683) 2018-04-25 10:08:35 -07:00
Anders Hejlsberg
d90d6b9277 Remove more intersections with empty value domains from union types 2018-04-24 15:55:15 -07:00
Anders Hejlsberg
0179d97403 Merge pull request #23592 from Microsoft/improveIndexTypes
Support number and symbol named properties with keyof and mapped types
2018-04-23 13:22:56 -07:00
Anders Hejlsberg
652e4932f6 Address CR feedback 2018-04-21 09:32:46 -07:00
Armando Aguirre
5434c4146e Added deferred project context test, marked JsFileExtension as deprecated 2018-04-20 16:50:57 -07:00
Andy
5c94bef0e1 Add 'renameFile' command to services (#23573)
* Add 'renameFile' command to services

* renameFile -> getEditsForFileRename

* Support `<reference path>` directives
2018-04-20 13:43:09 -07:00
Nathan Shively-Sanders
e65681a2b7 Fix assert in getjsdochost (#23575)
* Fix assert in getJSDocHost

* Update public API to add wider type

* Remove now-unnecessary type assertion
2018-04-20 10:41:58 -07:00
Daniel Rosenwasser
84b12910e8 Merge pull request #23430 from Microsoft/taggedTemplateTypeArguments
Allow type arguments in generic tagged templates
2018-04-19 15:50:19 -07:00
Daniel Rosenwasser
6ee4989674 Merge pull request #23408 from Microsoft/autoPretty
--pretty-er output by default
2018-04-18 23:10:02 -07:00
Armando Aguirre
db08a77c3f Merge branch 'master' into AddVueSupport 2018-04-18 15:51:58 -07:00
Anders Hejlsberg
9e4e215a03 Revise IndexType to have stringsOnly property 2018-04-18 15:43:22 -07:00
Armando Aguirre
f17603d318 Addressed PR comments 2018-04-18 12:58:40 -07:00
Andy
afde2b5bf3 MissingDeclaration is only ever a Statement (#23485) 2018-04-18 07:55:57 -07:00
Daniel Rosenwasser
6953fa1732 flags--; 2018-04-17 17:06:50 -07:00
Andy
f5101e21c3 Find-all-references: Don't crash on 'typeof import' (#23448)
* Find-all-references: Don't crash on 'typeof import'

* Move `| ImportTypeNode` out of `AnyImportOrReExport`
2018-04-17 15:01:36 -07:00
Anders Hejlsberg
16cd5580a6 Merge branch 'master' into improveIndexTypes
# Conflicts:
#	src/compiler/checker.ts
#	src/server/utilities.ts
2018-04-16 16:18:29 -07:00
Armando Aguirre
9923003ee6 Merge branch 'master' into AddVueSupport 2018-04-16 13:45:34 -07:00
Andy
cc6bc763bc Simplify getConvertibleFieldAtPosition (#23315) 2018-04-16 09:30:10 -07:00
Daniel Rosenwasser
da7967a3cf Added basic support for parsing/emitting type arguments in tagged template expressions. 2018-04-13 23:45:16 -07:00
Daniel Rosenwasser
bd3e854b31 Automatically configure tsc output and provide a new 'diagnosticStyle' option. 2018-04-13 21:19:24 -07:00
Sheetal Nandi
ce08af4dfe Merge branch 'master' into requireJson 2018-04-13 15:26:16 -07:00
Andy
a004571d3e Update outdated comments (#23320) 2018-04-11 07:56:42 -07:00
Daniel Rosenwasser
9e2bbb6f8a Basic parsing/emitting support for 'import.meta'. 2018-04-10 12:55:43 -07:00
Andy
556a8010b9 Fix bug: ensure 'reportsUnnecessary' is actually sent by tsserver (#23293) 2018-04-10 10:15:15 -07:00
Wesley Wigham
83ab341531 Allow variable statements used as declaration sites to be marked visible (#22798)
* Allow variable statements used as declaration sites to be marked visible and included in declaration emit by alias marking

* Dont forget to transform statements

* Accept baselines

* Accept updated baselines for new test

* Emit scope fix markers

* Add partial private variable declaration emit test
2018-04-09 14:30:40 -07:00
Anders Hejlsberg
ff20f38405 Add support for numbers and symbols in keyof (but keep it disabled) 2018-04-09 07:45:13 -10:00
Andy
9762598775 findAllReferences: forEachRelatedSymbol can always include shorthand destructuring (#23223)
* findAllReferences: forEachRelatedSymbol can always include shorthand destructuring

* Update rename tests
2018-04-06 16:30:55 -07:00
Andy
e0dbdad22a IndexInfo#declaration is always an IndexSignatureDeclaration (#23232) 2018-04-06 16:20:45 -07:00
Sheetal Nandi
9d3ad545bc Reverted unintentional formatting changes 2018-04-06 13:37:30 -07:00
Armando Aguirre
50eb512566 Added deferred ScriptKind and renamed JsFileExtensionInfo to FileExtensionInfo 2018-04-05 17:30:04 -07:00
Anders Hejlsberg
39bb93fb1a Move nameType to base Symbol, generate nameType properties where missing 2018-04-05 16:00:06 -07:00
Sheetal Nandi
a14396320b Resolve json modules only when --resolveJsonModule is specified 2018-04-05 15:37:13 -07:00
Sheetal Nandi
9f724156be Merge branch 'master' into requireJson 2018-04-05 15:18:21 -07:00
Andy
24842b4002 When --noUnusedLocals/--noUnusedParameters is disabled, add suggestions instead of errors (#22361)
* When --noUnusedLocals/--noUnusedParameters is disabled, add suggestions instead of errors

* Improve performance: do not add unused suggestion diagnostics unless asking for a suggestion

* Add "unused" flag to diagnostics

* Code review

* reportsUnused -> reportsUnnecessary

* Fix test
2018-04-05 12:33:00 -07:00