Commit Graph

2292 Commits

Author SHA1 Message Date
Manoj Patel
afc588eb9e --emitDeclarationsOnly flag to enable declarations only output (#20735)
* Add emitOnlyDeclarations flag

* Fix name

* verifyOptions checking logic

* Passing tests

* doJsEmitBaseline

* Tests !!!
2018-01-25 15:35:18 -08:00
Andy
d333d889c1 Test for (and fix) order of import fixes (#21398) 2018-01-24 15:06:52 -08:00
Andy
e58391d9c5 In fourslash.ts, remove unused exports and use '{}' instead of 'any' (#21377) 2018-01-24 15:06:00 -08:00
Andrew Casey
9e7ff9f84a Merge pull request #21394 from amcasey/GH20559Update
Remove incorrect assert
2018-01-24 13:39:43 -08:00
Andrew Casey
08aa2653dd Remove incorrect assert 2018-01-24 12:46:26 -08:00
Sheetal Nandi
a6d7a38c34 Merge pull request #21338 from Microsoft/vscodeDynamicFiles
Allow dynamic files without external project and also use file names starting with ^ as dynamic file
2018-01-24 12:34:30 -08:00
Andrew Casey
2f3b06a3cd Handle extraction ranges including case clause expressions
(mostly by rejecting them)

Fixes #20559
2018-01-23 11:09:27 -08:00
Andrew Casey
4f11dd68ab Handle extracting case clause expression as constant 2018-01-23 11:08:45 -08:00
Sheetal Nandi
146256b7dc Allow dynamic files without external project and also use file names starting with ^ as dynamic file
Fixes #21204
2018-01-22 11:44:43 -08:00
Nathan Shively-Sanders
a3ecfd857c Merge pull request #21305 from Microsoft/fix-dt-runner-ExpectError-handling
DT runner:Fix $ExpectError handling
2018-01-22 07:27:07 -08:00
Sheetal Nandi
8a51cdaf42 Merge branch 'master' into builderApi 2018-01-19 15:56:40 -08:00
Sheetal Nandi
2be231d339 Add createProgram on WatchCompilerHost 2018-01-19 15:52:21 -08:00
Nathan Shively-Sanders
cadd7679a2 DT runner:Fix $ExpectError handling
Indices into lines of the file are zero-based, but the errors reporting
by Typescript are one-based. Also, the regex ignored $ExpectError in tsx
files.
2018-01-19 13:08:22 -08:00
Andy
0a90c67c07 Support testing definition range of a reference gruop (#21302) 2018-01-19 12:15:41 -08:00
Andy
1c9cd96966 Avoid spreading array (#21291) 2018-01-19 07:44:18 -08:00
Andrew Casey
ebbb3a4dc4 Merge pull request #21158 from amcasey/NewlineConsistency
Handle linebreaks consistently in code fixes and refactorings
2018-01-18 16:02:27 -08:00
Wesley Wigham
5fcde240e3 External test runner updates (#21276)
* Increase user test timeout to 10m because npm can be slow, remove parse5 because they added their own types, accept updated error msg for rxjs, acccept current chrome baseline and pin chrmoe version

* Suppress lint
2018-01-18 13:48:23 -08:00
Nathan Shively-Sanders
ca65b6a789 Merge pull request #21269 from Microsoft/fix-node_modules-deletion-in-external-compile-runner
Fix deletion of node_modules in DT test
2018-01-18 09:12:10 -08:00
Nathan Shively-Sanders
24c2fcc504 Fix deletion of node_modules in DT test
del needs to have `{ force: true }` passed so that it can delete
node_modules outside the working directory
2018-01-18 08:30:31 -08:00
Sheetal Nandi
29dee9fb0c Do not expose createWatchOfConfigFile and createWatchOfFilesAndCompilerOptions 2018-01-17 16:26:11 -08:00
Sheetal Nandi
ed23ca582a Merge branch 'master' into builderApi 2018-01-17 16:11:44 -08:00
Sheetal Nandi
8e35c3103d Merge pull request #21244 from Microsoft/allowNonExistentInputInGetDirectories
Fix the invalid file/directory location when getting file system entries for caching the results
2018-01-17 15:39:49 -08:00
Andrew Casey
3ca1cc406a Clean up TODOs for #18445 2018-01-17 15:29:41 -08:00
Andrew Casey
b4a382bdd2 Stop explicitly storing newline in refactoring/code fix contexts
It's already in the EditorSettings and the LanguageServiceHost.

Fixes #18291
Fixes #18445
2018-01-17 15:14:03 -08:00
Sheetal Nandi
9ad9dc106c Merge pull request #21171 from Microsoft/renameSymLinks
Rename through all projects with same file through symLink
2018-01-17 15:08:27 -08:00
Sheetal Nandi
41c02e6482 Merge pull request #20515 from Microsoft/fileAddedAfterProjectOpen
Update the project graph before checking if opened file is present in the existing project
2018-01-17 15:07:46 -08:00
Sheetal Nandi
8281c7a137 Fix the invalid file/directory location when getting file system entry for caching read directory results
Fixes #20607
2018-01-17 15:00:22 -08:00
Andy
e248d08e4c Combine repeatString helper functions (#21235) 2018-01-17 12:43:41 -08:00
Benjamin Lichtman
8f6c516ef9 Merge pull request #21205 from uniqueiniquity/resolveTripleSlashReferencePaths
Fix Windows-style absolute paths in triple-slash directives
2018-01-17 12:31:46 -08:00
Andy
8ed885db3e Add completions from the 'this' type (#21231)
* Add completions from the 'this' type

* Code review
2018-01-17 12:05:31 -08:00
uniqueiniquity
543b48d031 Add test for file path in tsconfig 2018-01-17 10:58:25 -08:00
Sheetal Nandi
5bd3f97b18 Merge branch 'master' into builderApi 2018-01-16 11:14:39 -08:00
Sheetal Nandi
428e0529fd Rename through all projects with the same file symLink 2018-01-12 16:24:04 -08:00
Andy
b8acf8d0c4 Handle jsconfig.json in fourslash tests (#16484) 2018-01-12 14:25:33 -08:00
Andy
d2fd137d88 Add a getFullText() helper method to IScriptSnapshot (#21155)
* Add a `getFullText()` helper method to `IScriptSnapshot`

* Use a function instead of a method
2018-01-12 10:44:39 -08:00
Sheetal Nandi
ef7f131398 Add test case for symLink and rename 2018-01-11 17:27:22 -08:00
Sheetal Nandi
69bb5ea8f0 Do not trigger the failed lookup location invalidation for creation of program emit files
Handles #20934
2018-01-11 12:34:58 -08:00
Sheetal Nandi
c5ed8646e1 Add test where emit of the file results in invalidating resolution and hence invoking recompile 2018-01-11 12:33:38 -08:00
Sheetal Nandi
667751df2a When sending typings request use project's current directory as project root path
This ensures that we arent picking typings from folder different from the current directory for the project
2018-01-09 15:59:56 -08:00
Sheetal Nandi
90a1df9d92 Add test for failure to use correct current directory in inferred project
Test for #21040
2018-01-09 15:59:55 -08:00
Andy
8bce69e6bd Add refactoring to convert CommonJS module to ES6 module (#19916)
* Add refactoring to convert CommonJS module to ES6 module

* Code review

* includeGlobals -> excludeGlobals

* Improve handling of `module.exports = require("...")`

* Allow NoSubstitutionTemplateLiteral as argument to createLiteral
2018-01-09 13:15:47 -08:00
Andy
89ceb4b9b5 Support completions that require changing from dot to bracket access (#20547)
* Support completions that require changing from dot to bracket access

* Use insertText and replacementSpan

* Rename includeBracketCompletions to includeInsertTextCompletions

* Don't add completions that start with space
2018-01-08 18:57:46 -08:00
Wesley Wigham
9efb3ac3a7 Fix this.timeout not actually applying the timeout within it blocks (#21079) 2018-01-08 16:52:58 -08:00
Mohamed Hegazy
1235f78232 Merge branch 'issue20410' of https://github.com/benbraou/TypeScript into benbraou-issue20410 2018-01-08 14:42:51 -08:00
Andy
464df8f699 Fix build failure with newest @types/mocha (#21075) 2018-01-08 14:34:09 -08:00
Mohamed Hegazy
c632e44350 Merge branch 'master' into issue20410 2018-01-08 13:28:59 -08:00
Wenlu Wang
7154df10df add support for insertSpaceBeforeTypeAnnotation (#20466) 2018-01-08 13:25:02 -08:00
Sheetal Nandi
5bc78afcbb Merge branch 'master' into builderApi 2018-01-08 13:01:09 -08:00
Andy
97c3e9c3ef Support all path mappings that end in "*" in completions (#21072)
* Support all path mappings that end in "*" in completions

* Check for uppercase TsConfig.JSON
2018-01-08 12:28:50 -08:00
Wesley Wigham
84e3681b79 Support timeouts in the parallel runner (#20631)
* Support timeouts in the parallel runner

* Apply PR feedback: unify code paths, use string as sentinel
2018-01-08 12:28:04 -08:00