271 Commits

Author SHA1 Message Date
Ryan Cavanaugh
066b191982 Collapse core/compiler/parser into parser 2018-06-11 17:07:58 -07:00
Ryan Cavanaugh
336c37662d Projzilla phase 1 2018-06-09 16:48:08 -07:00
Ryan Cavanaugh
8936b030cd Merge branch 'master' into tsbuild 2018-05-24 13:01:58 -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
Ryan Cavanaugh
6d04378e90 Testing WIP 2018-05-21 19:40:09 -07:00
Ryan Cavanaugh
7e0825a3e7 Clean, etc 2018-05-21 17:47:58 -07:00
Andy
9b6378b938
Use SHA256 hash for project info telemetry (#24099)
* Use SHA256 hash for project info telemetry

* Update API baselines
2018-05-14 11:32:16 -07:00
Sheetal Nandi
13d993b954 Helper for getting string comparer 2018-04-24 11:53:36 -07:00
Daniel Rosenwasser
320cb40f12 Address CR feedback. 2018-04-18 12:33:38 -07:00
Daniel Rosenwasser
bd3e854b31 Automatically configure tsc output and provide a new 'diagnosticStyle' option. 2018-04-13 21:19:24 -07:00
Ryan Cavanaugh
8294259ec2 Remove all reference comments from compiler/ 2018-04-11 15:38:26 -07:00
Sheetal Nandi
d8bf95ff10 PR feedback 2018-03-29 09:13:03 -07:00
Sheetal Nandi
f885cd971e Do not watch child directories of the sym link folders
Fixes #22668
2018-03-28 21:11:13 -07:00
Sheetal Nandi
e40f2943b1 Revert "Do not watch child directories of the sym link folders"
This reverts commit 3280865049a0036f0be580056f815dac1bb9e031.
2018-03-28 21:10:29 -07:00
Sheetal Nandi
3280865049 Do not watch child directories of the sym link folders
Fixes #22668
2018-03-28 18:37:07 -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
Sheetal Nandi
4046bb15ac Do not send first missing file event as well. 2018-03-13 15:09:13 -07:00
Mohamed Hegazy
85df31cde4
Merge pull request #22512 from Microsoft/fixUseOfProcess
Do not use unguarded process in tsc.ts
2018-03-13 11:24:31 -07:00
Mohamed Hegazy
708caf9a72 Do not use unguarded process in tsc.ts 2018-03-13 11:03:12 -07:00
Sheetal Nandi
88c5e2295b Do not send delete event every poll for missing folder
Fixes #22494
2018-03-12 13:52:15 -07:00
Sheetal Nandi
8378f692c7 Directly assign values for watchFile and watchDirectory in node System 2018-03-08 12:18:04 -08:00
Sheetal Nandi
ae8637c99f Merge branch 'master' into watchOptions 2018-03-03 10:51:59 -08:00
Andy
a564912d9a
Apply 'no-unnecessary-qualifier' lint rule (#22009) 2018-03-01 14:20:18 -08:00
Sheetal Nandi
9a160f2079 Merge branch 'master' into watchOptions 2018-02-21 10:44:12 -08:00
Ron Buckton
ea8f5158c2 Revert BOM emit change 2018-02-12 12:02:34 -08:00
Sheetal Nandi
c5b21d4a6d Fix the lint error 2018-02-06 14:13:13 -08:00
Sheetal Nandi
b7f69102ce Make the PollingInterval, PollingChunkSize, PollingUnchangedThresholds customisable 2018-02-05 14:50:07 -08:00
Sheetal Nandi
ca4af4f36c Merge branch 'master' into watchOptions 2018-02-05 13:07:12 -08:00
Adnan Chowdhury
9677b0641c Implement fallback hashing algorithm when crypto module is not available (#19941)
* Implement fallback hashing algorithm when crypto module is not available

* Fix lint errors

* Expose method internally and use in watch.ts

* Simplify syntax; Remove fallback from watch.ts
2018-01-25 16:17:58 -08:00
Sheetal Nandi
95b2630fb8 Add watchFile option to use fsEvents on parent directory 2018-01-25 09:30:27 -08:00
Sheetal Nandi
a74e54ed69 Merge branch 'master' into watchOptions 2018-01-22 11:16:23 -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
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
Sheetal Nandi
56d754cf0f Add watchDirectory to be using dynamic polling 2018-01-17 12:59:11 -08:00
Sheetal Nandi
c3db9fadb0 Add tests for #19989, #20023 2018-01-17 12:59:11 -08:00
Sheetal Nandi
787c995985 Allow recursive directory watching on non supported file system 2018-01-17 12:59:10 -08:00
Sheetal Nandi
bcfa02f501 Add option to watch using fs.watch instead of watching through polling 2018-01-17 12:59:10 -08:00
Sheetal Nandi
fa8d4cba78 Move the polling settings to sys instead of watch utilities 2018-01-17 12:59:10 -08:00
Sheetal Nandi
09caaa3775 Fix the api test failures 2018-01-17 12:59:10 -08:00
Sheetal Nandi
c3b9904190 Add test to verify timeout queues 2018-01-17 12:59:10 -08:00
Sheetal Nandi
976f330044 Watch based on dynamic polling priority frequency queue 2018-01-17 12:59:09 -08:00
Sheetal Nandi
aa5e49a4d4 Update watchFile to take priority (which is currently polling interval being passed to the host) 2018-01-17 12:59:09 -08:00
Sheetal Nandi
7f32f9ac78 Rename and restructure non polling watch file 2018-01-17 12:59:09 -08:00
Sheetal Nandi
ca52f089da Rearrange the code to have functions after executing code 2018-01-17 12:59:08 -08:00
Sheetal Nandi
ed5673c13c Simplify and correct the fsWatchFile callback handling with the stats invoked 2018-01-17 12:59:08 -08:00
Sheetal Nandi
f6f465280d Fix the error callback of the present directory watcher 2018-01-17 12:59:08 -08:00
Sheetal Nandi
428e0529fd Rename through all projects with the same file symLink 2018-01-12 16:24:04 -08:00
Sheetal Nandi
43c2610a69 More functions moved from system to WatchCompilerHost 2017-12-05 16:53:34 -08:00
Sheetal Nandi
944f8b8792 Instead of using system as object on WatchHost, create WatchCompilerHost that combines the functionality 2017-12-05 11:46:45 -08:00