Commit Graph
100 Commits
Author SHA1 Message Date
Zhengbo Li e8fd1cf466 Support project root path for controlling config file searching depth (#15238)
* stops at projectRootPath when searching config file

* Add tests

* Update editorServices.ts

Remove extra `true &&`
2017-04-19 11:42:24 -07:00
Zhengbo Li 11ac006d60 Fix issue that randomly closes configured projects (#15080)
* Fix issue that randomly closes configured projects

* Correct the default project selection
2017-04-11 14:25:32 -07:00
Zhengbo Li e298f759c3 Fix the name of protocol.ts in tsconfig.json (#14918) 2017-03-29 20:42:27 -07:00
Zhengbo Li 5040e1d279 Mark occurence item in string with a special property (#14677)
* mark occurence item in string with a special property

* Adding trailing commas
2017-03-16 11:01:48 -07:00
Zhengbo Li c07fb70188 Merge pull request #14633 from zhengbli/fixNodeArray
Fix assigning positions to node array
2017-03-13 16:11:50 -07:00
Zhengbo Li c46a2e7e1b always create new node array when assigning positions 2017-03-13 12:45:28 -07:00
Zhengbo Li 2d4b4c9c80 Merge pull request #14014 from zhengbli/12233
Fix jsdoc typedef symbol scope + avoid bind twice if the type has a namespace prefix
2017-02-23 21:26:32 -08:00
Zhengbo Li f6e9dad838 Check fullName has value for typedefTag 2017-02-16 14:04:43 -08:00
Zhengbo Li 896e576374 fix typo 2017-02-16 13:17:42 -08:00
Zhengbo Li 1f484a9a03 Merge pull request #13966 from zhengbli/13110
Delete the following new line when removing unused locals
2017-02-14 13:15:17 -08:00
Zhengbo Li 20cc428785 Fix jsdoc typedef symbol scope + avoid bind twice if the tag has a jsdoc namespace 2017-02-10 19:24:56 -08:00
zhengbli e238b38278 Update some tests because the original marker will be deleted 2017-02-08 19:32:02 -08:00
zhengbli 80568c5326 remove the new line after targeted line 2017-02-08 19:11:42 -08:00
zhengbli dc78d3314f Add test 2017-02-08 15:44:54 -08:00
Zhengbo Li 501084a93c Merge pull request #13856 from zhengbli/updateLib20170202
Routine lib files update
2017-02-03 15:17:05 -08:00
Zhengbo Li df643d8d02 Merge pull request #13405 from zhengbli/13137
Support import fix for missing namespace
2017-02-02 16:11:08 -08:00
Zhengbo Li a2451a49c9 Merge pull request #13851 from zhengbli/fixCommentsForUnusedLocal
avoid removing comments when removing unused locals
2017-02-02 16:10:50 -08:00
zhengbli 5f1fafce5e routine lib files update 2017-02-02 15:25:05 -08:00
zhengbli e532744f16 Add test case for nested namespace 2017-02-02 14:14:40 -08:00
zhengbli 62f716aaa6 avoid removing comments when removing unused locals 2017-02-02 13:50:34 -08:00
Zhengbo Li 12e8f91bf2 Merge pull request #13831 from zhengbli/importFixCasing
Fix casing in import quick fix
2017-02-02 10:05:11 -08:00
Zhengbo Li 6c56b3d957 Fix casing in import quick fix 2017-02-02 02:17:49 -08:00
Zhengbo Li a36db0ea10 Merge pull request #13424 from zhengbli/13129
Change the module specifier search order
2017-01-12 12:06:28 -08:00
Zhengbo Li c897235364 Change the module specifier search order 2017-01-11 14:30:37 -08:00
Zhengbo Li 5e6c5ef2f0 Merge pull request #13404 from zhengbli/13131
Change the remove unused local code fix message
2017-01-10 18:15:58 -08:00
Zhengbo Li aa706d785b Support import fix for missing namespace as well 2017-01-10 17:57:08 -08:00
Zhengbo Li 0c7e4bbb45 Update the message 2017-01-10 17:55:52 -08:00
Zhengbo Li 54f1230760 Change the remove unused local code fix message 2017-01-10 17:52:47 -08:00
Zhengbo Li 9e127967b6 Merge pull request #11603 from zhengbli/11116
Set maxNodeModuleJsDepth for inferred projects
2017-01-10 12:17:43 -08:00
Zhengbo Li 9a62db2b5c Merge pull request #13287 from zhengbli/importFixExtendedTsconfig
For `path` ending with `index`, use the `path` pattern for the import quick fix
2017-01-04 15:37:48 -08:00
Zhengbo Li b19a949ce4 Support path that specified index 2017-01-04 13:35:42 -08:00
Zhengbo Li c67d1a4445 Let fourslash tests support extended tsconfig 2017-01-04 12:59:05 -08:00
zhengbli 8ac22ecbb0 Change the design to track addRoot and removeRoot 2016-12-29 17:00:04 -08:00
zhengbli 09fc3b3a18 address cr feedback 2016-12-29 10:26:34 -08:00
Zhengbo Li 69e0677ea1 Support quick fixes for UMD global (#12545)
* Support quick fixes for UMD global

* refactor
2016-12-28 15:04:15 -08:00
zhengbli bf5faa04a6 Use inherited setCompilerOptions for inferred project 2016-12-28 14:46:58 -08:00
zhengbli a8a1a826b3 set the option when creating inferred projects 2016-12-28 08:15:21 -08:00
zhengbli 8648239e64 Merge branch 'master' of https://github.com/Microsoft/TypeScript into 11116 2016-12-28 04:07:04 -08:00
zhengbli f6f866e88c Reset the noEmitForJsFiles option when updating compiler options (#12570) 2016-11-29 23:30:14 -08:00
Zhengbo Li 103090b60e report config errors when config file changed (#12372) 2016-11-22 10:56:46 -08:00
Zhengbo Li 110c3ac6ac Add locale options to tsserver (#12369)
* add locale options to tsserver

* make sys an argument

* fix mistakes and address code review
2016-11-21 10:30:38 -08:00
Zhengbo Li 6f409b580e Fix grammar issue (#12096)
* Fix grammar issue

* Improve the error message

* cr feedback
2016-11-16 14:13:29 -08:00
Zhengbo Li 4dc58dde38 Exclude js files in non-configured projects compile-on-save emitting (#12118)
* Exclude js files in non-configured projects CoS emitting

* remove unnecessary method
2016-11-10 14:12:24 -08:00
Zhengbo Li 1c004bf317 Port #12027, #11980 and #11932 to master (#12037)
* add test for the fix for overwrite emitting error

* cr feedback
2016-11-03 21:13:41 -07:00
Zhengbo Li 4513ae3034 disable CoS for inferred projects (#11909) 2016-10-27 18:00:21 -07:00
Zhengbo Li d0170d1ac8 Support dotted name in @typedef tag (#11695)
* Support dotted name in @typedef tag

* Use a new node flag to get rid of the extra logics

* replace jsdoc namespace node flag with optional property

* Fix linting error
2016-10-25 13:32:48 -07:00
Zhengbo Li 3f234f2e7f Move setTimeout to sys (#11746) 2016-10-20 11:30:05 -07:00
Zhengbo Li a1cbfcae4b Add missing trigger file (#11641)
* Add missing trigger file property for config file diags

* Add test
2016-10-14 20:50:12 -07:00
Zhengbo Li a6443e3e5a Avoid watching non-existing directories and fix null-exception (#11601)
* Avoid watching non-existing directories and fix null-exception

* Add test

* Move the fix to sys to cover tsc -w also
2016-10-13 15:39:09 -07:00
zhengbli 536d703d9e Set maxNodeModuleJsDepth for inferred projects 2016-10-12 18:05:01 -07:00
Zhengbo Li 460de66311 Turn on skipLibCheck for js-only inferred project and external project (#11399)
* Turn on skipLibCheck for js-only inferred project and external project

* avoid changing compiler options

* Update tests
2016-10-11 19:19:40 -07:00
Zhengbo Li 2671668d86 Remove cached resolvedModule result if the target file was deleted (#11460)
* Add test first for debugging

* Remove cached resolvedModule if the file was deleted

* Move the fix to lsHost

* Properly clean lastDeletedFile

* Remove unused builder API

* move the delete file check into module name valid check
2016-10-11 13:41:04 -07:00
Zhengbo Li 3b0515fd8b Send config file diagnonstics event even when no errors were found (#11285)
* emit config diagnostics event when no errors found

* Add tests for project service events
2016-10-10 16:38:08 -07:00
Zhengbo Li 60ab007d3a Merge pull request #11164 from zhengbli/updateLib09262016
Routine update of dom libs
2016-09-27 19:00:24 -07:00
zhengbli c08e2bfd28 update dom libs 2016-09-26 16:52:25 -07:00
Zhengbo Li ff082eb617 Merge pull request #11070 from zhengbli/allowSynthetic
set allowSyntheticDefaultImports to true by default for jsconfig.json
2016-09-22 17:13:31 -07:00
zhengbli 12578a5cc6 set allowSyntheticDefaultImports to true by default for jsconfig.json 2016-09-22 14:55:58 -07:00
Zhengbo Li 3c4786d542 fix 9610 (#11042) 2016-09-21 16:52:02 -07:00
Zhengbo Li 3c20df5e93 Create folders for sys.writeFile if folder doesn't exist (#10848)
* Create folders for sys.writeFile

* Use project root path for emit output file name

* Normalize project file path for external projects

* Patch writeFile for all sys implementations

* Use the original file for single inferred project case

* recursive create directory for all sys implementations
2016-09-13 16:20:42 -07:00
Zhengbo Li 2ca9953235 Support compile on save for inferred projects (#10847)
* Support compile on save for inferred projects

* Rename to remove the "VS" prefix
2016-09-13 16:14:55 -07:00
Zhengbo Li 2b8d96371e Avoid circular references in core.ts (#10783) 2016-09-08 13:26:01 -07:00
Zhengbo Li bef6a668ad Add a rule to toggle space after opening brace and before closing brace (#10447)
* Add a rule to toggle space after opening brace and before closing brace

* Make the added format option optional

* Fix merge issues
2016-09-06 16:15:13 -07:00
zhengbli 11e9f50722 Port #10728: Fix #6500 2016-09-06 13:04:29 -07:00
Zhengbo Li 21736a1dbb Fix #6500 (#10728) 2016-09-06 11:36:23 -07:00
Zhengbo Li a3cd7d8c97 Avoid returning type symbols for js configured projects (#10654)
* Exclude all things from .d.ts files for projects containing only .js and .d.ts files
2016-09-01 15:17:38 -07:00
Zhengbo Li 95378aa399 Fix compile on save issues (#10615)
* only return .ts and .tsx files for affected document list
* Return all files exclude mixed-content files for CoS affected list
2016-08-31 12:11:32 -07:00
Zhengbo Li 1fb969f107 Split tests and fix issues with missing referenced files (#10599)
* Split tsserver project system tests to seperate files

* fix issues with missing references

* Incorporate changes in tsserverVS-WIP branch

* drop ts prefix
2016-08-30 11:47:08 -07:00
Zhengbo Li 8d5aaf8eda avoid creating syntax nodes for jsdoc comment tags (#10526) 2016-08-25 14:26:58 -07:00
Zhengbo Li 3953d6ba96 [CoS] return results from all projects if not specified project file name (#10527) 2016-08-25 10:46:48 -07:00
Zhengbo Li eea2dddfe1 Correct default compileOnSave value for different projects (#10528) 2016-08-25 10:46:41 -07:00
Zhengbo Li 6c49dc2f70 strip comments when re-emitting tsconfig.json (#10529) 2016-08-25 10:15:42 -07:00
Zhengbo Li bab4a52983 strip comments when re-emitting tsconfig.json (#10529) 2016-08-25 06:21:02 -07:00
Zhengbo Li d72287e335 Fix issue when building dependency graph for files with circular refs (#10514)
* Fix issue when building dependency graph for files with circular refs

* Make "emitOnlyDtsFiles" parameter non-optional in most cases
2016-08-24 10:38:07 -07:00
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
Zhengbo Li edbeab0ff2 Merge pull request #10418 from zhengbli/tolerateConfigError
Tolerate errors in config file
2016-08-22 16:10:27 -07:00
Zhengbo Li 6f722b0d8c Merge pull request #10441 from zhengbli/routineUpdate819
routine update of dom libs
2016-08-22 15:34:46 -07:00
zhengbli a8ab52fd57 Use TS parser to tolerate more errors in tsconfig.json 2016-08-20 20:47:35 -07:00
zhengbli b2074172e1 Add test for configFile error tolerance 2016-08-20 20:47:30 -07:00
zhengbli 84386f9d3b Tolerate certain errors in tsconfig.json 2016-08-20 20:46:56 -07:00
zhengbli 6d2323b0d8 Simplify implementation 2016-08-20 20:41:47 -07:00
zhengbli e445e012c4 Add test for jsdoc syntactic classification for function declaration 2016-08-20 20:41:33 -07:00
Zhengbo Li 66f6f9ba05 Merge pull request #10458 from zhengbli/betterTestForModuleExportDOc
Add more test for #10426
2016-08-20 20:39:33 -07:00
zhengbli 794d3e91d0 routine update of dom libs 2016-08-20 20:35:58 -07:00
zhengbli eeec775da0 Add more test for 10426 2016-08-20 19:12:11 -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
Zhengbo Li d24afc2ad0 Return non-JsDocComment children
... to make syntactic classification work
2016-08-18 00:06:48 -07:00
Zhengbo Li e16326de8b Merge pull request #10260 from zhengbli/fixSession
Avoid using the global name
2016-08-10 15:13:56 -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 606ac0e533 Port #9621 to release-2.0 2016-07-13 11:38:26 -07:00
Zhengbo Li 9eeb69dfbc Merge pull request #9621 from zhengbli/fixJSDocPropertyTag
fix the issue that @property types are not recoganized
2016-07-13 11:32:36 -07:00
zhengbli c19512edb5 Add node flag check 2016-07-11 14:57:54 -07:00
zhengbli 73f741418f fix the issue that @property types are not recoganized 2016-07-11 13:01:05 -07:00
Zhengbo Li 81e8840136 Merge pull request #9565 from zhengbli/fixTypedefParsingIssue
Fix typedef parsing issue
2016-07-08 12:51:02 -07:00
zhengbli ebc75a2511 Add test for parsed @typedef tag node shape 2016-07-08 10:02:00 -07:00
zhengbli fd6676049b Avoid putting children tags in jsdoccomment 2016-07-07 13:50:11 -07:00
zhengbli b848690626 Port 9426 to release 2.0 2016-06-30 14:26:07 -07:00
Zhengbo Li 494fada879 Merge pull request #9426 from zhengbli/fix9411
Add nullcheck when calculating indentations for implort clause
2016-06-30 14:21:11 -07:00
zhengbli adca77003e Add test 2016-06-29 16:00:11 -07:00
zhengbli 7232513194 Add nullcheck when calculating indentations for implort clause 2016-06-29 12:01:33 -07:00
Zhengbo Li 47bee47c75 Merge pull request #9401 from zhengbli/addThisToLib
Add This type to lib
2016-06-28 16:23:56 -07:00