Commit Graph

87 Commits

Author SHA1 Message Date
Andy
cee4289f58 Add code fix to convert 'require' in a '.ts' file to an 'import' (#23711)
* Add code fix to convert 'require' in a '.ts' file to an 'import'

* Only add suggestion for modules

* Revert "Only add suggestion for modules"

This reverts commit b1a728fdac.
2018-05-01 09:24:02 -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
Andy
cae464058a Delete "delete me" files (#23446) 2018-04-16 15:29:02 -07:00
Ryan Cavanaugh
0e07d775a1 You have to do this everywhere now! 2018-04-11 16:59:53 -07:00
Ryan Cavanaugh
9a5a5b10a3 Remove all reference comments from services 2018-04-11 15:39:12 -07:00
Wesley Wigham
6af764c560 Declaration maps and transparent goto definition using them (#22658)
* Add compiler option to enable declaration sourcemaps

* Transparent goto definition for sourcemapped declaration files

* Post-rebase touchups

* Rename API methods

* Fix lints

* Fix typo in name XD

* Log sourcemap decode errors

* Share the cache more, but also invalidate it more

* Remove todo

* Enable mapping on go to implementation as well

* Allow fourslash to test declaration maps mroe easily

* more test

* Handle sourceRoot

* Add tests documenting current behavior with other sourcemapping flags

* Ignore inline options for declaration file maps, simplify dispatch in emitter

* Change program diagnostic

* Fix nit

* Use charCodeAt

* Rename internal methods + veriables

* Avoid filter

* span -> position

* Use character codes

* Dont parse our sourcemap names until we need to start using them

* zero-index parsed positions

* Handle sourceMappingURL comments, including base64 encoded ones

* Unittest b64 decoder, make mroe robust to handle unicode properly

* Fix lint

* declarationMaps -> declarationMap

* Even more feedback

* USE Mroe lenient combined regexp

* only match base64 characters

* Fix nit
2018-03-26 12:15:34 -07:00
Wesley Wigham
19ec83fcdf Refactor declaration emitter into declaration transformer (#21930)
* Refactor declaration emitter into declaration transformer

* Slight cleanup from code review feedback

* Incorporate fix for new test

* Swaths of PR feedback

* Merge public methods

* Per-file output

* Preserve input import ordering more often

* Unify jsdoc comment start detection under more lenient rule

* Move to per-file transformations to reduce the memory that msut be retained

* Fix typo
2018-03-15 22:23:10 -07:00
Andy
fa4619c5c1 Add 'info' diagnostics (#22204)
* Add 'info' diagnostics

* Code review
2018-02-28 11:16:32 -08:00
Andrew Casey
5c278cee17 Address PR feedback
Eliminate cancellation token

Add organizeImports.ts to tsconfig.json

Simplify ts.OrganizeImports.organizeImports

Simplify sortImports

Semantic change: all invalid module specifiers are now considered to be
equal.

Simplify comparisons using ||

Pull out imports with invalid modules specifiers

...for separate processing.  They are tacked on to the end of the
organized imports in their original order.

Bonus: downstream functions can now assume imports have valid module
specifiers.

Rename baseline folder with leading lowercase

Simplify coalesceImports

Remove some unnecessary null checks

Simplify baseline generation
2018-02-16 10:56:16 -08:00
Benjamin Lichtman
f989ef7261 Merge pull request #21004 from uniqueiniquity/updateATA
Enable typings cache entries to expire and be updated
2018-02-09 14:17:26 -08:00
uniqueiniquity
e72ea6f7b1 Update installed types if older than those listed in the registry 2018-01-11 12:58:22 -08:00
Sheetal Nandi
dc62bb9abc Change builder to BuilderProgram so it is similar to operating on program 2017-12-07 18:58:15 -08:00
Sheetal Nandi
576fe1e995 Expose the watch and builder API in the typescript.d.ts 2017-11-22 11:48:50 -08:00
Wesley Wigham
053b915061 Rebase SymbolWalker change onto master
From PR #9847.
2017-08-22 11:33:32 -07:00
Wesley Wigham
4b19eb3200 Remove duplicate entries from tsconfig files (#16991) 2017-07-06 15:56:34 -07:00
Sheetal Nandi
f1ea38d127 Merge branch 'master' into ownJsonParsing 2017-05-24 12:46:29 -07:00
Ryan Cavanaugh
f6fbe61718 Refactoring support (squash) 2017-05-19 10:45:49 -07:00
Sheetal Nandi
d7e9609ae5 Merge branch 'master' into ownJsonParsing 2017-05-11 09:10:35 -07:00
Nathan Shively-Sanders
1bff5b749e Codefix:suggest spellings+update others w/new codes 2017-05-01 11:41:01 -07:00
Sheetal Nandi
6f568b3f26 Merge branch 'master' into ownJsonParsing 2017-04-17 13:40:49 -07:00
Andy Hanson
c7d51a3053 Merge branch 'master' into refactor_findallrefs 2017-04-12 11:27:58 -07:00
Andy Hanson
ec558b8080 Merge branch 'master' into refactor_findallrefs 2017-03-17 08:04:04 -07:00
Mohamed Hegazy
0dac29f6f3 Merge branch 'master' into checkJSFiles 2017-03-15 12:35:26 -07:00
Vladimir Matveev
2b10611fbf initial revision of infrastructure to produce text changes that uses existing node factory, formatter and printer (#14441)
initial revision of infrastructure to produce text changes that uses existing node factory, formatter and printer
2017-03-15 11:44:36 -07:00
Mohamed Hegazy
706acdf138 Add quick fix to disable error checking in a .js file 2017-03-09 15:59:26 -08:00
Andy Hanson
aac3d80fc4 Merge branch 'master' into refactor_findallrefs 2017-03-01 08:45:41 -08:00
Andy Hanson
0f50a5ffa7 Move code from 'Completions' to 'PathCompletions' namespace 2017-03-01 08:29:33 -08:00
Ron Buckton
6ff081fea6 Merge branch 'master' into publicTransformers 2017-02-16 14:33:01 -08:00
Andy Hanson
42a832ad3d Refactor findAllReferences. Now supports renamed exports and imports. 2017-02-16 06:48:00 -08:00
Arthur Ozga
9110461294 use getBaseTypeOfLiteralType 2017-02-15 14:24:25 -08:00
Ron Buckton
2f624f5df3 Expose transformations as public API 2017-02-07 14:36:15 -08:00
Daniel Rosenwasser
57e224ce3a Merge branch 'master' into fixMissingThis 2017-01-30 12:01:12 -08:00
Sheetal Nandi
0bbbc518bc Merge branch 'master' into ownJsonParsing 2017-01-17 13:31:26 -08:00
Andy Hanson
9fbadfdc67 Move "types": [] to tsconfig-base 2017-01-17 08:02:39 -08:00
Andy Hanson
30e2fd6c20 Remove "noResolve" 2017-01-12 10:18:59 -08:00
Andy Hanson
733111a931 Use tsconfig inheritance 2017-01-12 07:46:55 -08:00
Arthur Ozga
5d6a714a04 move helpers under codefix dir 2016-11-28 17:40:59 -06:00
Sheetal Nandi
b3f816ba24 Reorganize functions so commandline parser can include parser.
This fixes build of typings installer
2016-11-17 14:45:01 -08:00
Arthur Ozga
389959a5b5 Merge branch 'master' into interfaceFixes
* additionally consolidated codeFix testing
2016-11-15 14:43:14 -08:00
Paul van Brenk
1924298d87 Merge branch 'master' into unusedidentifier 2016-11-15 10:17:37 -08:00
Mohamed Hegazy
57a602b924 Include no types in services 2016-11-14 12:47:04 -08:00
Daniel Rosenwasser
f2c0aa4444 Added fix for missing 'this.' property accesses. 2016-11-11 01:27:26 -08:00
Paul van Brenk
40c0cbd7b5 Clean up 2016-11-03 13:28:08 -07:00
Arthur Ozga
324000020c Merge branch 'master' into interfaceFixes 2016-11-01 15:43:54 -07:00
Nathan Shively-Sanders
39b9163715 Rename Experimental transform to ESNext
1. Spread/rest are no longer experimental.
2. We need a place to put stage 3 ES features.
2016-10-27 16:03:01 -07:00
Nathan Shively-Sanders
58ffb4e668 Merge branch 'master' into object-spread 2016-10-27 15:29:21 -07:00
Arthur Ozga
5d9a4e3054 Move codeFixProvider.ts 2016-10-26 17:02:09 -07:00
Arthur Ozga
a66b0ae54c Split CodeFixes in Separate Files 2016-10-26 16:57:43 -07:00
Ron Buckton
c40c7f9679 Merge branch 'master' into moveModuleTransformToEnd 2016-10-20 17:07:07 -07:00
Nathan Shively-Sanders
7d05ccb368 Merge branch 'master' into object-spread 2016-10-20 10:42:22 -07:00