Andrew Casey
6d200bffbd
Watch files through the host
...
Call `this.projectService.host.watchFile`, rather than
`ts.sys.watchFile` so that it gets mocked correctly in the unit tests.
Repair two failing tests.
2017-06-29 10:39:32 -07:00
t_
51fb7e9a81
Add alwaysStrict option ( #16562 )
...
* Add alwaysStrict option
* Enable alwaysStrict
* Fix for strict mode
* keep whitespace
2017-06-28 19:44:15 -07:00
Andy
9013665e22
Replace FileMap with Map where there is no keyMapper ( #16724 )
...
* Replace FileMap with Map where there is no keyMapper
* Remove `toKey` and use `keyMapper` directly
2017-06-28 13:15:34 -07:00
Sheetal Nandi
31653de3c3
Merge pull request #16566 from Microsoft/keywordFilters
...
Fix the completion for parameters
2017-06-15 15:44:33 -07:00
Sheetal Nandi
4ce8af3652
Show public/private/protected/readonly when looking for constructor parameter and otherwise parameter declaration or property declaraiton should result in no completion
...
Fixes #15937
2017-06-15 11:16:35 -07:00
Sheetal Nandi
09f0b3471a
Merge branch 'master' into ownJsonParsing
2017-06-15 09:59:37 -07:00
Sheetal Nandi
187febd10f
Merge pull request #16494 from Microsoft/dontCreateScriptInfosWithFileExistsAndReadFile
...
Fixes the memory leak because of project and its corresponding script info even after project is removed
2017-06-14 15:17:25 -07:00
Sheetal Nandi
98cb0ce815
Move the cleanup of script infos to next file open
...
This helps in reusing script infos even if the project is closed but next open recreates the same project
2017-06-14 11:37:31 -07:00
Mohamed Hegazy
3532875af7
Merge branch 'master' into completionWithMeaning
2017-06-13 17:41:24 -07:00
Arthur Ozga
9cd04e06fd
Merge pull request #16309 from aozgaa/codeFixPrefixUnused2
...
Code fix prefix unused2
2017-06-13 11:16:33 -07:00
Sheetal Nandi
1f167786ad
Merge branch 'master' into completionWithMeaning
2017-06-13 11:16:32 -07:00
Sheetal Nandi
1bf1209f7e
Cleanup script infos that are not part of any project when the project is closed or inferred projects are refreshed
...
Also dispose some pointers so that the closures get disposed with project and script infos
2017-06-12 16:52:36 -07:00
Andy
2748b3b334
Add isForInOrOfStatement utility ( #16455 )
2017-06-12 11:08:41 -07:00
Andy
44d5c44cb5
Document highlights for a JSX tag should just be the matching tag, not all references ( #16453 )
2017-06-12 11:08:21 -07:00
Andy
09321b3834
Convert Extension to a string enum ( #16425 )
2017-06-09 19:32:44 -07:00
Andy
a757e84284
Add hash of project file location to project info telemetry ( #16397 )
...
* Add hash of project file location to project info telemetry
* Rename to projectId
2017-06-09 13:12:31 -07:00
Ron Buckton
b325790270
Merge pull request #16310 from Microsoft/enableDebugInfo
...
Enable debug info when running tests
2017-06-08 14:28:59 -07:00
Ron Buckton
00a926cc4e
Fix parameter emit for synthetic function types
2017-06-07 15:34:10 -07:00
Andy
abb9681248
Support completions for JSDoc @param tag names ( #16299 )
...
* Support completions for JSDoc @param tag names
* Undo change to finishNode
* Don't include trailing whitespace in @param range; instead, specialize getJsDocTagAtPosition
2017-06-07 12:28:52 -07:00
TravCav
b57830f7f9
enforcing curly braces ( #16315 )
2017-06-07 11:58:25 -07:00
Ron Buckton
4c65be8bad
Enable debug info when running tests
2017-06-06 16:01:52 -07:00
Ryan Cavanaugh
1f3ef7df7a
Refactor refactor
2017-06-06 14:58:18 -07:00
Arthur Ozga
f17a612de8
rename codeFix
2017-06-06 13:13:46 -07:00
Sheetal Nandi
48189c883f
Merge branch 'master' into ownJsonParsing
2017-06-06 11:03:21 -07:00
Mine Starks
52e867c86e
Merge pull request #16277 from minestarks/safelistpackagenames
...
discoverTypings should look at typingSafelist.json values
2017-06-06 10:21:23 -07:00
Mine Starks
ba04dc8860
Add typingsInstaller unit test
2017-06-05 17:45:07 -07:00
Yui T
b9017795a0
Revert "Revert "[Master] wip-dynamic import" ( #16264 )"
...
This reverts commit ccc60c8b3b .
2017-06-05 17:16:29 -07:00
Sheetal Nandi
c4ad151a46
Merge branch 'master' into ownJsonParsing
2017-06-05 17:01:09 -07:00
Arthur Ozga
c179d9a22d
Merge pull request #16045 from aozgaa/codeFixAddMissingMethod
...
Code fix add missing method
2017-06-05 16:50:46 -07:00
Andy
8ace7b826f
importFixes: Support missing "React" at a JSXOpeningElement ( #16066 )
...
* importFixes: Support missing "React" at a JSXOpeningElement
* Fix nextLineRule linting
* Rename to resolveJsxNamespaceAtLocation
* Expose getJsxNamespace and resolveNameAtLocation separately
2017-06-05 14:23:39 -07:00
Andy
70564110c0
Make use of array helper functions ( #16226 )
...
* Make use of array helper functions
* Remove unnecessary 'ts.'
2017-06-05 14:11:43 -07:00
Mohamed Hegazy
ccc60c8b3b
Revert "[Master] wip-dynamic import" ( #16264 )
2017-06-05 10:49:20 -07:00
Sheetal Nandi
d680720f6d
Merge branch 'master' into ownJsonParsing
2017-06-05 10:28:23 -07:00
Yui T
7d64ec94a0
Update baselines from moving out of es2018
2017-06-04 21:18:42 -07:00
Yui T
2f476bf22f
Merge branch 'master' into master-dynamicImport
2017-06-02 09:10:20 -07:00
Sheetal Nandi
ee5d1d33c1
Completion list in the type expression should show types
2017-06-01 16:27:43 -07:00
Arthur Ozga
f9123aa5cc
rename fourslash method
2017-06-01 11:01:00 -07:00
Sheetal Nandi
8f4f6c565e
Merge branch 'master' into ownJsonParsing
2017-06-01 10:43:41 -07:00
Arthur Ozga
f19c3121c2
Apply codefixes across files
2017-05-31 17:17:58 -07:00
Andy
315b72d035
Use it instead of describe for tests ( #16172 )
...
* Use `it` instead of `describe` for tests
* Create SourceFiles lazily
* Use before() hooks
2017-05-31 15:31:35 -07:00
Arthur Ozga
c9f5a46121
Merge branch 'master' into addCodeFixMissingMethod
2017-05-30 15:20:59 -07:00
Sheetal Nandi
8d771ca044
Merge branch 'master' into ownJsonParsing
2017-05-30 13:03:23 -07:00
Sheetal Nandi
7db76edbae
Always return empty object when converting the json sourcefile into actual json object, allowing to continue compilation even if there are errors in the tsconfig files
2017-05-30 11:37:26 -07:00
Kate Miháliková
2d60b2d117
Add tests and baselines
2017-05-30 08:04:18 +02:00
Sheetal Nandi
7bd9e092ac
Make configFile on compiler options as non enumerable
2017-05-26 17:15:57 -07:00
Mohamed Hegazy
159614315c
Fix build breaks with the instrumenter
2017-05-25 16:13:34 -07:00
Andy
d052bb83ca
Add project telemetry ( #16050 )
...
* Add project telemetry
* Respond to some PR comments
* Wrap event in a TelemetryEvent payload
* Replace paths with empty string instead of removing them entirely
* Add "version" property to payload
* Add telemetry for typeAcquisition settings
* Add "files", "include", "exclude", and "compileOnSave"
* Convert typingsOptions include and exclude to booleanss
* Add "extends", "configFileName", and "projectType"
* configFileName: Use "other" instead of undefined
* Add "languageServiceEnabled" telemetry
2017-05-25 13:30:27 -07:00
Sheetal Nandi
f1ea38d127
Merge branch 'master' into ownJsonParsing
2017-05-24 12:46:29 -07:00
Kanchalai Tanglertsampan
faab927c8d
Merge branch 'master' into master-dynamicImport
...
# Conflicts:
# src/compiler/checker.ts
# src/compiler/emitter.ts
# src/compiler/parser.ts
# src/compiler/transformers/module/module.ts
# src/compiler/transformers/module/system.ts
2017-05-24 11:26:06 -07:00
Donald Pipowitch
f309996b32
added es2017.intl ( #15369 )
2017-05-24 09:50:38 -07:00