Commit Graph

10239 Commits

Author SHA1 Message Date
Basarat Ali Syed e5dee7eb4b fix(build) TypingResolutionHost interface is used by exported function discoverTypings 2016-03-08 17:43:18 -08:00
Jason Ramsay 900b0a7b18 - Adding new lines after { for single-line if statements
- Renaming DiscoverTypingsSettings to DiscoverTypingsInfo to match host
2016-03-08 17:41:42 -08:00
Jason Ramsay 51e86d3762 - Removing filesToWatch from getTypingNamesFromNodeModuleFolder.
These modules are already installed and are not expected to change
2016-03-08 17:41:29 -08:00
Jason Ramsay 1fde409572 - Adding DiscoverTypingsSettings
- Remove all references to Tsd.
Instead pass a map of package names to cached typing locations
2016-03-08 17:41:15 -08:00
Jason Ramsay 085002b060 - replacing TryParseJson with existing readConfig
- push error for invalid enableAutoDiscovery option
- adding interfaces for jsons
- removing updateNotFoundTypings
- node_modules normalize file names before using
- adding safeListPath to discoverTypings
2016-03-08 17:40:58 -08:00
Jason Ramsay 1dc57f23c7 - Removing ts. from jsTyping.js
- Adding ".json" file extension filter when retrieving json files from host and removoing filter
- simplify isTypingEnabled check
2016-03-08 17:40:40 -08:00
Jason Ramsay ec7302e6d8 Adding optionalDependencies and peerDependencies to the list typings to merge in if present. 2016-03-08 17:40:22 -08:00
Jason Ramsay a7a13296e6 CR feedback 2016-03-08 17:40:03 -08:00
zhengbli 830a10fc92 Unify the use of "filter", "map" and "Object.keys" functions 2016-03-08 15:23:21 -08:00
Jason Ramsay 8b9e351525 - renaming resolveTypeDefinitions to discoverTypings for consistency with jsTypings
- simplifying typingOptions parsing after associated managed host changes
2016-03-08 15:21:05 -08:00
Jason Ramsay 0de8f9eeb2 Using removeComments from commandLineParser. This is more robust as it removes both single and multiline comments 2016-03-08 15:20:51 -08:00
Jason Ramsay 5cdb97cbfd Adding devDependencies to the list of typings to merge 2016-03-08 15:20:37 -08:00
Jason Ramsay 9f2e36e59d Switch let -> const from lint validation 2016-03-08 15:20:20 -08:00
Jason Ramsay cc3d4d3291 Addressing CR comments
- Adding check to ensure TypingOptions 'include' and 'exclude' arrays are composed of strings
- Allow leading whitespace when removing comments from json
2016-03-08 15:17:09 -08:00
Jason Ramsay 2f90271ca6 Fixing lint issues caught by Travis CI build
(Rules appear to be more strict - this was not caught on a local lint run)
2016-03-08 15:12:29 -08:00
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 13e845a6b9 Merge pull request #7377 from Microsoft/port-7373-7163
Ports #7373 and #7163 in release-1.8
2016-03-03 14:34:12 -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 243440ae14 Merge pull request #7372 from Microsoft/port-7328
Ports #7328 into release-1.8
2016-03-03 12:13:53 -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 619ed2b956 Merge pull request #7311 from Microsoft/issue7310
Fix JS parsing perf issue (#7310)
2016-03-01 10:57:36 -08:00
Bill Ticehurst b5da80202f Changed how parserContextFlags are handled in tests 2016-03-01 10:36:37 -08:00
Bill Ticehurst ae27b89847 Fix failing JSDocParser tests 2016-02-29 22:37:42 -08:00
Bill Ticehurst 6253c9b5cd Add JavaScriptFile to ContextFlags 2016-02-29 19:21:20 -08:00
Ryan Cavanaugh e05e98526b Merge pull request #7266 from RyanCavanaugh/fix6993
Fix duplicate errors in JSDoc function types with anon parameters
2016-02-29 12:38:58 -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 dc4cd52a9a Update LKG v1.8.5 2016-02-25 17:12:03 -08:00
Mohamed Hegazy 02cb9ad9c2 Update version 2016-02-25 17:04:38 -08:00
Nathan Shively-Sanders 2115b379e0 Add test and baseline 2016-02-25 15:07:17 -08:00
Nathan Shively-Sanders 395182192c Defer-check function/method nodes even when context-sensitive. 2016-02-25 15:06:39 -08:00
Mohamed Hegazy acd9bef097 Update LKG 2016-02-25 14:48:08 -08:00
Vladimir Matveev 602127d95c Merge pull request #7244 from Microsoft/port-7228
Ports #7228 into release-1.8
2016-02-25 13:32:26 -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 e5dd34f9e6 Update LKG v1.8.2 2016-02-16 22:09:30 -08:00
Mohamed Hegazy 01ea1a8a8c Merge pull request #7106 from Microsoft/Fix7093
Do not report all diagnostics in Program.emit(),
2016-02-16 17:41:35 -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 edae7c3b28 Merge pull request #7096 from Microsoft/port6881
Port fix to allow decorators in JavaScript
2016-02-16 13:39:53 -08:00
Bill Ticehurst a972a6fde4 Update LKG 2016-02-16 11:39:23 -08:00