Commit Graph

432 Commits

Author SHA1 Message Date
Steve Lucco
5556683227 Merge pull request #2258 from Microsoft/formatLine
TS Server format line fixes
2015-03-09 12:52:14 -07:00
steveluc
04320e415e Renames and comments as requested by feedback. 2015-03-09 01:23:03 -07:00
Cyrus Najmabadi
6e8d80f159 tests for newline preservation. 2015-03-08 19:26:33 -07:00
Cyrus Najmabadi
c371f1e521 Make the preservation of formatting an optional experimental compiler flag. 2015-03-08 19:06:55 -07:00
steveluc
360e47880e Addressed comments on code style and organization. 2015-03-07 23:19:58 -08:00
steveluc
865802a63c Added new logger methods to test harness. 2015-03-07 17:46:56 -08:00
Cyrus Najmabadi
c8399fc6c5 Use CRLF not LF. 2015-03-02 14:46:15 -08:00
Vladimir Matveev
3119839d55 addressed CR feedback 2015-02-23 22:21:03 -08:00
Vladimir Matveev
db5b1b387c use character instead of column when formatting multiline comments with tabs 2015-02-23 14:30:25 -08:00
Cyrus Najmabadi
eb5936b06f Merge branch 'master' into baseZero
Conflicts:
	src/harness/harnessLanguageService.ts
2015-02-20 16:56:58 -08:00
Cyrus Najmabadi
990bbb2dce CR feedback to use template strings. 2015-02-19 15:52:37 -08:00
Steve Lucco
6d7045ec5a Merge pull request #2041 from Microsoft/TSServer
TS Server
2015-02-19 13:10:21 -08:00
Cyrus Najmabadi
124a77cc3a Remove 'ZeroBased' from all APIs, now that all APIs are zero based. 2015-02-16 19:35:45 -08:00
Cyrus Najmabadi
041b646004 Move typewriter over to using zero based math. 2015-02-16 19:06:47 -08:00
Cyrus Najmabadi
e723d4cee0 Use the zero based methods in the harness. 2015-02-16 19:01:32 -08:00
Cyrus Najmabadi
261c8b5bd3 Stop using one based math in fourslash. 2015-02-16 18:23:58 -08:00
Cyrus Najmabadi
572c550a33 Remove usages of computeOneBasedLineAndCharacterOfPosition 2015-02-16 18:11:45 -08:00
Cyrus Najmabadi
b3366ec8b4 name more line/char functions more clearly. Use zero based indexing in breakpoints. 2015-02-16 16:18:53 -08:00
Cyrus Najmabadi
11a9df2cc9 Expose zero-based helpers that code will be able to call. 2015-02-16 15:30:21 -08:00
Cyrus Najmabadi
35b489d7d1 Rename our one-based methods to more clearly indicate that that's what base they use. 2015-02-16 15:20:05 -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
2a02655f72 Add navbar test 2015-02-15 16:23:36 -08:00
Mohamed Hegazy
89267bcd6f Move fileWatching logic to the server to allow for testing on non-node systems 2015-02-14 19:53:12 -08:00
Mohamed Hegazy
dfd8a0620d Always default to using JSON and do not format it 2015-02-14 15:50:06 -08:00
Mohamed Hegazy
a0b557e1e2 Recover from git corruption 2015-02-14 15:43:38 -08:00
Cyrus Najmabadi
be40cac7fd Don't check invariants when running RWC tests. It adds too much running time. 2015-02-12 17:25:57 -08:00
Mohamed Hegazy
99373dbd89 Add test for goto def 2015-02-12 16:31:08 -08:00
Mohamed Hegazy
4a44b7437a Supportt abbreviation 2015-02-12 11:53:13 -08:00
Mohamed Hegazy
abec4f9798 Wire tests to use the new server 2015-02-11 19:43:30 -08:00
Mohamed Hegazy
08f51b9070 Respond to code review comments 2015-02-09 09:19:50 -08:00
Mohamed Hegazy
55aa240ade Merge branch 'master' into LSAPICleanup
Conflicts:
	src/services/services.ts
2015-02-06 17:17:23 -08:00
Cyrus Najmabadi
02c1b8978b Check source file invariants after creating/updating them in our tests. 2015-02-06 14:54:19 -08:00
Cyrus Najmabadi
d20d20aa9c Remove "debugger;" calls. 2015-02-05 18:43:02 -08:00
Cyrus Najmabadi
acbcd6c77f Merge branch 'master' into diagnosticsOrganization 2015-02-05 17:30:27 -08:00
Cyrus Najmabadi
66a363f449 Simplify the API for emitting and reporting exit statuses to callers. 2015-02-05 15:50:18 -08:00
Cyrus Najmabadi
b0061c1420 Emit both javascript and declarations in the presence of errors (*unless* -noEmitOnError is specified). 2015-02-05 14:41:04 -08:00
Cyrus Najmabadi
ea4e3de91c Remove unnecessary diagnostics split on SourceFile. 2015-02-05 13:38:11 -08:00
Cyrus Najmabadi
337a99f62a Change the API for getting diagnostics so that all calls go through a Program instance. 2015-02-05 01:47:29 -08:00
Cyrus Najmabadi
b12be3db19 Remove dependency from the typechecker to the compiler host.
This also lets us not expose the compiler host from the Program instance.
The compiler host was only needed by the type checker to get the host newline.
The host newline was used for concatenating diagnostic message chains.  Now
we don't concatenate them up front.  Instead, we just store the message chain
in the diagnostic itself.  Then when we pass it to the host, it can then decide
what newline to use.
2015-02-04 23:20:26 -08:00
Mohamed Hegazy
68beccc480 Fix getFileContents so as not to always return the current file 2015-02-04 20:35:21 -08:00
Mohamed Hegazy
40a01a81b3 Merge branch 'master' into fourslashCleanup
Conflicts:
	src/harness/fourslash.ts
	src/harness/harnessLanguageService.ts
2015-02-04 20:22:00 -08:00
Mohamed Hegazy
fd2518dcdd rename type 2015-02-04 20:07:12 -08:00
Cyrus Najmabadi
476c8249ac Remove 'isEmitBlocked' from the program API.
If emitting is blocked, then calling .emit on the program will simply return
immediately with an appropriate reason given in the EmitResult.
2015-02-04 17:48:29 -08:00
Cyrus Najmabadi
bb307f8163 Simplify the API for emitting code from the Program instance. 2015-02-04 16:53:14 -08:00
Cyrus Najmabadi
b6d083fa40 Do not publicly expose a way on a Program instance to get typecheckers with differing behavior.
Now, you can only get the non-diagnostics, pull-type-checker from the Program instance.
If you want diagnostics, you simply ask the Program instance for the diagnostics you want.
2015-02-04 16:11:38 -08:00
Mohamed Hegazy
bfef4a0365 Add new tests for shims 2015-02-04 15:36:13 -08:00
Paul van Brenk
ece874fde3 Merge branch 'master' into LessAggresiveCompletionList 2015-02-04 14:03:49 -08:00
Cyrus Najmabadi
35a6d0e68a Introduce an object to store and manage diagnostics for different compiler components. 2015-02-04 13:04:42 -08:00
Mohamed Hegazy
c5006ca8ac remove new line 2015-02-04 12:17:04 -08:00
Mohamed Hegazy
c2bca0e84d Fix typo in type name 2015-02-04 12:16:47 -08:00