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
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
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
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
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
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
a36db0ea10
Merge pull request #13424 from zhengbli/13129
...
Change the module specifier search order
2017-01-12 12:06:28 -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
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
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
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
60ab007d3a
Merge pull request #11164 from zhengbli/updateLib09262016
...
Routine update of dom libs
2016-09-27 19:00:24 -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
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
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
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
Zhengbo Li
66f6f9ba05
Merge pull request #10458 from zhengbli/betterTestForModuleExportDOc
...
Add more test for #10426
2016-08-20 20:39:33 -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
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
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
Zhengbo Li
81e8840136
Merge pull request #9565 from zhengbli/fixTypedefParsingIssue
...
Fix typedef parsing issue
2016-07-08 12:51:02 -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
Zhengbo Li
47bee47c75
Merge pull request #9401 from zhengbli/addThisToLib
...
Add This type to lib
2016-06-28 16:23:56 -07:00
Zhengbo Li
50177b14d0
Merge pull request #9396 from zhengbli/fix9186
...
Check getCurrentDirectory availability in getEffectiveTypeRoots
2016-06-28 13:01:51 -07:00
Zhengbo Li
b2bc91b074
Merge pull request #9375 from zhengbli/fixTypo
...
Fix type of the disableSizeLimit option
2016-06-27 13:03:09 -07:00
Zhengbo Li
515ed3dc07
Merge pull request #9346 from zhengbli/addNewAPIToProtocal
...
Add new APIs to protocol
2016-06-24 01:11:14 -07:00
Zhengbo Li
69e2f0e459
Merge pull request #9306 from zhengbli/syncGetErrAPIs
...
Port the sync diagnostics API from tsserverVS-WIP branch to 2.0
2016-06-23 21:59:29 -07:00
Zhengbo Li
7b3abc682b
Merge pull request #9213 from zhengbli/fixRealPath
...
ignore casing when converting a source file path to relative path
2016-06-20 14:07:09 -07:00
Zhengbo Li
ba78d1e35c
Merge pull request #9250 from zhengbli/fix9244
...
Add missing worker types
2016-06-18 21:00:05 -07:00
Zhengbo Li
abe7c19e34
Merge pull request #9237 from zhengbli/updateDomJune17
...
Routine dom lib update
2016-06-17 14:52:54 -07:00
Zhengbo Li
95ae809faa
Merge pull request #7486 from zhengbli/fixLargeProjectTry2
...
Add upper limit for the program size to prevent tsserver from crashing
2016-06-15 17:31:15 -07:00
Zhengbo Li
7bb739fa40
Merge pull request #9083 from zhengbli/i6853
...
Check use before declaration if both the use and decalration are not in module file
2016-06-15 12:43:30 -07:00
Zhengbo Li
8c38cbfb4b
Merge pull request #9073 from zhengbli/i8523
...
Increase project reference count even when the opened file is referenced by it but not its root
2016-06-15 12:42:14 -07:00
Zhengbo Li
8f39f0574d
Merge pull request #9032 from zhengbli/printTrace
...
Return trace when exception happens
2016-06-08 15:46:48 -07:00
Zhengbo Li
cdf4cded15
Merge pull request #9002 from zhengbli/moreTsserverTests
...
Add tests for tsserver project system
2016-06-07 21:56:09 -07:00
Zhengbo Li
78792df4db
Fix linting issues
2016-06-07 16:11:42 -07:00
Zhengbo Li
131f759c5c
Merge pull request #8930 from zhengbli/i8676
...
Run fixupParentReferences when parsing isolated jsDocComment
2016-06-02 14:15:14 -07:00
Zhengbo Li
166f399d17
Merge pull request #8103 from zhengbli/typedefForJsdoc
...
[Salsa] Support @typedef for jsdoc
2016-05-31 16:24:44 -07:00
Zhengbo Li
5c095a8975
Merge pull request #8901 from zhengbli/formatOnTypeCurrentLine1
...
Not let the "Format on enter" feature delete the indentation of the current line
2016-05-31 14:35:22 -07:00
Zhengbo Li
f95f51fefc
Merge pull request #8703 from zhengbli/excludeOutDir
...
exclude outDir and add more default excludes
2016-05-19 17:41:21 -07:00
Zhengbo Li
e8862a7168
Merge pull request #8504 from zhengbli/i8334
...
Tolerate non-existing files specified for tsserver
2016-05-19 16:52:55 -07:00
Zhengbo Li
3fb16f5930
Merge pull request #8364 from zhengbli/i7503
...
Fix indentation for array items
2016-05-16 21:53:27 -07:00
Zhengbo Li
49913fda83
Merge pull request #8501 from zhengbli/ignroeHiddenFilesAddTest
...
Add test for explicitly added dotted files
2016-05-06 13:13:34 -07:00
Zhengbo Li
d11ee08170
Merge pull request #8484 from zhengbli/ignoreHiddenFiles
...
ignore dotted files and folders
2016-05-05 19:22:10 -07:00
Zhengbo Li
166f95c677
Merge pull request #8311 from zhengbli/reportTsconfigError
...
[API] Add event for reporting tsconfig errors
2016-05-05 13:11:30 -07:00
Zhengbo Li
8acc88528d
Merge pull request #8371 from zhengbli/fixRenameFileCacheIssue
...
Wipe out the cached script content if failed to read it
2016-04-29 16:31:40 -07:00
Zhengbo Li
70d805a935
Merge pull request #8318 from zhengbli/i7514
...
Add dirWatcher for "watch" option in tsconfig.json
2016-04-27 14:57:03 -07:00
Zhengbo Li
c4d5783589
Merge pull request #8339 from zhengbli/updateLib04272016
...
Routine update of dom lib files
2016-04-27 14:16:04 -07:00
Zhengbo Li
a1039bb061
Routine update of dom lib files
2016-04-27 13:22:10 -07:00
Zhengbo Li
c953128870
Merge pull request #8291 from zhengbli/honorEditorOptions
...
Remove hard-coded new line character option
2016-04-25 15:45:37 -07:00
Zhengbo Li
aca769f8c4
Remove hard-coded new line character option
2016-04-25 15:24:34 -07:00
Zhengbo Li
0f18cf8bb7
Merge pull request #8196 from zhengbli/fileWatcherBackToPolling
...
Change file watching back to polling.
2016-04-25 11:42:26 -07:00
Zhengbo Li
497e810206
Merge pull request #8244 from zhengbli/i4420
...
Provide server response when reload is done
2016-04-21 16:37:05 -07:00
Zhengbo Li
b05a2304aa
Merge pull request #8236 from zhengbli/i8222
...
Treat TS-only keywords as identifiers in jsdoc comments
2016-04-21 16:28:01 -07:00
Zhengbo Li
bdf131a598
Merge pull request #7353 from zhengbli/i2531
...
Enable tsserver global operations to be performed on all projects
2016-04-21 15:08:51 -07:00
Zhengbo Li
3a8ebf109f
Merge pull request #7954 from zhengbli/supportScriptKindOnServer
...
Add API support for LS host to specify script kind of a file to open
2016-04-19 15:41:47 -07:00
Zhengbo Li
b9c4b026fe
Merge pull request #7619 from zhengbli/updateDom20160321
...
Routine update of dom-related lib.d.ts
2016-04-07 15:33:43 -07:00
Zhengbo Li
3acff6def6
Merge pull request #7836 from zhengbli/fixFileCasingForTsc
...
Not use toPath in tsc when dealing with file watching
2016-04-06 10:51:51 -07:00
Zhengbo Li
900281033e
Not use toPath in tsc when dealing with file watching
2016-04-05 12:19:36 -07:00
Zhengbo Li
5c9ce9e8ec
Merge branch 'master' of https://github.com/Microsoft/TypeScript into fixLargeProjectTry2
...
# Conflicts:
# src/compiler/sys.ts
2016-03-28 13:22:07 -07:00
Zhengbo Li
6cc1b174fb
Merge pull request #7676 from zhengbli/fixNodeOnSharePoint
...
Explicitly exclude . and .. for fs.readdirSync
2016-03-24 16:08:22 -07:00
Zhengbo Li
ec8eefffb0
Merge pull request #7658 from zhengbli/fixCaseSensitivity
...
Use fileName instead of Path when dealing with file systems directly
2016-03-24 12:44:42 -07:00
Zhengbo Li
e151d49e7f
Merge pull request #7307 from zhengbli/fixFormatOnEnter
...
Avoid removing indentation on a new line as trailing white spaces
2016-03-10 09:18:56 -08:00
Zhengbo Li
640db0d010
Merge pull request #6769 from zhengbli/updateLib20160131
...
Routine update of lib.d.ts 20160131
2016-02-01 13:07:27 -08:00
Zhengbo Li
31bf103212
Merge pull request #6632 from zhengbli/fixFindAllRefForSalsa
...
Fix find all references for salsa
2016-01-28 11:44:47 -08:00
Zhengbo Li
931d162620
Merge pull request #6545 from zhengbli/supportJsconfig
...
Add support for jsconfig.json in language service
2016-01-21 16:35:17 -08:00
Zhengbo Li
ebfdeaab0c
Merge pull request #6546 from zhengbli/20160119UpdateLib
...
Routine update for dom.generated.d.ts from TSJS
2016-01-20 13:33:51 -08:00
Zhengbo Li
a24900e88a
Merge pull request #6509 from zhengbli/fixPathForWatcher
...
Fix the getCanonicalFileName in sys.ts and also check null value in f…
2016-01-15 17:32:46 -08:00
Zhengbo Li
d5d7a2a2dc
Merge pull request #6026 from zhengbli/i6016
...
Fix too many watcher instances issue
2016-01-14 11:28:44 -08:00
Zhengbo Li
067573b0c3
cr feedback: simplify the removeFile function
2016-01-13 14:03:18 -08:00
Zhengbo Li
d22626f32d
Fix lint issue
2016-01-12 00:17:38 -08:00
Zhengbo Li
b168da9248
Merge pull request #6300 from zhengbli/syncTsjs20151230
...
Update dom.generated.d.ts with latest version in TSJS repo
2016-01-06 00:41:09 -08:00
Zhengbo Li
631363fee1
Fix lint issues
2015-12-22 15:38:52 -08:00
Zhengbo Li
178b2dabfe
Add type alias for filewatching callbacks
2015-12-21 17:02:00 -08:00
Zhengbo Li
8c6105f4dc
Merge pull request #6066 from zhengbli/i6016_for17
...
Roll back to polling file watching for 1.7
2015-12-10 23:40:45 -08:00
Zhengbo Li
564c4af59b
Rollback to polling file watching
2015-12-10 23:27:07 -08:00
Zhengbo Li
36cc0e017b
fix linter errors
2015-12-10 17:59:07 -08:00
Zhengbo Li
5fa7bec226
revert back to polling watching for approaching release
2015-12-10 17:54:03 -08:00
Zhengbo Li
998372709b
Merge pull request #5982 from zhengbli/updateLib
...
Weekly update of lib.d.ts ported from TSJS repo
2015-12-08 11:37:25 -08:00
Zhengbo Li
da009c5b21
update lib.d.ts from TSJS repo
2015-12-07 22:28:02 -08:00
Zhengbo Li
5e86ca1ba8
Merge pull request #5836 from zhengbli/SyncTSJS
...
Sync the dom.generated.d.ts files from TSJS repo
2015-12-01 10:46:25 -08:00
Zhengbo Li
bd39847d6c
Merge pull request #5593 from zhengbli/i5530
...
Add file content as a parameter for the tsserver open command
2015-11-13 11:30:11 -08:00
Zhengbo Li
a9058f9aa9
Merge pull request #5402 from zhengbli/i4177
...
Add string overloads to document.createElementNS
2015-10-26 23:41:28 -04:00
Zhengbo Li
c3c66a40f1
Merge pull request #5354 from zhengbli/fixWriteSync
...
Change sys.write to async in tsserver
2015-10-24 18:57:14 -04:00
Zhengbo Li
f431c82296
Merge pull request #5336 from zhengbli/fixWatcherIssue
...
Issue fix for config file watcher callback
2015-10-23 11:47:54 -07:00
Zhengbo Li
1b3640760b
Merge pull request #5263 from zhengbli/pr5127cr
...
Address code review of #5127
2015-10-19 22:01:15 -07:00
Zhengbo Li
d703e09227
Merge pull request #5262 from zhengbli/Fix5127CR
...
Address code review from 5127
2015-10-14 18:20:06 -07:00
Zhengbo Li
8864b06cbf
Merge pull request #5127 from zhengbli/newAddDirectoryWatcher
...
Add directory watcher for tsserver and tsc
2015-10-14 17:43:10 -07:00
Zhengbo Li
2bf39a65d9
Merge pull request #5261 from zhengbli/i5015
...
Re-read file content upon closing
2015-10-14 17:41:54 -07:00
Zhengbo Li
5605c8a639
Merge pull request #5177 from zhengbli/i4684
...
Change the definition of NodeFilter in lib.d.ts
2015-10-12 11:44:26 -07:00
Zhengbo Li
c2a589826d
Merge pull request #5159 from zhengbli/i4942
...
Change types of fillStyle and strokeStyle in CanvasRenderingContext2D
2015-10-08 10:18:50 -07:00