Jason Ramsay
8a29926d5c
Salsa: JS support for discovering and acquiring d.ts files
...
(Mostly isolating VS host changes from PR#6448)
2016-03-08 14:42:42 -08:00
Jason Ramsay
bdc9788ec8
Change to getScriptKindFromFileName to avoid unnecessary array allocation in split
2016-03-08 14:36:08 -08:00
Jason Ramsay
da6059871f
Applying getScriptKindFRomFileName to HostFileInformation before we set the ScriptKind.
...
If the host returns ScriptKind 'Unknown' or 'undefined' we attempt to get the correct ScriptKind based on the file name.
If this cannot be determined we return the default ScriptKind 'TS'
2016-03-08 14:35:48 -08:00
Jason Ramsay
1c990bd242
Applying getScriptKindFromFileName to HostFileInformation before we set the ScriptKind.
...
If the host returns ScriptKind 'Unknown' or 'undefined' we attempt to get the correct ScriptKind based on the file name.
If this cannot be determined we return the default ScriptKind 'TS'
2016-03-08 14:35:01 -08:00
Jason Ramsay
f8353d4429
Addressing CR comments
...
- Adding ScriptKind to SourceFile
- Only update ScriptKind on creation, on update use the SourceFile's scriptKind
- If scriptKind is unknown, default to ScriptKind.Ts
- Replacing try-catch with in this.shimHost
2016-03-08 13:48:41 -08:00
Jason Ramsay
cc02a805a9
Removing trailing whitespace from services.ts
2016-03-08 13:44:02 -08:00
Jason Ramsay
9b27c148e9
Fix to test harness and addressing CR comments
2016-03-08 13:43:24 -08:00
Jason Ramsay
83af10b05c
Salsa: adding ScriptKind to ensure script blocks (.html, .aspx, .ascx, etc) are processed as JS
2016-03-08 13:43:02 -08:00
Vladimir Matveev
365e5446da
Merge pull request #7373 from Microsoft/limitInferenceDepth
...
set the maximum depth to explore during type inference
2016-03-03 12:22:53 -08:00
Vladimir Matveev
e7f415d5e5
Merge pull request #7163 from Microsoft/cachePairs
...
do not make inferences with the same source\target pair multiple times
2016-03-03 12:22:33 -08:00
Vladimir Matveev
90526036c3
port pull request #7328 from Microsoft/flipSidesInSignatureCheck
2016-03-03 10:18:57 -08:00
Ryan Cavanaugh
a264cea783
Merge pull request #7268 from RyanCavanaugh/fix7063
...
Don't error on duplicate prototype property assignments
2016-03-01 13:57:04 -08:00
Ryan Cavanaugh
766439ed01
Update comment
2016-03-01 12:40:47 -08:00
Bill Ticehurst
b5da80202f
Changed how parserContextFlags are handled in tests
2016-03-01 10:36:37 -08:00
Bill Ticehurst
6253c9b5cd
Add JavaScriptFile to ContextFlags
2016-02-29 19:21:20 -08:00
Ryan Cavanaugh
8334aeac4d
Don't error on duplicate prototype property assignments
...
Fixes #7063
2016-02-26 14:58:01 -08:00
Ryan Cavanaugh
904091e6ea
Fix duplicate errors in JSDoc function types with anon parameters
...
Fixes #6993
2016-02-26 14:41:49 -08:00
Mohamed Hegazy
02cb9ad9c2
Update version
2016-02-25 17:04:38 -08:00
Nathan Shively-Sanders
395182192c
Defer-check function/method nodes even when context-sensitive.
2016-02-25 15:06:39 -08:00
Vladimir Matveev
360965381e
fix linter issues
2016-02-25 13:09:50 -08:00
Vladimir Matveev
e51fb151e8
Merge pull request #7228 from Microsoft/bundledDeclarationEmit
...
avoid multiple passes over the program when computing diagnostics for…
2016-02-25 12:48:29 -08:00
Mohamed Hegazy
1f599398e1
Do not report all declarations in Program.emit, only declaration diagnostics
2016-02-16 16:35:13 -08:00
Bill Ticehurst
bbf48bb89c
Fixed wording and updated tests
...
(cherry picked from commit fe60490c2a0c7b6b1eea145619593d0b489f056e)
2016-02-16 11:28:51 -08:00
Bill Ticehurst
dd80e87355
Set experimentalDecorators warning for JavaScript
...
(cherry picked from commit ed7abcc1e9ac32a637eafaf5befbf9d060b41c1e)
2016-02-16 11:28:50 -08:00
Bill Ticehurst
d396f6e8c9
Allow decorators in JavaScript files
...
(cherry picked from commit f601e6dd760b667c50298b2c0d334cd7a2d06d52)
2016-02-16 11:28:50 -08:00
Bill Ticehurst
0b6e965fb0
Removed unnecessary option
2016-02-12 17:20:32 -08:00
Bill Ticehurst
cf0b9f6ee2
Fix fallback to classic resolution
...
(cherry picked from commit e03a45a824f67f31a7d74c4489156f44417d42f3)
2016-02-12 15:46:16 -08:00
Kanchalai Tanglertsampan
8ca031ef57
Address PR
2016-02-12 14:54:09 -08:00
Daniel Rosenwasser
5a76a1dd74
Merge pull request #6744 from Microsoft/removePredicateTypiness
...
Remove notion of predicates as types, move predicates back to signatures
2016-02-12 14:43:42 -08:00
Daniel Rosenwasser
687b8805a4
Revert "Use names of accessors instead of their entire spans."
...
This reverts commit 219579881efe8ffe63dc8cbcb19277914ba57495.
2016-02-12 13:41:48 -08:00
Bill Ticehurst
745f32bbee
Fixed watcher for rename operations, and for allowJs in config file
2016-02-11 18:54:38 -08:00
Ryan Cavanaugh
d5538f0b2d
Merge pull request #7036 from RyanCavanaugh/port7007
...
Port PR 7007 to release 1.8
2016-02-11 16:50:18 -08:00
Ryan Cavanaugh
6658e2149c
Move suppress option to appropriate place
2016-02-11 14:35:33 -08:00
Ryan Cavanaugh
a99b5cb132
Check in other places too
2016-02-11 14:35:32 -08:00
Ryan Cavanaugh
03d2382326
❤️ linter
2016-02-11 14:35:32 -08:00
Ryan Cavanaugh
5af2c47b13
Add undefined checks for malformed type tags
...
Fixes #7002
2016-02-11 14:35:31 -08:00
Bill Ticehurst
1173473e3c
Merge pull request #7016 from Microsoft/CommonJSDefault
...
Make CommonJS the default (and some default "exclude" values).
2016-02-11 13:33:02 -08:00
Yui
2d4bc0caff
Merge pull request #6860 from Microsoft/checksuperbeforethislexically
...
Check using "super" before "this" lexically
2016-02-11 13:12:59 -08:00
Bill Ticehurst
195e69c889
Added module: none as an option
2016-02-11 12:45:52 -08:00
Bill Ticehurst
4a67dc5e08
Dont default to CommonJS modules for ES6 target
2016-02-11 11:53:10 -08:00
Bill Ticehurst
73fa45bd2e
Added back errors for module kind none
2016-02-11 11:01:10 -08:00
Kanchalai Tanglertsampan
61e954bbc6
Address PR: report error on super call instead of entire constructor node
2016-02-11 10:11:39 -08:00
Bill Ticehurst
fc5d94df57
Do not add minified JavaScript files on file crawl
2016-02-11 09:54:34 -08:00
Vladimir Matveev
7404b901b9
fix falling tests and linter issues
2016-02-11 09:48:47 -08:00
Bill Ticehurst
2922bd59a6
Fix node_modules exclude
2016-02-10 23:03:01 -08:00
Bill Ticehurst
f2e7f9f50f
Removed errors for missing module specifier
2016-02-10 19:56:31 -08:00
Bill Ticehurst
0e5a93b85a
Changed further defaults to CommonJS
2016-02-10 19:17:54 -08:00
Bill Ticehurst
b791fd89cd
Changed node_modules and module defaults
2016-02-10 18:45:44 -08:00
Daniel Rosenwasser
1f31bc7b09
Addressed CR feedback.
2016-02-10 15:19:27 -08:00
Kanchalai Tanglertsampan
dc8e0ccd3d
Address PR
2016-02-08 13:04:48 -08:00