119 Commits

Author SHA1 Message Date
Tien Nguyen
8550c7de4e Address feedback. 2015-08-04 15:46:38 -07:00
Tien Nguyen
d53cfdcb5b Expose document highlighting to server. 2015-08-03 20:45:39 -07:00
unknown
53e449c901 Allow tsconfig.json to be added to fourslash test. 2015-07-27 17:45:15 -07:00
Daniel Rosenwasser
3805500e84 Merge pull request #3967 from weswigham/issues/3813
Tests for the Session API
2015-07-23 13:58:07 -07:00
Wesley Wigham
8e93a49c7b Narrow exported session API, Unit tests for session API 2015-07-21 16:05:03 -07:00
Anders Hejlsberg
2913cb023b Merge branch 'master' into strictObjectLiterals
Conflicts:
	tests/baselines/reference/typeGuardFunction.types
2015-07-19 11:45:25 -07:00
Dirk Baeumer
61ca65f22f Fixed #3887 tsserver drops responses 2015-07-16 10:40:06 +02:00
Anders Hejlsberg
11aecee9a6 Switch to assignability check and fix compiler bugs found by check 2015-07-10 19:16:53 -07:00
Wesley Wigham
d1a2ae5e12 Factor switch staement into a map and create a method to add members to it 2015-06-19 12:39:51 -07:00
Mohamed Hegazy
7361d68d25 Merge pull request #3542 from weswigham/jake-lssl
Add build target for packaging tsserver as a library
2015-06-17 23:54:04 -07:00
Wesley Wigham
9cc97f1fc5 feedback from pr #3542 2015-06-17 21:17:09 -07:00
Wesley Wigham
7390fe0eab Feedback form pr #3513 2015-06-17 13:21:43 -07:00
Arthur Ozga
1d5dcf0d0c changes that are non-breaking 2015-06-16 15:39:34 -07:00
Wesley Wigham
8554791574 Decouple ts.sys from the editorServices where possible 2015-06-15 13:37:19 -07:00
Wesley Wigham
ab1512fb13 Export server & session without any node specifics 2015-06-15 13:37:18 -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
Zhengbo Li
321cfab2d7 CR feedback 2015-05-29 18:03:41 -07:00
Zhengbo Li
c597bd63fc Add APIs to provide project info for a given file
Return the path of the config file and the file name list of the project
(optionally). This is helpful in differentiate the build command
behavior for loose files and configured projects in sublime.
2015-05-29 17:20:41 -07:00
Bryan Forbes
884ca4edbc ProjectService passing incorrect object to parseConfigFile()
The return signature of `readConfigFile()` changed in
f8424d0b0c91a487a2c8cc226c89ffb359816b7b and the code using it in
`ProjectService` was never updated to match. This lead to the language
services attempting to parse an object that doesn't match what is
expected and using the default compiler options instead of what is
defined in `tsconfig.json`. Similarly, the return value of the
closure in `getTSConfigFileInfo()` was never updated to match in
both places it returns.
2015-05-05 16:51:14 -05:00
Mohamed Hegazy
7fc6142def Merge branch 'master' into getTypeDefinitionAtPosition
Conflicts:
	src/services/services.ts
2015-05-04 10:02:37 -07:00
Zhengbo Li
d580063083 Fix host formatting configuration issues 2015-05-03 15:31:07 -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
Cyrus Najmabadi
d1607cfc65 Merge branch 'master' into getClassifications2 2015-04-30 13:16:47 -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
Paul van Brenk
80ae52b7e9 expose the config file processing throught the LS and
add a callback to enumerate files in a directory
2015-04-21 13:24:02 -07:00
Dirk Bäumer
62b15de666 Merge pull request #2687 from dbaeumer/feature/fix2507
fixes #2507 - bad formatting for formatonkey if convertTabsToSpaces === false
2015-04-19 21:43:51 +02:00
steveluc
b35fea8e9e Eliminate HUGE (>10X) performance regression on session.ts dispatch that
was causing major lag for Sublime plug-in.  Backs out destructuring
dispatch change in session.ts
2015-04-13 19:59:02 -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
180f17d088 Destructure arguments at dispatched calls. 2015-04-08 17:02:42 -07:00
Daniel Rosenwasser
12ccdb63db Apparently our server tests can't handle negative tests. 2015-04-08 01:19:45 -07:00
Daniel Rosenwasser
d8d494d4da *Actually dispatched* on the logic. 2015-04-08 00:41:12 -07:00
Daniel Rosenwasser
93bb224545 Actually implemented the session-side logic. 2015-04-08 00:35:34 -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
Yui T
742f65c80b Merge branch 'master' into parseClassInStrictMode
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
2015-04-03 17:23:02 -07:00
Cyrus Najmabadi
6f250703ff Merge branch 'master' into JSLS
Conflicts:
	src/services/services.ts
2015-04-02 14:22:16 -07:00
Yui T
64427a9df1 Remove checking for scriptTarget before setting parsing context for classLikeDeclaration 2015-04-02 13:41:03 -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
Mohamed Hegazy
7f5337701f Consolidate test logic in one helper function 2015-03-31 13:40:17 -07:00
Steve Lucco
0ec6edaaf6 Merge pull request #2504 from Microsoft/fixConfigLookup
Fix bug stemming from use of tsc findConfigFile by server.
2015-03-26 15:24:46 -07:00
Dirk Baeumer
c123208784 fixes #2507 - bad formatting for formatonkey if convertTabsToSpaces === false 2015-03-26 15:33:15 +01:00
Dirk Baeumer
631a9d80be Merge pull request #2489 from dbaeumer-feature/formatOptions 2015-03-26 11:23:14 +01:00