Commit Graph

50 Commits

Author SHA1 Message Date
zhengbli
42942a5dc4 Merge branch 'master' into addTsConfigWatcher 2015-08-19 12:44:29 -07:00
Anders Hejlsberg
11aecee9a6 Switch to assignability check and fix compiler bugs found by check 2015-07-10 19:16:53 -07:00
Arthur Ozga
1d5dcf0d0c changes that are non-breaking 2015-06-16 15:39:34 -07:00
Mohamed Hegazy
224e7630ea use namespaces instead of modules in the codebase 2015-06-12 09:01:48 -07:00
Zhengbo Li
a7550dbba1 CR feedback 2015-06-02 15:25:01 -07:00
Zhengbo Li
70675162dc Add tests for projectinfo command 2015-06-01 17:45:28 -07:00
Mohamed Hegazy
7fc6142def Merge branch 'master' into getTypeDefinitionAtPosition
Conflicts:
	src/services/services.ts
2015-05-04 10:02:37 -07:00
Mohamed Hegazy
f073981474 Update command name 2015-05-01 15:57:11 -07:00
Cyrus Najmabadi
7769b4cd19 Update names. 2015-04-30 17:48:01 -07:00
Cyrus Najmabadi
5ad7a593d4 Add a common, dense, format for classification operations to lower cost of processing on the host side.
We now just return an array of triples to represent classified results.  The triple contains:
1) the start of the classification.
2) the length of the classification.
3) the type of the clasification.

We also encode this into a comma separated string when passing over to the managed side
(as opposed to an JSON array).  That way we don't pay such a high JSON parsing cost.
Instead, we can just do a string.split(",") on the encoded triples and process each
element ourselves.
2015-04-30 14:26:46 -07:00
Mohamed Hegazy
b6905aff0c Add getTypeDefinitionAtPosition to tsserver 2015-04-29 22:55:05 -07:00
Mohamed Hegazy
e9f76d0002 Add implementation for getTypeDefinitionAtPosition 2015-04-29 22:54:49 -07:00
Cyrus Najmabadi
25c52bb406 Faster getClassifications 2015-04-23 13:40:34 -07:00
Cyrus Najmabadi
020c12c6a6 Merge branch 'master' into GetOccurrencesSingleFile 2015-04-08 23:36:22 -07:00
Cyrus Najmabadi
6dee32a703 Extract code for getting syntactic document highlights into its own function. 2015-04-08 21:59:50 -07:00
Daniel Rosenwasser
12ccdb63db Apparently our server tests can't handle negative tests. 2015-04-08 01:19:45 -07:00
Daniel Rosenwasser
5b6c65ffe0 Added support for getOccurrences to the server. 2015-04-07 23:31:09 -07:00
Yui T
64427a9df1 Remove checking for scriptTarget before setting parsing context for classLikeDeclaration 2015-04-02 13:41:03 -07:00
Daniel Rosenwasser
e33b24d3d0 Merge pull request #2480 from dbaeumer/feature/signatureHelp
Add signature help to Typescript server
2015-03-25 15:07:24 -07:00
Dirk Baeumer
c66571b273 Integrated pull request feedback 2015-03-25 12:31:59 +01:00
Cyrus Najmabadi
cbeeb519b1 Add a new findReferences API that buckets results with the definition they matched against. 2015-03-20 14:31:36 -07:00
steveluc
34e612c9fc Add handling of hard tabs in server buffers. Change message protocol to
pass locations as line/offset pairs instead of line/column pairs, where
offset is a 1-based character offset from the beginning of the line.
Offset will be equal to column if the line contains no tabs.  If the
line contains tabs, offset will be less than or equal to column,
depending on how many tabs are before the offset.  Also added tab size
and indent size to file open message.
2015-03-17 22:58:12 -07:00
CyrusNajmabadi
5141f1d4c9 Merge pull request #2111 from Microsoft/navToPatternMatcher
Move NavigateTo over to using the new pattern matcher.
2015-02-23 16:01:23 -08:00
Cyrus Najmabadi
fd1b5875e2 Move NavigateTo over to using the new pattern matcher. 2015-02-22 21:25:43 -08:00
steveluc
f19619e22b Add maxResultCount optional field to NavtoRequestArgs. Change
session.ts to use this field.  Remove sort of nav items from getNavigateToItems in
sesion.ts because LS now does the sort.  Removed no content throw in
quick info as this happens frequently with Sublime (every cursor move
calls quick info, and quick info is only available on symbols).  Added
mechanism for other commands to avoid throwing and instead return a
specific error message, so that we don't make the log unreadable (as it
was with hundreds of quick info stack traces).
2015-02-22 00:44:14 -08:00
Cyrus Najmabadi
eb5936b06f Merge branch 'master' into baseZero
Conflicts:
	src/harness/harnessLanguageService.ts
2015-02-20 16:56:58 -08:00
steveluc
d364f6110e Style fixes. 2015-02-19 12:56:53 -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
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
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
Mohamed Hegazy
8a9ac8d338 Change ServerProtocol module to ts.server.protocol 2015-02-15 19:14:33 -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
2a02655f72 Add navbar test 2015-02-15 16:23:36 -08:00
Mohamed Hegazy
40d3cb78d5 Add test for rename 2015-02-14 23:07:20 -08:00
Mohamed Hegazy
178e8f76e6 Add test for quickInfo 2015-02-14 22:28:38 -08:00
Mohamed Hegazy
11e246036b Add test for find references 2015-02-14 21:49:10 -08:00
Mohamed Hegazy
d396ddfa7b Add test for completions 2015-02-14 19:53:23 -08:00
Mohamed Hegazy
a0b557e1e2 Recover from git corruption 2015-02-14 15:43:38 -08:00
Mohamed Hegazy
99373dbd89 Add test for goto def 2015-02-12 16:31:08 -08:00
Mohamed Hegazy
c0b1254072 Support brace matching 2015-02-12 13:35:11 -08:00
Mohamed Hegazy
3e86e557d5 Use commmandNames module 2015-02-12 13:10:55 -08:00
Mohamed Hegazy
c987ab93f0 Wire navto tests 2015-02-12 12:52:26 -08:00
Mohamed Hegazy
4a44b7437a Supportt abbreviation 2015-02-12 11:53:13 -08:00
Mohamed Hegazy
07d37fa7fb Simplify host logic in client 2015-02-12 10:31:41 -08:00
Mohamed Hegazy
0963644089 Add type annotations 2015-02-11 19:49:36 -08:00
Mohamed Hegazy
17f19b26a0 Initial checkin for server code 2015-02-11 19:42:44 -08:00