Commit graph

523 commits

Author SHA1 Message Date
Ryan Cavanaugh
fc63eb9b7b Fix runtests async 2018-06-10 15:09:56 -07:00
Ryan Cavanaugh
f8d2857e25 tsserverlibrary 2018-06-10 14:56:48 -07:00
Ryan Cavanaugh
b6d5279333 The baselines are back in town 2018-06-10 13:26:16 -07:00
Ryan Cavanaugh
5804905ca6 Jakefile rewrite WIP 2018-06-10 13:23:16 -07:00
Ryan Cavanaugh
8033f2e1e1 Revert the jakefile 2018-06-10 10:59:03 -07:00
Ryan Cavanaugh
a61a7a2a6e Attempt to rewrite the jakefile and fail 2018-06-10 10:58:16 -07:00
Ryan Cavanaugh
336c37662d Projzilla phase 1 2018-06-09 16:48:08 -07:00
Steven
8b034e6cd8 Modernize syntax by using arrow funcs 2018-06-07 20:58:55 -04:00
Steven
3cd802510c Add getDirSize checks to Jakefile LKG 2018-06-07 20:58:55 -04:00
Wesley Wigham
44da834551
Add fix option to lint task (#24344) 2018-05-22 17:01:45 -07:00
Andy
e53e56cf82
Enable '--strictNullChecks' (#22088)
* Enable '--strictNullChecks'

* Fix API baselines

* Make sys.getEnvironmentVariable non-nullable

* make properties optional instead of using `| undefined` in thier type

* reportDiagnostics should be required

* Declare firstAccessor as non-nullable

* Make `some` a type guard

* Fix `getEnvironmentVariable` definition in tests

* Pretend transformFlags are always defined

* Fix one more use of sys.getEnvironmentVariable

* `requiredResponse` accepts undefined, remove assertions

* Mark optional properties as optional instead of using `| undefined`

* Mark optional properties as optional instead of using ` | undefined`

* Remove unnecessary null assertions

* Put the bang on the declaration instead of every use

* Make `createMapFromTemplate` require a parameter

* Mark `EmitResult.emittedFiles` and `EmitResult.sourceMaps` as optional

* Plumb through undefined in emitLsit and EmitExpressionList

* `ElementAccessExpression.argumentExpression` can not be `undefined`

* Add overloads for `writeTokenText`

* Make `shouldWriteSeparatingLineTerminator` argument non-nullable

* Make `synthesizedNodeStartsOnNewLine` argument required

* `PropertyAssignment.initializer` cannot be undefined

* Use one `!` at declaration site instead of on every use site

* Capture host in a constant and avoid null assertions

* Remove few more unused assertions

* Update baselines

* Use parameter defaults

* Update baselines

* Fix lint

* Make Symbol#valueDeclaration and Symbol#declarations non-optional to reduce assertions

* Make Node#symbol and Type#symbol non-optional to reduce assertions

* Make `flags` non-nullable to reduce assertions

* Convert some asserts to type guards

* Make `isNonLocalAlias` a type guard

* Add overload for `getSymbolOfNode` for `Declaration`

* Some more `getSymbolOfNode` changes

* Push undefined suppression into `typeToTypeNodeHelper`

* `NodeBuilderContext.tracker` is never `undefined`

* use `Debug.assertDefined`

* Remove unnecessary tag

* Mark `LiteralType.freshType` and `LiteralTupe.regularType` as required
2018-05-22 14:46:57 -07:00
Ron Buckton
b5233d322d
Merge pull request #24003 from Microsoft/useEdgeForBrowserTests
Default to 'edge' instead of 'IE' for browser tests
2018-05-09 20:07:56 -07:00
Ron Buckton
d06f9c29b0 Default to 'edge' instead of 'IE' for browser tests 2018-05-09 14:32:49 -07:00
Wesley Wigham
ec9c1556ad
Fix publish nightly on case sensitive FS (#23997) 2018-05-09 14:30:07 -07:00
Andy
835e3250cc
Fix call to 'fail' in jakefile (#23845) 2018-05-04 08:23:06 -07:00
Ron Buckton
56648ad0f1
Merge pull request #20763 from Microsoft/vfs
Update harness to use single robust virtual file system for tests.
2018-05-03 10:25:20 -07:00
Ron Buckton
147aeaba9d Centralize lib management for build 2018-05-02 15:49:52 -07:00
Ron Buckton
d62a11ffc0 Merge branch 'master' into vfs 2018-05-01 18:58:31 -07:00
Derek P Sifford
cc0c82c014 add lib.es2018.intl + fix lib.es2017.intl
closes #23691
2018-04-30 15:17:00 -04:00
Ron Buckton
154f09bee9 Reorganize project structure. 2018-04-17 18:42:59 -07:00
Ron Buckton
1cbe930e06 Merge branch 'master' into vfs 2018-04-17 14:39:20 -07:00
Wesley Wigham
c645f1753f
Update configurePrerelease to not utilize ts internals (#23476)
* update configure nightly to not utilize ts internals

* Nightly -> Prerelease

* Remove alias
2018-04-17 15:42:31 -04:00
Ryan Cavanaugh
f24d57f1ac Update diagnostic tasks in jakefile 2018-04-12 12:20:27 -07:00
Ryan Cavanaugh
034b8eee14 Remove explicit harness file list from Jakefile 2018-04-11 15:39:10 -07:00
Alan Agius
7e482b27fb fix: CompilerHost.getSourceFile is being called for odd filenames besides the one being compiled
Ignore falsy file names from `getDefaultLibraryFileName`

Closes: #13629
2018-04-02 20:58:37 +02: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
Ron Buckton
ea9f999dfc Merge branch 'master' into vfs 2018-03-08 10:46:36 -08:00
Yuichi Nukiyama
25525bc9d6 Change esnext.promise to es2018.promise (#22292)
* change esnest.promise to es2018.promise

* modify unit tests

* resolve conflict

* resolve conflict
2018-03-02 17:08:36 -08:00
Yuichi Nukiyama
c7f65e8725 support groups property (#22176)
* support groups property

* fix option unittests
2018-03-01 12:58:25 -08:00
Andy
b3edc8f9f4
Apply 'no-unnecessary-type-assertion' lint rule (#22005)
* Apply 'no-unnecessary-type-assertion' lint rule

* Fix type error

* Fix tsconfig.json

* Add --format back
2018-02-16 18:38:00 -08:00
Andrew Casey
5656f35b6a Introduce an organizeImports command
In phase 1, it coalesces imports from the same module and sorts the
results, but does not remove unused imports.

Some trivia is lost during coalescing, but none should be duplicated.
2018-02-16 10:51:38 -08:00
Andrew Casey
9d39ee7302 Fix jake lint on Windows
We need to pass `windowsVerbatimArguments: true` to `jake.exec` or it
parses the arguments incorrectly and doesn't actually lint.
2018-02-13 16:07:49 -08:00
Ron Buckton
f153b04f35 Revert changes to unit tests 2018-02-05 23:29:20 -08:00
Ron Buckton
3de96306de Merge branch 'master' into vfs 2018-01-31 15:41:47 -08:00
TravCav
d0ab1642fe Fix for Issue #21512 and code cleanup for Jakefile.js (#21513)
* Code cleanup for Jakefile.js

Jakefile.js was throwing lint warnings so I cleaned some of them up.

* took out jshint flag

removed /*jshint esversion: 6 */
2018-01-31 12:59:17 -08:00
Ron Buckton
7f4ac292b9 Clean up build steps 2018-01-30 12:51:28 -08:00
Ron Buckton
4d8d51452c Migrate core.ts 2018-01-30 11:57:47 -08:00
Ron Buckton
f527a15108 Disable node6 build 2018-01-29 12:49:35 -08:00
Ron Buckton
7ca84aca52 Merge branch 'master' into vfs 2018-01-29 11:05:07 -08:00
Daniel Rosenwasser
7b855d8f67 Fix dependency for 'publish-nightly'. 2018-01-26 17:11:10 -08:00
Ron Buckton
cda87282b4 Update build script 2018-01-24 10:57:18 -08:00
Ron Buckton
87de5ffb5c Merge branch 'master' into vfs 2018-01-22 02:25:22 -08:00
Ron Buckton
ee415576b6 More consistent POSIX-like virtual file system. 2018-01-19 21:58:46 -08:00
Daniel Rosenwasser
1edd500ae3
Merge pull request #21312 from Microsoft/easierPrerelease
Easier insiders prereleases
2018-01-19 16:34:27 -08:00
Daniel Rosenwasser
6b9ea7cab8 configureNightly -> configurePrerelease 2018-01-19 16:03:02 -08:00
Daniel Rosenwasser
9db45dff6d Create a 'configure-insiders' and 'publish-insiders' task. 2018-01-19 15:58:35 -08:00
Sheetal Nandi
5bd3f97b18 Merge branch 'master' into builderApi 2018-01-16 11:14:39 -08:00
Andy
859f0e3070
Add noDoubleSpaceRule to jakefile (#21077) 2018-01-08 15:44:33 -08:00
Mohamed Hegazy
c632e44350
Merge branch 'master' into issue20410 2018-01-08 13:28:59 -08:00
Sheetal Nandi
5bc78afcbb Merge branch 'master' into builderApi 2018-01-08 13:01:09 -08:00