Component commits:
755e1cbc88 Add minimal failing test
d52b9d3cee Fix checker initialization crash with esModuleInterop global merges resolving to ImportEquals aliases
Co-authored-by: Andrew Branch <andrew@wheream.io>
Component commits:
191aa682f8 Disable JSX attribute snippet if attribute is acutally the HTML tag
1786d5e278 Add more tests of text before and after
7ac5e596ce Big comment
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
Component commits:
ddc106b854 Decrease recursion depth limit to 3 + smarter check for recursion
86185ad96b Accept new baselines
52e10d3a98 Always set last type id
5f37d89c88 Keep indexed access recursion depth check
9df07a8482 Less expensive and corrected check for broadest equivalent keys
Co-authored-by: Anders Hejlsberg <andersh@microsoft.com>
Component commits:
0612e180c2 Fix checker initialization crash
2064b74c2d Move checks to a place that makes more sense
Co-authored-by: Andrew Branch <andrew@wheream.io>
* Cherry-pick PR #47007 into release-4.5
Component commits:
48b9027927 Use features for selected module resolution rather than all features for type reference directives, since they can add restrictions to resolutions
* Update baselines for error in stable release versions
Co-authored-by: Wesley Wigham <t-weswig@microsoft.com>
Co-authored-by: Andrew Branch <andrew@wheream.io>
Component commits:
e19aed36d8 Fix Awaited<T> for onfulfilled callbacks with more than one argument
f4b3ef2f95 Merge branch 'main' into fix46934
Co-authored-by: Ron Buckton <rbuckton@microsoft.com>
Component commits:
615a82c6b9 Make specifier generation from export map information conditional on module resolution mode
Co-authored-by: Wesley Wigham <t-weswig@microsoft.com>
Component commits:
e77514a53b Add failing test.
3c0d51b3ed Check for type parameters on the original type when asking for the type argument constraint.
e7c8095935 Update tests/cases/fourslash/stringLiteralTypeCompletionsInTypeArgForNonGeneric1.ts
Co-authored-by: Daniel Rosenwasser <drosen@microsoft.com>
* Properly check whether union type contains only primitive types
* Add regression test
* Remove 'export' modifier from test
Co-authored-by: Anders Hejlsberg <andersh@microsoft.com>
* prototype creation for method override completion snippet
* WIP: start using codefix `addNewNodeForMemberSymbol` to create method decl node
* update type of addNewNodeForMemberSymbol
* add more tests and support more cases
* add more tests and fix some details
* wip: more fixes and tests
* expose check override modifier in checker
* fix test
* WIP: add snippet support
* WIP: snippet support on emitter, adding snippets in completions
* make add snippets work with overloads (not synced)
* fix snippet adding
* rebase
* WIP: try to add snippet escaping in emitter
* support escaping in snippets
* small fixes; fixed tests
* more tests and fixes
* fix new tests
* fix modifier inheritance for overloads
* merge conflict fixes; remove comments
* throw error if setOptions is called but not implemented
* fix newline handling
* fix weird stuff
* fix tests
* fix more tests
* Fix unbound host.getNewLine
* fix isParameterDeclaration changes
* rename diagnostic to status and remove snippets from public api
* rename emitter functions + fix indentation
* check completion kind before calling isclasslikemembercompletion
* fix missing type parameters
* Revert "fix missing type parameters"
This reverts commit 7bdeaa86dae61822a8ee46c13a3680708c6928af.
* add isAmbient flag to addNewNodeForMemberSymbol
* add test for abstract overloads
* refactor snippet escaping support
* add user preference flag for enabling class member snippets
* update API baseline
* update tabstop order
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
* Added/updated tests.
* Accepted baselines.
* Update test.
* Update instantiateMappedType to work specially when 'any' replaced an array.
* Accepted baselines.
* Ensure check works when constraint is a union of arrayish types, just like in `Promise.all`.
* Accepted baselines.
* Update test for indirect instantiation of a mapped type.
* Accepted baselines.
* Update test comment.
* Accepted baselines.
* Added tuple test case.
* Accepted baselines.
* Don't add special behavior for tuples.
* Accepted baselines.
* Revert "Don't add special behavior for tuples."
This reverts commit f01ae16e6589ec42a931b018ffea03453df60e35.
* Accepted baselines.