Zhengbo Li
a082857ae8
Add APIs for enabling CompileOnSave on tsserver ( #9837 )
...
* Add API to get only the emited declarations output
* Add nonModuleBuilder
* Add basic tests for CompileOnSaveAffectedFileList API
* Add API for compile single file
* Avoid invoking project.languageService directly
* Add API to query if compileOnSave is enabled for a project
* Seperate check and emit signatures
* Use Path type for internal file name matching and simplifying builder logic
* Always return cascaded affected list
* Correct the tsconfig file in compileOnSave tests
Also move the CompileOnSave option out of compilerOptions
* Reduce string to path conversion
2016-08-23 16:11:52 -07:00
Vladimir Matveev
41b61cbc1e
merge with origin/master
2016-08-19 17:36:02 -07:00
Zhengbo Li
d8ab098195
Merge pull request #10426 from zhengbli/9518
...
Treat special property access symbol differently when retriving documentation
2016-08-19 17:09:25 -07:00
zhengbli
a5bb13f6c1
fix broken tests
2016-08-19 16:53:36 -07:00
zhengbli
057357be88
CR feedback
2016-08-19 15:48:46 -07:00
Vladimir Matveev
683d6ef6e1
merge with origin/master
2016-08-19 13:15:59 -07:00
Yui
7f6e36c7e1
Update shim version to be 2.1 ( #10424 )
2016-08-19 10:03:23 -07:00
zhengbli
03dcdda443
Treat special property access symbol differently
...
... when retriving documentation
2016-08-18 17:12:40 -07:00
Vladimir Matveev
27deb313cc
Merge remote-tracking branch 'origin/master' into tsserver-typings
2016-08-18 14:57:34 -07:00
Daniel Rosenwasser
c1e70c97c0
Use the non-nullable type of the contextual type for object completions.
2016-08-17 20:49:21 -07:00
Vladimir Matveev
a2e5c2d2b5
merge with origin/master
2016-08-17 14:38:30 -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
Vladimir Matveev
9a180122a5
merge with origin/master
2016-08-14 11:42:08 -07:00
Vladimir Matveev
959b6b6c07
remove unused dependencies to reduce the size of output file
2016-08-12 14:26:09 -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
Vladimir Matveev
c0bcf8f10c
release cached tree in compilation settings change
2016-08-03 14:02:37 -07:00
Zhengbo Li
f06413b8d4
Merge pull request #10035 from zhengbli/9522
...
Recreate program if baseUrl or paths changed in tsconfig
2016-08-01 17:15:03 -07:00
zhengbli
f78b9094be
CR feedback
2016-08-01 16:50:16 -07:00
Ryan Cavanaugh
6caa2611cb
Merge pull request #10054 from SaschaNaz/jsxopening
...
Format JSX opening element
2016-08-01 15:50:43 -07:00
Kagami Sascha Rosylight
5c4c997efa
jsx opening element formatting
2016-08-01 00:35:34 +09: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
Vladimir Matsveyeu
2cb3122e62
Merge remote-tracking branch 'origin/master' into tsserverVS-WIP
2016-07-28 13:05:32 -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
Anders Hejlsberg
afd39cccaa
Enum type is also a union of the literal enum types it declares
2016-07-22 14:27:33 -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
Vladimir Matveev
c0f4fdd489
merge with origin/master
2016-07-21 10:38:15 -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
Vladimir Matveev
69789928b3
Merge remote-tracking branch 'origin/master' into tsserverVS-WIP
2016-07-18 16:43:08 -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
Vladimir Matveev
39c948ad34
merge with origin/master
2016-07-13 16:20:08 -07:00
Andy Hanson
8e679b7021
Remove duplicate startsWith and endsWith functions
2016-07-13 10:04:21 -07:00
Andy Hanson
5d37c29dbb
Handle JSX bodies in formatter
2016-07-12 09:45:55 -07:00