Commit Graph

1494 Commits

Author SHA1 Message Date
Daniel Rosenwasser
c1e70c97c0 Use the non-nullable type of the contextual type for object completions. 2016-08-17 20:49:21 -07:00
jramsay
7a9f8c8798 Merge pull request #10391 from Microsoft/SetIsNewIdentifierLocationToTrueForJS
Set isNewIdentifierLocation to true for JavaScript files
2016-08-17 13:58:21 -07:00
Jason Ramsay
44476f1984 Update due to CR suggestion 2016-08-17 13:30:03 -07:00
Andy
c9d1f0d150 Merge pull request #10376 from Microsoft/remove_file_exists_assertion
Remove old assertion about when we're allowed to use fileExists
2016-08-17 06:04:33 -07:00
Jason Ramsay
a66b38af56 Set isNewIdentifierLocation to true for JavaScript files 2016-08-16 13:59:13 -07:00
Andy Hanson
a6974474a1 Remove old assertion about when we're allowed to use fileExists 2016-08-16 13:51:17 -07:00
Ron Buckton
889e5ac7ae Clean up/move some Map helper functions. 2016-08-16 11:15:15 -07:00
Ron Buckton
1dc495adf8 Migrate additional MapLikes to Maps. 2016-08-15 16:41:32 -07:00
Ron Buckton
7f0a02ff02 Migrated more MapLikes to Maps 2016-08-15 15:03:55 -07:00
Anders Hejlsberg
65e1293b2e Optimize performance of maps 2016-08-10 16:47:06 -07:00
Yui
ceab31cf0d Port PR #10016 to Master (#10100)
* Treat namespaceExportDeclaration as declaration

* Update baselines

* wip - add tests

* Add tests

* Show "export namespace" for quick-info
2016-08-05 10:12:01 -07:00
Yui
10b36abc8f [Release-2.0] Fix 9662: Visual Studio 2015 with TS2.0 gives incorrect @types path resolution errors (#9867)
* Change the shape of the shim layer to support getAutomaticTypeDirectives

* Change the key for looking up automatic type-directives

* Update baselines from change look-up name of type-directives

* Add @currentDirectory into the test

* Update baselines

* Fix linting error

* Address PR: fix spelling mistake

* Instead of return path of the type directive names just return type directive names
2016-08-04 07:43:54 -07:00
zhengbli
f78b9094be CR feedback 2016-08-01 16:50:16 -07:00
zhengbli
0f1585f0af recreate program if baseUrl or paths changed in tsconfig 2016-07-29 11:02:33 -07:00
Andy
c6960303db Merge pull request #9984 from Microsoft/node_kind
Unify nodeKind implementations for navigationBar and navigateTo
2016-07-29 08:19:07 -07:00
Anders Hejlsberg
0c131fab68 Merge pull request #9407 from Microsoft/literalTypes
Number, enum, and boolean literal types
2016-07-28 12:09:49 -07:00
Andy Hanson
958620b46d Fix lint errors 2016-07-27 08:30:22 -07:00
Andy Hanson
38e201eb7d Fix test and rename a function 2016-07-27 07:46:39 -07:00
Andy Hanson
30761ef659 Unify nodeKind implementations for navigationBar and navigateTo 2016-07-27 06:31:56 -07:00
Wesley Wigham
e12f2d8232 Add assertion whitespace lint rule (#9931)
* Add assertion whitespace lint rule

* Fix typo

* Add the word `Rule` to Jakefile
2016-07-26 13:29:53 -07:00
Anders Hejlsberg
ff0cbb5b29 Merge branch 'master' into literalTypes
# Conflicts:
#	src/compiler/checker.ts
2016-07-24 07:28:11 -07:00
Anders Hejlsberg
178883a617 Fix issue in getTypeDefinitionAtPosition 2016-07-23 09:29:29 -07:00
Yui
bd25c130ca Port PR 9745 to master (#9881)
* Add completion for quote property name in object literal expression

* Add fourslash tests for completion of quoted property in object literal expression

* Handle object-literal expression as an argument

Undo wip

Undo wip

Conflicts:
	src/services/services.ts

* Add tests and baseline for object literal expression for arguments
2016-07-22 07:15:12 -07:00
Herrington Darkholme
1b07fbb222 Fix #9843. IScriptSnapshot can return undefined 2016-07-21 10:01:12 +08:00
Wesley Wigham
729464dc23 Integrate feedback from @mihailik to performance framework (#9845)
* Integrate feedback from @mihailik

* Rons feedback, explicitly include in new tsconfigs
2016-07-20 15:42:29 -07:00
Anders Hejlsberg
26713c8721 Expand top level of declared type in type alias declaration 2016-07-19 07:18:16 -07:00
Sheetal Nandi
f16f27661f Merge pull request #9529 from Microsoft/identifierAndTokenConstructor
Create separate constructors for Tokens and Identifiers
2016-07-14 13:35:09 -07:00
Sheetal Nandi
78a1ca7d50 Make setting properties explicit instead of using parameter properties 2016-07-11 14:02:23 -07:00
Sheetal Nandi
767da71cc1 Add __tokentag to Token 2016-07-11 11:28:14 -07:00
Sheetal Nandi
0764590691 Make sure the order of setting pos, end, flags, parent, kind is consistent among nodes, tokens and identifiers 2016-07-11 11:03:38 -07:00
Anders Hejlsberg
868d5e602f Merge branch 'master' into literalTypes 2016-07-06 19:51:34 -07:00
Sheetal Nandi
08a0137bbe Set default flags on all nodes 2016-07-06 12:17:27 -07:00
Anders Hejlsberg
5225997c8c Merge branch 'master' into literalTypes
# Conflicts:
#	src/compiler/checker.ts
2016-07-05 13:25:15 -07:00
Sheetal Nandi
a2ff4ea0f8 Identifier constructor 2016-07-05 11:37:15 -07:00
Sheetal Nandi
4a77c97ae7 Create tokens using different constructor 2016-07-05 11:37:15 -07:00
Andy Hanson
2c40fea9f1 Improve names of whitespace functions 2016-07-01 13:57:20 -07:00
Andy Hanson
0a61334677 Do not scan nodes preceding formatted region, just skip over them 2016-06-29 08:39:36 -07:00
Kagami Sascha Rosylight
6e984eb3a3 new options should be optional for compatibility 2016-06-29 03:28:22 +09:00
Kagami Sascha Rosylight
cbfbfe1aa6 make rules optional 2016-06-27 16:04:53 +09:00
Paul van Brenk
cca7000032 Merge pull request #9342 from Microsoft/typoinbracecompletion
Fix typo
2016-06-24 14:41:10 -07:00
jramsay
8312168e91 Merge pull request #9236 from Microsoft/BaseIndentationSupport
[Salsa] Adding base indentation for script block formatting and smart indent
2016-06-24 14:22:58 -07:00
Andy
999ac0add3 Merge pull request #9270 from Microsoft/this_references
Allow to find all references of the 'this 'keyword
2016-06-24 06:24:12 -07:00
Paul van Brenk
6346fc1168 Fix typo 2016-06-23 17:36:59 -07:00
Andy Hanson
62607722d4 Remove Signature#thisType and use Signature#thisParameter everywhere 2016-06-23 10:04:19 -07:00
Andy Hanson
07437a6e7c Make goto-definition work for this parameter 2016-06-21 05:56:18 -07:00
Andy
4d5d152788 Merge pull request #9220 from Microsoft/navbar_refactor_3000
Refactor navigation bar
2016-06-20 13:16:40 -07:00
Andy
420b920438 Merge pull request #9271 from Microsoft/classify_this
Classify `this` in parameter position as a keyword
2016-06-20 10:01:55 -07:00
Andy Hanson
c0eb472b62 Classify this in parameter position as a keyword 2016-06-20 08:28:55 -07:00
Andy Hanson
e7acef125d Allow to find all references of the 'this 'keyword 2016-06-20 07:13:53 -07:00
Anders Hejlsberg
89596cb73b Numeric and boolean literal types 2016-06-18 07:21:23 -07:00