Commit Graph
3941 Commits
Author SHA1 Message Date
Steve Lucco 6d7045ec5a Merge pull request #2041 from Microsoft/TSServer
TS Server
2015-02-19 13:10:21 -08:00
steveluc d364f6110e Style fixes. 2015-02-19 12:56:53 -08:00
Jason Freeman d2c992c2de Merge pull request #2066 from Microsoft/forOf
Parsing for for...of statements
2015-02-18 18:41:41 -08:00
steveluc 4b590836e7 Split completions req/response pair into two messages "completions" and
"completionEntryDetails".   This mirrors the function of the LS API and
increases performance of completion in large projects.
2015-02-18 15:12:35 -08:00
Jason Freeman 5596993351 Merge branch 'master' into forOf
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	tests/baselines/reference/APISample_compile.js
	tests/baselines/reference/APISample_compile.types
	tests/baselines/reference/APISample_linter.js
	tests/baselines/reference/APISample_linter.types
	tests/baselines/reference/APISample_transform.js
	tests/baselines/reference/APISample_transform.types
	tests/baselines/reference/APISample_watcher.js
	tests/baselines/reference/APISample_watcher.types
2015-02-18 14:49:10 -08:00
Jason Freeman 6c32a6aca8 Address feedback 2015-02-18 14:39:07 -08:00
Jason Freeman aa13a97bf9 Merge pull request #1978 from Microsoft/esSymbols
Support ES6 built-in symbols
2015-02-18 13:19:49 -08:00
Jason Freeman 8558d642f3 Temporarily disallow for-of statements 2015-02-18 11:39:37 -08:00
Jason Freeman 7cb2a64350 Disallow type annotation on a for-of variable 2015-02-18 11:35:52 -08:00
Jason Freeman 147cc204b8 Disallow initializers in for-in and for-of loops 2015-02-18 11:35:46 -08:00
Jason Freeman f7a6354470 More resilient error recovery when declaration in for-of is empty 2015-02-18 11:35:43 -08:00
Jason Freeman cc81a670ac Fork grammar message into two messages 2015-02-18 11:35:40 -08:00
Jason Freeman 8d0829594c Accept baselines for added tests 2015-02-18 11:35:36 -08:00
Jason Freeman 7fe286061d Add tests for for-of 2015-02-18 11:35:33 -08:00
Jason Freeman 1a3294a7d2 Parity sweep for for-in & for-of 2015-02-18 11:35:29 -08:00
Jason Freeman 2c4244d749 Accept API baseline changes 2015-02-18 11:35:26 -08:00
Vladimir Matveev 7947590ee5 added ForOfStatement to forEachChild 2015-02-18 11:30:03 -08:00
Vladimir Matveev 1dfd1b470e initial version of parsing 'for-of'
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
2015-02-18 11:30:00 -08:00
steveluc 3868fb5a6b Removed deleteLen from change request; added endLine, endCol that mark
the end of the deleted Range (inclusive).  DeleteLen was not always
accurate because editors normalize \r\n to \n in some cases, affecting
the length of ranges.  In Diagnostic response items, changed len field
to end to address the same range length issue.  Flattened
MessageDiagnosticChains in diagnostic message text, since clients expect
string there.  Renamed ts.server.protocol to simply protocol in
session.ts and client.ts since module name prefix is clear.

Based on protocol feedback: Changed LineCol to Location.  Changed
CodeLocation interface name prefix to FileLocation.  Changed DiagEvent
to DiagnosticEvent.  Removed anonymous types.
2015-02-18 00:14:52 -08:00
Jason Freeman 47404bccf0 Merge branch 'master' of https://github.com/Microsoft/TypeScript into esSymbols 2015-02-17 17:02:22 -08:00
jramsay 9788acf475 Merge pull request #1990 from Microsoft/isDefaultLibFile
Replace endsWith() check with canonical normalized path comparison in getRenameInfo()
2015-02-17 15:17:38 -08:00
Jason Ramsay 975f10c6a1 Adding getCanonicalFileName to ensure case-sensitive systems do not have issues 2015-02-17 14:44:45 -08:00
Jason Freeman dd6a12911c Merge branch 'master' of https://github.com/Microsoft/TypeScript into esSymbols 2015-02-17 12:39:08 -08:00
steveluc cadd57c10f Change rename response to return the rename info + nested location
information: one array of location information per file.  Add interface
definition for rename response body.
2015-02-17 02:02:59 -08:00
steveluc d2712dd793 Removed file mapping compression technique due to brittleness of
approach.  As necessary, will substitute grouping or paging approaches.
2015-02-16 23:43:05 -08:00
Jason Freeman 59dc7d3a5b Address feedback 2015-02-16 16:50:40 -08:00
Daniel Rosenwasser cbeea38a55 Merge branch 'master' of https://github.com/Microsoft/TypeScript 2015-02-16 14:59:35 -08:00
Daniel Rosenwasser fee50a6dbc Made the actual implementation of the lexical classifier be non-optional. 2015-02-16 14:59:22 -08:00
Jason Freeman 935c6024c2 Rebaseline after merge 2015-02-16 13:48:36 -08:00
Jason Freeman 7d7d54f6f0 Merge branch 'master' of https://github.com/Microsoft/TypeScript into esSymbols
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
2015-02-16 13:44:53 -08:00
Jason Freeman 52b08089b4 Merge pull request #2052 from Microsoft/moveErrors
Move type check errors from 4000 to 2000
2015-02-16 13:35:16 -08:00
Daniel Rosenwasser 0314083af6 Merge pull request #2051 from Microsoft/absenceNonOptional
Make 'syntacticClassifierAbsent' non-optional.
2015-02-16 12:46:08 -08:00
Jason Freeman 87ea37f2e8 Accept baselines 2015-02-16 12:45:13 -08:00
Jason Freeman 3b967e3489 Move 4000-coded type check errors to 2000s where they belong 2015-02-16 12:45:03 -08:00
Daniel Rosenwasser 67638cbc00 Make 'syntacticClassifierAbsent' non-optional. 2015-02-16 12:21:16 -08:00
Mohamed Hegazy 32e2f4d95d Accept APISamples baselines 2015-02-16 12:04:34 -08:00
Jason Freeman ac829a8384 Error for naming an interface 'symbol' 2015-02-16 10:44:30 -08:00
Jason Freeman 65d831e8b3 Merge branch 'master' of https://github.com/Microsoft/TypeScript into esSymbols 2015-02-16 10:38:22 -08:00
Mohamed Hegazy 54e6756831 Remove unused code and only expose needed types/classes 2015-02-15 20:04:14 -08:00
Mohamed Hegazy bbcdb61254 remove unused cancellationToken class 2015-02-15 19:55:10 -08:00
Mohamed Hegazy bdd0bf341b Comment formatting 2015-02-15 19:48:35 -08:00
Mohamed Hegazy 8a9ac8d338 Change ServerProtocol module to ts.server.protocol 2015-02-15 19:14:33 -08:00
Mohamed Hegazy ca34838535 Remove unused code 2015-02-15 19:13:52 -08:00
Mohamed Hegazy d081c9c463 rename output file to tsserver.js 2015-02-15 18:52:17 -08:00
Mohamed Hegazy f5c1bfbca7 renmae protodef.d.ts to protocol.d.ts and protocol.ts to session.ts 2015-02-15 18:49:22 -08:00
Mohamed Hegazy d9d2e99495 Remove debugging statemetns 2015-02-15 18:43:39 -08:00
Mohamed Hegazy 76c7fdf6d1 Add test for completionEntryDetails 2015-02-15 18:24:30 -08:00
Mohamed Hegazy 8944df18d4 use EncodedFile everywhere in responses 2015-02-15 17:37:26 -08:00
Mohamed Hegazy 50ca35a979 Make method names inline with matching LS function names 2015-02-15 16:28:39 -08:00
Mohamed Hegazy 2a02655f72 Add navbar test 2015-02-15 16:23:36 -08:00