Anders Hejlsberg
c0eb742cf3
Merge branch 'master' into fixEmptyObjectFalsiness
2018-09-18 06:28:27 -07:00
Ryan Cavanaugh and GitHub
8ca01dfc9f
Merge pull request #26851 from ajafff/assert-compilerhost-readdirectory
...
Assert CompilerHost.readDiretory for projectReferences with include
2018-09-17 16:13:08 -07:00
Andy and GitHub
cfd0a62357
When renaming module, ensure rename span is just the last component of the path ( #27151 )
2018-09-17 15:26:41 -07:00
Andy and GitHub
4e3e8f5ea7
convertToAsyncFunction: Reduce casts in getTransformationBody ( #27158 )
2018-09-17 15:23:44 -07:00
Andy and GitHub
e710645bf9
Never escape string literals from textChanges ( #26971 )
...
* Never escape string literals from textChanges
* Use `boolean | undefined`
2018-09-17 11:06:39 -07:00
Andy and GitHub
a57467a317
Fix bugs: Replace SourceFile if '--noUnusedLabels' changed ( #27060 )
...
* Fix bugs: Replace SourceFile if '--noUnusedLabels' changed
* Use properties on CommandLineOptionBase
* Handle "alwaysStrict" and better categorize options
* Properly handle "strict"
* Code review
* fix test
2018-09-17 10:53:48 -07:00
Anders Hejlsberg
46de5067b0
Fix resulting issue in compiler
2018-09-17 09:06:38 -07:00
Benjamin Lichtman and GitHub
70ce7abe12
Merge pull request #27109 from uniqueiniquity/diagnosticLocation
...
Report async code fix diagnostic on name whenever it exists
2018-09-15 18:36:42 -07:00
Sheetal Nandi and GitHub
e4718564e5
Merge pull request #27082 from Microsoft/watchAPIAndProjectReferences
...
Fix tsc watch and watch API for a project that has project references
2018-09-14 17:58:42 -07:00
Benjamin Lichtman
9e1a05c9ec
Handle function assigned to binding pattern
2018-09-14 17:20:41 -07:00
Benjamin Lichtman
2c881fd90a
Report diagnostic on expression name if it exists
2018-09-14 16:34:16 -07:00
Wesley Wigham and GitHub
20eafb5b74
Introduce boolean literal freshness ( #27042 )
2018-09-14 15:00:09 -07:00
Sheetal Nandi
40d33c809a
Merge branch 'master' into watchAPIAndProjectReferences
2018-09-14 10:54:07 -07:00
Benjamin Lichtman and GitHub
0e985eb342
Merge branch 'master' into asyncCatchUniqueNames
2018-09-14 09:50:27 -07:00
Benjamin Lichtman
98055ad540
Use separate map with smaller scope to track renames
2018-09-14 09:46:58 -07:00
Benjamin Lichtman and GitHub
13deedf841
Merge pull request #26930 from uniqueiniquity/onlyReportExpectedPromiseArgs
...
Only perform async code fix if it can successfully refactor all parts
2018-09-14 09:41:34 -07:00
Andy and GitHub
95c1570c4b
Fix bug: VariableDeclaration may have SemanticMeaning.All if an @enum in JS ( #27085 )
2018-09-14 09:20:54 -07:00
Andy and GitHub
009dc0f1b9
For completion in string literal union, don't include strings already in the union ( #26755 )
2018-09-14 09:20:11 -07:00
Benjamin Lichtman
57a6dbd6fa
Add clarifying comments
2018-09-14 08:50:18 -07:00
Andy and GitHub
ee7d0e21da
getEditsForFileRename: Don't resolve to a.js when a.ts is moved ( #27081 )
2018-09-13 15:49:42 -07:00
Sheetal Nandi
ea67e3ac56
Fix watch of project with project references
2018-09-13 15:41:07 -07:00
Nathan Shively-Sanders and GitHub
64d0e0d448
Shorten more internal names to JS or TS ( #27080 )
2018-09-13 15:05:57 -07:00
Benjamin Lichtman
e700022cef
Remove unnecessary case
2018-09-13 09:46:40 -07:00
Benjamin Lichtman
d12110d3e5
Respond to CR
2018-09-13 09:32:38 -07:00
Benjamin Lichtman
905578cf37
Use existing identifier when possible for renaming functions
2018-09-13 09:02:02 -07:00
Andy and GitHub
cc7bfc0349
Support testing jsdoc tags of completions ( #26962 )
2018-09-13 08:47:50 -07:00
Benjamin Lichtman
906fbae37b
Handle promise handler block bodies with no return and other cleanup
2018-09-12 14:47:06 -07:00
Nathan Shively-Sanders and GitHub
6bd1da20c9
Rename JS-specific concepts ( #26795 )
...
* Rename JS concepts
1. Assignment declaration -- an assignment that is treated like a
declaration. Previously called [JS] special (assignment|declaration),
among other things.
2. Expando -- a value that can be used as a target in assignment
declarations. Currently, a class, function or empty object literal.
Functions are allowed in Typescript, too. Previously called a JS
container, JS initializer or expando object.
3. JavaScript -> Javascript. This is annoying to type, and looks like
'Java Script' in a camelCase world.
Everything is a pure rename as far as I know. The only test change is
the API baselines, which reflect the rename from SymbolFlags.JSContainer
to SymbolFlags.Assignment.
* Remove TODO
* Rename Javascript->JS
Note that this introduces a variable name collision in a couple of
places, which I resolved like this:
```ts
const isInJavascript = isInJSFile(node);
```
2018-09-12 10:44:46 -07:00
Ryan Cavanaugh and GitHub
5a26747428
Merge pull request #27004 from RyanCavanaugh/noJsNewModuleCompletions
...
Don't offer module completions in non-module JS files
2018-09-12 08:32:14 -07:00
Benjamin Lichtman
92edc2db56
[WIP] Record original name of renamed variable
2018-09-11 11:12:11 -07:00
Benjamin Lichtman
a4c87df821
[WIP] Use original identifier name to count up from when renaming collisions
2018-09-11 11:12:11 -07:00
Benjamin Lichtman
8c9e8666ed
Miscellaneous cleanup
2018-09-11 11:12:10 -07:00
Andy and GitHub
24a5bdd1b1
Add 'fileToRename' property to RenameInfo ( #24702 )
...
* Add 'fileToRename' property to RenameInfo
* Update tests
* Support directory rename
2018-09-10 11:25:03 -07:00
Ryan Cavanaugh
95ba73e16b
Don't offer module completions in non-module JS files
2018-09-10 11:24:51 -07:00
Ron Buckton and GitHub
af8e44ac85
Merge pull request #26568 from Microsoft/typesVersions
...
Adds support for "typesVersions" redirects
2018-09-07 15:40:50 -07:00
Benjamin Lichtman
95d57885c5
Ensure diagnostic reporting matches code fix ability
2018-09-07 14:14:01 -07:00
Ron Buckton
a255d9a163
Merge branch 'master' into typesVersions
2018-09-07 13:52:12 -07:00
Andy and GitHub
cbde861af6
Improve use of SemanticMeaning in symbol display ( #26953 )
2018-09-07 12:23:23 -07:00
Andy and GitHub
b1430e5e2c
Avoid adding duplicate completion from contextual keyword ( #26947 )
2018-09-07 12:18:03 -07:00
Andy and GitHub
d31973b905
findAllReferences: Consistently use 'this' parameter as definition site ( #26950 )
2018-09-06 17:06:50 -07:00
Andy and GitHub
c401d63c5f
findAllReferences: Fix declarationIsWriteAccess for PropertyAssignment in destructuring ( #26949 )
2018-09-06 15:24:07 -07:00
Andy and GitHub
a0ebbfb8f0
Fix JSX completions after boolean property ( #26943 )
2018-09-06 14:15:12 -07:00
Andy and GitHub
8c22770ea8
Improve 'isWriteAccess' for findAllReferences ( #26889 )
2018-09-06 10:44:32 -07:00
Benjamin Lichtman
f7f5b1ac87
Don't case on type node
2018-09-05 16:28:53 -07:00
Benjamin Lichtman
5a72da76c2
Only perform async refactor if it won't delete code
2018-09-05 16:27:14 -07:00
Andy and GitHub
1eb3082387
Support completions inside JSDoc before EndOfFileToken ( #25568 )
2018-09-05 11:34:27 -07:00
Andy and GitHub
bcb815b3ac
Remove duplicate function createTextRange ( #23346 )
...
* Remove duplicate function createTextRange
* Always allow end=-1
* Put noAssert back, pending #23370
* Use getRangeUnion helper
* Update API (#24966 )
2018-09-05 11:19:56 -07:00
Nathan Shively-Sanders and GitHub
540e8b9eb0
Collect jsdoc tags for type parameters ( #26824 )
...
Before the template tag, there was no reason to do this, but now you can
add JSDoc for type parameters in Typescript.
2018-09-04 09:29:19 -07:00
Klaus Meinhardt
d519e3f21e
hand over to LanguageServiceHost.readDirectory
2018-09-03 09:51:02 +02:00
Benjamin Lichtman and GitHub
6ddf75209a
Merge pull request #26749 from uniqueiniquity/getWholeType
...
Use correct type for async refactoring diagnostics
2018-08-31 09:09:25 -07:00