Andy
854462d383
Fix formatting at trailing comma ( #25706 )
2018-07-17 15:21:35 -07:00
Andy
89f2af17f0
Avoid using old node in import fix to use namespace import ( #25729 )
2018-07-17 13:34:56 -07:00
Andy Hanson
1038c76f88
navigationBar: Don't merge unrelated grandchildren
2018-07-16 12:38:38 -07:00
Andy
afdd47c9ce
Simplify rules for isControlFlowEndingStatement ( #25693 )
2018-07-16 11:17:46 -07:00
Jordi Oliveras Rovira
4f411a8cce
Change jsDocTagNames to lower case.
2018-07-14 01:02:20 +02:00
Andy
3f4412b173
getContainingList: Handle TypeAliasDeclaration ( #25614 )
...
* getContainingList: Handle TypeAliasDeclaration
* Handle ClassExpression and InterfaceDeclaration
2018-07-13 10:30:22 -07:00
Andy
27da9eab8d
fixUnreachableCode: Don't delete whole block when non-first line is unreachable ( #25625 )
2018-07-13 09:57:04 -07:00
Andy
88c6ced3c6
indentMultilineCommentOrJsxText: Fix bug when 'parts' is empty ( #25645 )
2018-07-13 09:56:21 -07:00
Andy
af412e39cf
mapTextChangesToCodeEditsUsingScriptInfo: Handle tsconfig.json text change ( #25586 )
...
* mapTextChangesToCodeEditsUsingScriptInfo: Handle tsconfig.json text change
* Can't use `program.getSourceFile()` to determine file existence when multiple projects exist
* Use direct union instead of discriminated union
2018-07-12 12:09:04 -07:00
Andy
f9764d17f0
fixUnusedIdentifier: Support deleting @template tag ( #25597 )
...
* fixUnusedIdentifier: Support deleting @template tag
* Just return createTextRangeFromNode instead of adjusting range
2018-07-12 11:26:17 -07:00
Andy
5f4a03c408
Ensure TypeChecker#getTypeAtLocation returns a defined result ( #25583 )
...
* Ensure TypeChecker#getTypeAtLocation returns a defined result
* Update additional baseline
2018-07-11 16:33:56 -07:00
Andy
52486ae362
Improve isPossiblyTypeArgumentPosition ( #25043 )
...
* Improve isPossiblyTypeArgumentPosition
* Update API (#24966 )
* Handle new Type<Type<
* Add test for `new C < C<`
2018-07-11 11:15:04 -07:00
Andy
5e2102799b
Reduce non-null assertions in getPropertySymbolsFromContextualType ( #24675 )
2018-07-10 16:53:08 -07:00
Andy
7a79a45aab
JSX closing tag completion: Include '>' if not already present ( #25551 )
...
* JSX closing tag completion: Include '>' if not already present
* Expand comment
2018-07-10 16:14:57 -07:00
Andy
b6640e9c5d
getJsxClosingTagAtPosition: Return a result if parent has same name and is unclosed ( #25557 )
2018-07-10 14:31:18 -07:00
Andy
1fc1495863
Increase span of unreachable code error ( #25388 )
...
* Increase span of unreachable code error
* Add a new diagnostic for each range of unreachable statements
* Update baselines
2018-07-10 11:45:16 -07:00
Andy
72be7156d2
Support completions for unique symbol exported from module ( #25537 )
2018-07-10 10:47:43 -07:00
Mohamed Hegazy
4bf42fd1c4
Merge pull request #25535 from Microsoft/fixAsserts
...
Fix assert and check for module symbol
2018-07-10 10:28:17 -07:00
Pi Lanningham
b3b6c3bdbc
Pass sourceFile to getChildren in getTokenAtPositionWorker ( #25505 ) ( #25538 )
...
For performance reasons, we should always pass sourceFile to getChildren
if available.
2018-07-09 18:15:40 -07:00
Andy
e9e5ebee73
getEditsForFileRename: Handle all projects and source-mapped files ( #25522 )
...
* getEditsForFileRename: Handle all projects and source-mapped files
* Update API (#24966 )
* Use areEqual
2018-07-09 17:58:02 -07:00
Mohamed Hegazy
2c70030c8a
Compare normalized fileNames
2018-07-09 17:28:10 -07:00
Mohamed Hegazy
68cd382d8f
Check for a module sysmbol existing before calling getReferencedSymbolsForModule
2018-07-09 17:26:35 -07:00
Benjamin Lichtman
b5f5513e4a
Merge pull request #25329 from uniqueiniquity/jsxFolding
...
Add outlining spans for JSX elements
2018-07-09 12:36:23 -04:00
Benjamin Lichtman
5c7b47e6e3
Pass sourceFile as appropriate
2018-07-09 08:54:57 -07:00
Daniel Rosenwasser
fe2baac33f
Merge pull request #25422 from Microsoft/actualSignatureHelpTriggers
...
Actual signature help trigger filtering
2018-07-08 22:09:35 -07:00
Wesley Wigham
831be5d078
Introduce truncation into node builder and symbol display part writer ( #24258 )
...
* Introduce truncation into node builder and symbol display part writer
* Change default maxa truncation length to 240
* Fancy truncation + higher hard limit
2018-07-06 14:58:46 -07:00
Daniel Rosenwasser
b706adb3dc
Merge remote-tracking branch 'origin/master' into youProbablyMeantThisDeclaration
2018-07-06 10:26:58 -07:00
Daniel Rosenwasser
32bb63cbcf
getSuggestionForNonexistentModule -> getSuggestionForNonexistentExport
2018-07-05 20:45:00 -07:00
Mohamed Hegazy
7a082d45f8
Merge pull request #25253 from micnic/master
...
Add missing jsdoc tag names
2018-07-05 16:36:03 -07:00
Andy
64555aa6a9
navigateTo: Collect results from all referenced projects. ( #25283 )
...
* navigateTo: Collect results from all referenced projects.
* Don't use project references, just source maps
* Move more code to session
* Test when implementation file is deleted
* Use tsserver tests instead of fourslash tests to ensure session is used
* Support find-all-references
* Restore fourslash tests
* Update emit baselines (added missing newline)
* Support rename
* @weswigham code review
* Don't open/close files
* Avoid growing `toDo` too eagerly
* @sheetalkamat code review
* Also get symlinked projects for originalLocation
* Update API (#24966 )
* More @sheetalkamat code review
* Remove unnecessary test
* Update API (#24966 )
2018-07-05 15:39:03 -07:00
Mohamed Hegazy
383319ded6
Merge pull request #25423 from Microsoft/defaultExportName
...
Handle getting name of default export that's an alias
2018-07-05 12:21:53 -07:00
Mohamed Hegazy
8911c19f4f
Merge pull request #25313 from github-john-doe/typo
...
Typo
2018-07-05 11:43:12 -07:00
Andy Hanson
b1e916cae6
Handle getting name of default export that's an alias
2018-07-05 09:03:22 -07:00
Alexander T
f851ab8f3e
Add a suggestion - Did you mean 'typeof import()?. Add tests to handle undated error message
2018-07-04 16:04:29 +03:00
micnic
72bac56d66
Add missing jsdoc tag names
2018-07-04 11:05:33 +03:00
Daniel Rosenwasser
9481faab98
Only provide signature help contextually on a character trigger.
2018-07-03 17:08:32 -07:00
Andy
204b70d7af
Don't add completions from a discriminated union type when the discriminant doesn't match ( #24770 )
...
* Don't add completions from a discriminated union type when the discriminant doesn't match
* Move code to checker
* Update API (#24966 )
* Use isTypeIdenticalTo
2018-07-03 17:05:51 -07:00
Andy
064ecd449e
Support code-fix-all for importFixes ( #25137 )
...
* Support code-fix-all for importFixes
* Change description
* Update API (#25283 )
2018-07-03 15:19:15 -07:00
Daniel Rosenwasser
0fd587a3c3
Account for comments.
2018-07-03 13:02:14 -07:00
Sheetal Nandi
95ad71864b
Fix the completion when base type is unknown type from unknown namespace
...
Fixes #25387
2018-07-03 12:35:25 -07:00
Andy
304d45d833
Canonicalize path before calling startsWith ( #25364 )
...
* Canonicalize path before calling `startsWith`
* More specific type for sourceDirectory, and add fourslash test
* Update API (#24966 )
2018-07-03 11:23:19 -07:00
Daniel Rosenwasser
e13fd0c568
Merge pull request #24915 from Microsoft/triggerSignatureHelpIArdlyKnowSignatureHelp
...
Trigger characters in signature help
2018-07-02 23:36:57 -07:00
Andy
efc1b7df08
More thoroughly test navigateTo ( #25239 )
...
* More thoroughly test navigateTo
* Fix #25233 and #25237
* Update API (#24966 )
2018-07-02 19:25:27 -07:00
Andy
5c57e14000
goToDefinition: Don't go to jsx constructor signature ( #25382 )
2018-07-02 17:18:07 -07:00
Daniel Rosenwasser
e56a5c1b35
Lints.
2018-07-02 16:40:08 -07:00
Andy Hanson
271bbb027c
Merge branch 'master' into fixAddMissingMember_all_dedup
2018-07-02 16:06:57 -07:00
Daniel Rosenwasser
9651c4231e
Account for trigger reasons, as implemented by Roslyn.
2018-07-02 16:04:48 -07:00
Daniel Rosenwasser
c046958752
Merge remote-tracking branch 'origin/master' into triggerSignatureHelpIArdlyKnowSignatureHelp
2018-07-02 15:36:41 -07:00
Mohamed Hegazy
956f9d0be2
Merge pull request #25335 from Microsoft/codeFixAddMissingEnumMember_all
...
Combine code-fix-all for missing class member and missing enum member
2018-07-02 15:14:19 -07:00
Andy Hanson
e0109ea93e
Remove shadowed variable
2018-07-02 13:26:31 -07:00