Commit graph

5565 commits

Author SHA1 Message Date
Yui T c5d5155234 Add comment and prevent completion in type paramter of class expression 2015-08-17 22:02:45 -07:00
Schmavery 6f42e4164b Apply suggested fixes to arguments PR 2015-08-17 18:33:48 -07:00
Vladimir Matveev 1cb5280971 Merge branch 'master' into moduleResolutionStrategies 2015-08-17 18:31:53 -07:00
Vladimir Matveev 3b95ea460e initial implementation of module resolution for node/requirejs 2015-08-17 18:31:12 -07:00
Schmavery 2b3da9a49e Add arguments to completion list #4249 2015-08-17 17:13:17 -07:00
Mohamed Hegazy e86f207859 Merge pull request #4309 from Microsoft/fix4274
Fix #4274: When collecting linked aliases use SymbolFlags.Alias to capture local aliases as well
2015-08-17 15:55:35 -07:00
zhengbli 2a3867a742 CR feedback. Add more tests. 2015-08-17 15:35:27 -07:00
Sheetal Nandi ed361a26b9 Merge pull request #4086 from Microsoft/sourcemap
Fixes the interaction of sourcemap and source comments
2015-08-17 15:34:35 -07:00
Mohamed Hegazy 25dfcec83b Merge pull request #4290 from Microsoft/fix4277
Fix #4277: Ensure we are passing refEnd and not length to findSourceFile
2015-08-17 15:21:04 -07:00
Vladimir Matveev b6b735c0f2 merge with master 2015-08-17 14:38:24 -07:00
Vladimir Matveev a88bfbd651 Merge branch 'master' into reuseAndCache 2015-08-17 14:36:17 -07:00
Mohamed Hegazy 2ffc37510d Merge pull request #4281 from adidahiya/expose-scanner-typings
Make createScanner external (fixes #4057)
2015-08-17 12:18:00 -07:00
Mohamed Hegazy 96286e9400 Merge pull request #4330 from SaschaNaz/formatTsx
Fix JsxElement formatting
2015-08-17 11:57:45 -07:00
Sheetal Nandi ebe7ca75a6 Merge branch 'master' into sourcemap 2015-08-17 11:26:49 -07:00
Yui T abc96936b5 Do not show completions in type parameter of type alias 2015-08-17 10:48:36 -07:00
Vladimir Matveev 6a17db8e3b Merge pull request #4319 from Microsoft/renameDependencies
allow transpiler to provide alternative names for dependencies
2015-08-17 10:44:53 -07:00
Vladimir Matveev cbb2425ccd addressed PR feedback 2015-08-17 10:37:44 -07:00
SaschaNaz bcde56202e fix jsxelement formatting 2015-08-16 17:27:23 +09:00
Yui T c57adeda1f Fix null reference in type parametr of type alias 2015-08-15 17:02:08 -07:00
Vladimir Matveev bc3025b391 make 'require is defined' a precondition for Node-based sys 2015-08-14 20:53:38 -07:00
zhengbli 20902b00e8 Remove the extension.d.ts and move the content to core.d.ts
Change the set function parameter type in TypedArrays
2015-08-14 16:27:48 -07:00
Mohamed Hegazy 53239d4a8b Merge pull request #4310 from Microsoft/fix4170
Fix #4170, remove error when using import=require syntax in t=ES6 and in ambient context
2015-08-14 15:11:19 -07:00
zhengbli 7e1201eed2 Further fixes 2015-08-14 14:17:55 -07:00
Vladimir Matveev 7e8cfa0859 allow transpiler to provide alternative names for dependencies 2015-08-14 13:00:41 -07:00
Vladimir Matveev 5fbe3fc75c Merge pull request #4308 from Microsoft/adjustNodeCheck
adjust check for node env to handle webpack\browserify
2015-08-14 11:41:16 -07:00
zhengbli 43f7d8ca89 Fix File constructor 2015-08-14 10:50:18 -07:00
zhengbli cdbf2b4771 Fix document.open return type 2015-08-14 00:28:40 -07:00
zhengbli 1c434ecdf2 Added missing dictionaries also 2015-08-14 00:07:03 -07:00
zhengbli e4dd7e0e48 Add missing types in webworker.generated.ts 2015-08-13 23:56:02 -07:00
Anders Hejlsberg 7376e4845d Merge pull request #4200 from Microsoft/unionPartialSignatures
Partial matches in union type signatures
2015-08-13 23:16:48 -07:00
Mohamed Hegazy e34238cb92 Merge pull request #4305 from ToddThomson/SpaceWithinNonEmptyBrackets
Add Spacing for Nonempty Brackets Formatting Option
2015-08-13 15:00:13 -07:00
Mohamed Hegazy 7353cfaece Fix #4170, remove error when using import=require syntax in t=ES6 and in ambient context
This is consistent with the behaviour of "export=" in --t=ES6 and in ambient contexts
2015-08-13 14:56:27 -07:00
Mohamed Hegazy fafd497124 Fix #4274: When collecting linked aliases use SymbolFlags.Alias to capture local aliases as well 2015-08-13 14:30:29 -07:00
ToddThomson 0415cc7f68 Addresses PR comments
Removed all spaces from nonempty parenthesis in code for this PR.
Modified the input string for testing the
InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets option in the
fourslash test.
2015-08-13 14:06:56 -07:00
zhengbli 37c0acf4c2 CR feedback 2015-08-13 13:48:25 -07:00
Vladimir Matveev 5a48508ffa adjust check for node env to handle webpack\browserify 2015-08-13 13:14:38 -07:00
zhengbli 6315f7302b Make parameter littleEndian in DataView methods optional 2015-08-13 13:11:25 -07:00
zhengbli 82dc484ccb Fix ImageData constructor 2015-08-13 12:59:19 -07:00
Mohamed Hegazy 1749329655 Merge branch 'master' into fix4277 2015-08-13 12:45:53 -07:00
Mohamed Hegazy fdda66f055 handel merge conflict, use refPos instead of start 2015-08-13 12:45:26 -07:00
ToddThomson 9146d9bc2f Add Spacing for Nonempty Brackets Formatting Option
User formatting option to add single space after opening and before
closing nonempty brackets.
2015-08-13 11:56:35 -07:00
SaschaNaz f832bd20f2 fix class expression + expressionWithTypeArgument 2015-08-14 03:45:52 +09:00
zhengbli 9dac516b26 CR feedback 2015-08-13 11:06:36 -07:00
Yui f92aa8681a Merge pull request #4230 from Microsoft/commentsNotPreserveForCallExp
Preserve comments on parameters in call expressions
2015-08-12 18:54:34 -07:00
Yui T 6adf7feb5e Remove asterisks 2015-08-12 17:52:36 -07:00
Yui T 732376a73b Merge branch 'master' into commentsNotPreserveForCallExp 2015-08-12 17:46:39 -07:00
Yui T c0801b1388 Add asterisks 2015-08-12 17:46:24 -07:00
Vladimir Matveev 405db829a0 mismatch order of arguments 2015-08-12 13:55:41 -07:00
Mohamed Hegazy 94fa6b92b4 Fix #4277: Ensure we are passing refEnd and not length to findSourceFile.
Also add a more conservative check for empty refPos and refEnd to ensure diagnostic emit does not fail
2015-08-12 13:04:10 -07:00
zhengbli 03ea38f31f Fix bugs and add support for @param expressions 2015-08-11 23:20:03 -07:00
zhengbli 5e9186b9ed Enable intellisense in jsDoc tag @type brackets 2015-08-11 21:40:37 -07:00
zhengbli 0b6aeeca9d Add JsDoc intellisense for JavaScript files 2015-08-11 20:18:05 -07:00
Adi Dahiya fcc43a6730 Make createScanner external (fixes #4057) 2015-08-11 21:44:56 -04:00
Vladimir Matveev 7c8da42230 Merge pull request #4279 from Microsoft/highlightRefsInOneDocument
keep only document highlights from the original file
2015-08-11 18:01:59 -07:00
Daniel Rosenwasser 9717427130 Merge pull request #4276 from SaschaNaz/typeAssertionFormattingFix
Fix generics/type-assertion formatting
2015-08-11 12:22:08 -07:00
Vladimir Matveev ce44d95115 keep only document highlights from the original file 2015-08-11 12:04:55 -07:00
Ryan Cavanaugh 5035559c59 Merge pull request #4228 from RyanCavanaugh/jsxHash
Fix case where # occurs after > in JSX expression
2015-08-11 11:56:19 -07:00
Ryan Cavanaugh dd446d80ad Fix comment 2015-08-11 11:05:37 -07:00
SaschaNaz dfcc1e6944 fix generics/type-assertion formatting 2015-08-11 23:47:44 +09:00
Yui T 86b104133f Fix comments 2015-08-10 17:34:39 -07:00
Vladimir Matveev 586abacec4 Merge pull request #4179 from Microsoft/exportDeclarationsInSystem
emit export declarations for system modules as a part of 'execute' me…
2015-08-10 13:59:45 -07:00
Vladimir Matveev 7ecaea3926 addressed PR feedback 2015-08-10 13:51:54 -07:00
Mohamed Hegazy bfa624c0c7 Merge pull request #4133 from Microsoft/addNewLineHelper
Add a helper for getting Newlines
2015-08-10 13:21:23 -07:00
zhengbli b3f0a2a2e4 Merge branch 'master' into JSDocCommentScaffolding 2015-08-10 12:55:45 -07:00
Zhengbo Li 74dc5a27b5 Merge pull request #3858 from zhengbli/fixWorkerType
Update ErrorEventHandler type in worker
2015-08-10 12:24:46 -07:00
Zhengbo Li a3ef530139 Merge pull request #3918 from zhengbli/issue3884
Change the type of window.orientation to number
2015-08-10 12:24:40 -07:00
Mohamed Hegazy 7f49375f3e Fix #3912: emit declaration for binding elements correctelly 2015-08-10 10:50:08 -07:00
zhengbli fceba238dd Merge branch 'master' of https://github.com/Microsoft/TypeScript into errorlist
Conflicts:
	src/server/session.ts
2015-08-10 09:40:12 -07:00
Yui T 673e741f57 Add comments to do clean-up 2015-08-07 16:30:16 -07:00
Ryan Cavanaugh cdd5b6a7e9 Rename parameter 2015-08-07 16:23:34 -07:00
Ryan Cavanaugh 4a96491d5b Remove silly function 2015-08-07 16:06:49 -07:00
Ryan Cavanaugh 5f6ac45bde S p a c e s 2015-08-07 16:03:45 -07:00
Arthur Ozga 92f152cb8e Merge pull request #4205 from Microsoft/fixAbstractAssignabilityRestriction2
Fix abstract assignability restriction2
2015-08-07 16:01:43 -07:00
Ryan Cavanaugh 555297a62b Fix case where # occurs after > in JSX expression 2015-08-07 15:46:36 -07:00
Mohamed Hegazy c07dfc3371 Merge pull request #4213 from tinganho/columnRows
Adds columns and rows properties to process.stdout
2015-08-07 15:40:24 -07:00
Arthur Ozga f9c82ea274 save files changed in refactoring 2015-08-07 14:24:30 -07:00
Arthur Ozga e9fa806c9f move helper and add capture of this 2015-08-07 14:01:07 -07:00
Arthur Ozga 410e4e4df7 added a clarifying comment 2015-08-07 11:07:06 -07:00
Anders Hejlsberg 61b3a185ce Making partial signature matching more inclusive 2015-08-07 08:03:59 -07:00
Tingan Ho 4cb789984c Adds columns and rows properties to process.stdout 2015-08-07 21:33:27 +08:00
Arthur Ozga cbb159770f fixed null de-reference 2015-08-06 17:43:06 -07:00
Arthur Ozga 1421c39d8c Fixed assignability bug 2015-08-06 17:27:43 -07:00
Yui T 01667eff1c Preserve comment in arguments of call expression and object literal 2015-08-06 17:20:35 -07:00
tien 2f9248386e Merge pull request #4203 from hoanhtien/fixOccurrenceTypos
Fix occurrence typos
2015-08-06 16:55:15 -07:00
Mohamed Hegazy 24aa58ebee Merge pull request #4202 from Microsoft/fix4194
Fix #4194: emit type paramters in type alias declaration
2015-08-06 16:48:58 -07:00
Mohamed Hegazy d58ec43b3f Fix #4159: look up the type alias paramter within the context of the parent type alias declaration 2015-08-06 16:43:15 -07:00
Vladimir Matveev 02539d91e2 deduplicate module dependencies 2015-08-06 16:38:53 -07:00
Ron Buckton bb4aa2c489 Merge pull request #3899 from Microsoft/fixTypeResolutionInTypeSerialization
Fix emit for decorator type metadata.
2015-08-06 16:32:24 -07:00
Tien Nguyen 013b92c3e7 Use template string to shorten code. 2015-08-06 16:28:45 -07:00
Vladimir Matveev a69b04145d delete entry from the cache when referenced file is removed, added tests 2015-08-06 16:23:21 -07:00
Mohamed Hegazy fbba50b312 Fix #4194: emit type paramters in type alias declaration 2015-08-06 16:23:08 -07:00
Tien Nguyen 3f3aea1380 Fix mistyped occurrence. 2015-08-06 16:17:19 -07:00
Vladimir Matveev 6455b8e59b merge with master 2015-08-06 16:14:51 -07:00
Arthur Ozga 3e59651152 simplified docParams 2015-08-06 16:13:28 -07:00
Mohamed Hegazy 9a29a827ce Fix #4025: report options diagnostics 2015-08-06 16:10:21 -07:00
Ryan Cavanaugh ba7759227b Merge pull request #4106 from RyanCavanaugh/allowTsxStringIndexers
Implements #4105 - a string indexer in 'props' disables errors due to surplus attributes
2015-08-06 15:58:54 -07:00
Ron Buckton f0458f4e60 Merge branch 'master' into fixTypeResolutionInTypeSerialization 2015-08-06 15:45:24 -07:00
Ryan Cavanaugh 085f0df455 Merge pull request #4096 from RyanCavanaugh/renameClosingTags
Fixes renaming not affecting JSX closing tags (#4093)
2015-08-06 15:42:58 -07:00
Ryan Cavanaugh 921dbb7043 Merge pull request #4099 from RyanCavanaugh/betterTsxCompletion
Offer JSX attribute intellisense between string-literal props
2015-08-06 15:42:50 -07:00
Anders Hejlsberg b3dd18a463 Allow partial matches in union type signatures 2015-08-06 15:20:17 -07:00
tien 6980d56bfd Merge pull request #4139 from hoanhtien/documentHighlights
Expose document highlighting to server.
2015-08-06 14:45:52 -07:00
Daniel Rosenwasser 54f3b414f7 Merge pull request #4124 from ShyykoSerhiy/fix-3991
Fix for "Error for missing 'super' call is misleading"
2015-08-06 14:39:32 -07:00
Tien Nguyen 8a943ee56e Merge remote-tracking branch 'microsoft/master' into documentHighlights
Conflicts:
	src/harness/fourslash.ts
2015-08-06 14:35:05 -07:00
Arthur Ozga 400fc30e9d simplified a conditional 2015-08-06 14:31:52 -07:00
tien ea3eb01465 Merge pull request #4172 from hoanhtien/fixFormatOnChainedCallbacksIssue
Always indent PropertyAccessExpression.
2015-08-06 14:24:11 -07:00
Tien Nguyen 91452bf3ae Use combinesPath. 2015-08-06 14:15:00 -07:00
Tien Nguyen bf7d923e09 Add filesToSearch to documentHighlights request. 2015-08-06 14:01:36 -07:00
Arthur Ozga 6b1838caec change '*' to '-' in lists 2015-08-06 08:31:29 -07:00
Vladimir Matveev eab6911bce emit export declarations for system modules as a part of 'execute' method 2015-08-05 21:45:04 -07:00
Daniel Rosenwasser 2b8ef5e6fd Merge pull request #4008 from weswigham/fix-many-linter-errors
Fix as many linter errors as possible
2015-08-05 17:09:46 -07:00
Tien Nguyen 71e6f3a947 Address PR feedback. 2015-08-05 17:09:01 -07:00
Arthur Ozga 4ea3bb6485 Make 'predicate' optional and DRY 2015-08-05 16:22:27 -07:00
Tien Nguyen 1cc0e5feee Always indent PropertyAccessExpression. 2015-08-05 15:03:49 -07:00
Vladimir Matveev fc1e89ace5 addressed CR feedback: merged getDefaultModuleResolver and resolveModuleName into one function, added comments 2015-08-05 14:30:41 -07:00
Ryan Cavanaugh 8a6426272e Merge pull request #4165 from RyanCavanaugh/useAssignabilityForInstanceofTypeguard
Use different relation for `instanceof` type guards
2015-08-05 14:06:56 -07:00
Ryan Cavanaugh 748d7564a6 Add tests and fix spelling 2015-08-05 13:30:45 -07:00
Vladimir Matveev 6ae746e1ad Merge pull request #4157 from Microsoft/spaceAfterDotInConstEnums
emit space before the dot for property/element access expressions if …
2015-08-05 12:34:11 -07:00
Anders Hejlsberg 5cdb0d6b00 Merge pull request #4112 from Microsoft/nonObjectTypeConstraints
Support non-object type constraints
2015-08-05 11:44:14 -07:00
Anders Hejlsberg c8b4a2edfd Merge pull request #4153 from Microsoft/tupleTypeInference
Improved tuple type inference
2015-08-05 11:27:18 -07:00
Vladimir Matveev fd46d205f9 addressed PR feedback, added more tests 2015-08-05 10:36:47 -07:00
Ryan Cavanaugh cc3a48fc7f Use different relation for instanceof type guards 2015-08-05 09:05:06 -07:00
Anders Hejlsberg 0a71f2f3b2 Addressing CR feedback 2015-08-05 07:03:01 -07:00
Vladimir Matveev c2fe8428a9 emit space before the dot for property/element access expressions if expression part is integer const enum 2015-08-05 00:02:29 -07:00
Vladimir Matveev 03aaf7cd7c addressed PR feedback 2015-08-04 21:22:37 -07:00
Arthur Ozga f3e03dbec7 merge with master 2015-08-04 18:04:55 -07:00
Arthur Ozga 24753c4885 remove asserts 2015-08-04 17:53:01 -07:00
Tien Nguyen 8550c7de4e Address feedback. 2015-08-04 15:46:38 -07:00
Vladimir Matveev a72994d78c removed extra whitespaces, added commments 2015-08-04 15:27:16 -07:00
Vladimir Matveev 49ad395de1 resolveModuleName => resolvedModuleNames, added tests 2015-08-04 15:21:16 -07:00
Tien Nguyen 67d986af43 Fix occurance typo. 2015-08-04 14:20:49 -07:00
Tien Nguyen 6dce7ce545 Merge remote-tracking branch 'microsoft/master' into documentHighlights 2015-08-04 14:08:43 -07:00
Wesley Wigham 5324f8bf4c Fix new linter errors 2015-08-04 13:38:00 -07:00
Wesley Wigham 91f034669d Conform lint of the future, unify quotations 2015-08-04 13:33:01 -07:00
Wesley Wigham 5a6d476797 Fix as many linter errors as possible 2015-08-04 13:31:25 -07:00
Anders Hejlsberg 245f7a8ef4 Add explicit handling of tuple-to-tuple type inference 2015-08-04 11:42:58 -07:00
Mohamed Hegazy d855f47f01 Merge pull request #4120 from basarat/feat/shebang
Shebang
2015-08-04 10:00:38 -07:00
shyyko.serhiy@gmail.com 9f36eb5915 changed containsSuperCall to check if super call is computed property name 2015-08-04 19:22:40 +03:00
Tien Nguyen d53cfdcb5b Expose document highlighting to server. 2015-08-03 20:45:39 -07:00
Basarat Syed e0a7627f12 CR feedback 2015-08-04 09:30:18 +10:00
Arthur Ozga 5c8e3518e9 fixed logging 2015-08-03 16:17:59 -07:00
Arthur Ozga ae721d3a6f respond to cyrus 2015-08-03 16:03:15 -07:00
Vladimir Matveev f22c160a24 Merge remote-tracking branch 'origin/master' into reuseAndCache 2015-08-03 15:30:05 -07:00
Arthur Ozga 9d26b4eb41 Fixed newline handling 2015-08-03 15:09:49 -07:00
Arthur Ozga 8d07c6929a rename feature 2015-08-03 14:28:21 -07:00
Arthur Ozga f3395a9484 reverted a hard-coded '\r\n' 2015-08-03 13:54:49 -07:00
Arthur Ozga a759f9f0b5 added helper 2015-08-03 13:38:45 -07:00
Arthur Ozga 8e13c0a3ad Fixed a comment 2015-08-03 11:09:58 -07:00
shyyko.serhiy@gmail.com bac22846c9 fix issue https://github.com/Microsoft/TypeScript/issues/3991 2015-08-02 23:58:46 +03:00
Vladimir Matveev 24c8a8ee5f always set NodeCheckFlags when checking super expression 2015-08-02 08:51:50 -07:00
basarat 5fcf3d7c90 emit shebang 2015-08-02 12:24:18 +10:00