Nathan Shively-Sanders
248cd06ad3
Parsing done; types are uglier; doesn't crash but doesn't pass
2018-05-01 11:34:15 -07:00
Nathan Shively-Sanders
5fab72fae4
Add types
2018-05-01 10:16:47 -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
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
Anders Hejlsberg
9e4e215a03
Revise IndexType to have stringsOnly property
2018-04-18 15:43:22 -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
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
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
Anders Hejlsberg
39bb93fb1a
Move nameType to base Symbol, generate nameType properties where missing
2018-04-05 16:00:06 -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
Anders Hejlsberg
a8d6a45cd6
Move nameType from SymbolLinks to TransientSymbol
2018-04-05 06:25:34 -07:00
Wesley Wigham
de669cf827
Only include unique symbols when getting index types for access checks ( #23145 )
...
* Only include unique symbols when getting index types for access checks
* Filter all nonstrings
* Inline ternary
2018-04-04 18:03:21 -07:00
Wesley Wigham
c676893dc9
SyntaxKind.ImportTypeNode -> SyntaxKind.ImportType ( #23120 )
2018-04-03 13:32:03 -07:00
Wesley Wigham
a81a645128
Enable member completions for import types ( #23085 )
...
* Enable member completions for import types
* Add missing semicolon
* Compact statements
* Ye doth compacteth too much
* Handle class accesibility
2018-04-03 11:53:01 -07:00
Wesley Wigham
414bc49cc4
Module or import types ( #22592 )
...
* Type side of import types
* Value side of import types
* Accept library changes
* Refined implementation, more tests
* Allow resolutions to be performed late if the resolution still results in a file already in the build
* Add another test case
* Add some jsdoc usages
* Allow nodebuilder to use import types where appropriate
* Parse & check generic instantiations
* use import types in nodebuilder for typeof module symbols
* Wire up go to definition for import types
* Accept updated type/symbol baselines now that symbols are wired in
* PR feedback
* Fix changes from merge
* Walk back late import handling
* Remove unused diagnostic
* Remove unrelated changes
* Use recursive function over loop
* Emit type arguments
* undo unrelated change
* Test for and support import type nodes in bundled declaration emit
2018-04-02 10:18:23 -07:00
Anders Hejlsberg
b3829523b2
Merge pull request #23039 from Microsoft/fixConditionalConstraints
...
Improve conditional type constraints
2018-03-31 11:56:05 -07:00
Wesley Wigham
9b558f9535
Remove _this, _super, and _newTarget name conflict errors ( #22890 )
...
* Add new generated name kind for reused transpiler variables
* Remove error on _super or _newTarget conflict
* Add test with super helper conflict
* Remove error on _this conflict
* Fix lint
* Use flags instead of generated kinds, inline some things
* Accept rename
* Remove trailing whitespace
* Move helper emit into printer, rather than emitter"
* passthru module and target
* New test, accept baselines
* Make members private
2018-03-30 17:43:37 -07:00
Anders Hejlsberg
6f681d276a
Constraint of 'T extends U ? T : F' should be 'T & U | F'
2018-03-30 15:28:01 -07:00
Mohamed Hegazy
b47c1fd5a1
Merge pull request #22593 from Kingwl/module-spelling-fix
...
add spelling suggestion support for module
2018-03-29 16:56:43 -07:00
Andy
09cfc0f9ef
Remove unused method ( #23000 )
2018-03-29 15:44:06 -07:00
Wesley Wigham
ea8904e33d
Propagate noDefaultLib comment into emitted declaration files ( #23003 )
2018-03-29 15:38:29 -07:00
Benjamin Lichtman
d2d0f86831
Merge pull request #20374 from uniqueiniquity/symlinkTypeReferenceDirective
...
Handle failure to properly resolve type reference directives
2018-03-29 15:26:30 -07:00
Sheetal Nandi
a0fe072fa7
Merge pull request #22613 from Microsoft/configFileErrors
...
Make config file parsing errors available through program and expose API
2018-03-29 13:08:03 -07:00
Anders Hejlsberg
dc3eb3c27e
Erase 'infer T' locations in conditional type constraints
2018-03-28 13:16:11 -07:00