24 Commits

Author SHA1 Message Date
Mohamed Hegazy
f073981474 Update command name 2015-05-01 15:57:11 -07:00
Mohamed Hegazy
b6905aff0c Add getTypeDefinitionAtPosition to tsserver 2015-04-29 22:55:05 -07:00
Daniel Rosenwasser
5b6c65ffe0 Added support for getOccurrences to the server. 2015-04-07 23:31:09 -07:00
Steve Lucco
de2e1455bb Merge pull request #2591 from Microsoft/serverAddExitMessage
Add an exit message for the server.
2015-04-07 16:00:48 -07:00
steveluc
74e6b6eccc Add an exit message for the server. 2015-04-02 00:13:06 -07:00
Cyrus Najmabadi
1385d9b50c Merge branch 'master' into JSLS
Conflicts:
	src/services/services.ts
2015-03-31 17:40:56 -07:00
Dirk Baeumer
631a9d80be Merge pull request #2489 from dbaeumer-feature/formatOptions 2015-03-26 11:23:14 +01:00
Dirk Baeumer
c66571b273 Integrated pull request feedback 2015-03-25 12:31:59 +01:00
Cyrus Najmabadi
f583fd451e Merge branch 'completionEntryDetails' into javascriptLanguageservice
Conflicts:
	src/services/services.ts
2015-03-24 13:48:00 -07:00
Dirk Baeumer
7ed885450b Mark new interfaces with export 2015-03-24 15:48:41 +01:00
Dirk Baeumer
bda471f110 Add SignatureHelp support to Typescript server 2015-03-24 15:44:01 +01: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
steveluc
e1d7389f3e Merge remote-tracking branch 'origin/master' into
serverConfigurationMessage.
2015-03-17 17:51:16 -07:00
steveluc
51c64b385c Added configuration message. Added logic to expand tabs to spaces using
host-configured tab size.
2015-03-16 14:47:46 -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
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
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
f5c1bfbca7 renmae protodef.d.ts to protocol.d.ts and protocol.ts to session.ts 2015-02-15 18:49:22 -08:00