Commit Graph

4422 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
37c6f69f01 Hold at most 4 snapshots per file in the server. This is about 1K per file. 2015-03-09 11:57:50 -07:00
steveluc
04320e415e Renames and comments as requested by feedback. 2015-03-09 01:23:03 -07:00
CyrusNajmabadi
848bc87071 Merge pull request #2266 from Microsoft/moveLocal
Move variable closer to where it is used.
2015-03-09 00:47:07 -07:00
Cyrus Najmabadi
29c06f9d6a Move variable closer to where it is used. 2015-03-08 22:35:28 -07:00
CyrusNajmabadi
c6cd57d18c Merge pull request #2265 from Microsoft/preserveFormatting
Move line preservation in emit behind an experimental compiler flag.
2015-03-08 20:25:36 -07:00
Cyrus Najmabadi
4903ca0981 Merge branch 'master' into preserveFormatting
Conflicts:
	tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.js
2015-03-08 19:47:34 -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
Mohamed Hegazy
161d6463ab Merge pull request #2263 from DickvdBrink/valueOf-lib.d.ts
Added valueOf definitions for String and Number
2015-03-08 11:33:33 -07:00
Dick van den Brink
e60edb3c7e Accepted baselines 2015-03-08 19:07:22 +01:00
Dick van den Brink
23f56dadfb Fixed tests due to lib.d.ts changes 2015-03-08 18:59:04 +01:00
Dick van den Brink
c0db7ffe8f Added valueOf definitions for String and Number 2015-03-08 18:08:49 +01:00
steveluc
360e47880e Addressed comments on code style and organization. 2015-03-07 23:19:58 -08:00
Bill Ticehurst
24141f05db Merge pull request #2245 from billti/ExportVersion
Made the 'version' string an exported property
2015-03-07 21:40:32 -08:00
Bill Ticehurst
a6816fc128 Added description to version exports 2015-03-07 20:12:16 -08:00
CyrusNajmabadi
f351916fc2 Merge pull request #2257 from Microsoft/LKG
Update LKG.
2015-03-07 18:38:55 -08:00
steveluc
865802a63c Added new logger methods to test harness. 2015-03-07 17:46:56 -08:00
steveluc
9a45160ab6 Changed TypeScript server logging to use an environment variable TSS_LOG
as follows.  If TSS_LOG is not set, no logging will occur.  If TSS_LOG
is set to any value, logging will occur as before this change (log file
will be in directory of tsserver.js with name .logPID where PID is the
process id of the server process; log will contain the pre-change
messages).  If TSS_LOG is set to a string that has the form "-file
fileName", the log file will be in the tsserver.js directory with name
'fileName'.  If TSS_LOG is set to a string that has the form "-level
levelName", then the level of logging will be set to 'levelName'.
Currently the two levels are 'normal' and 'verbose'.  The TSS_LOG string
can contain zero, one or both of its options as in "-file LOG -level
verbose".  At the verbose level, the server will log every request,
response and event, and will also give elapsed time for message processing.
2015-03-07 17:13:52 -08:00
steveluc
8bef6d7ebc Added additional cases for format on enter. These cases fix bugs in the
orginal format on enter (which wasn't distinguishing whether there was
existing whitespace to start some types of lines).
2015-03-07 15:44:21 -08:00
Cyrus Najmabadi
1a08de9222 Merge branch 'master' into LKG 2015-03-07 14:08:04 -08:00
CyrusNajmabadi
c424fad34e Merge pull request #2255 from Microsoft/returnStatus
Address omitted return keyword.
2015-03-07 14:07:47 -08:00
Cyrus Najmabadi
50954ac0cc Update LKG 2015-03-07 14:07:39 -08:00
Cyrus Najmabadi
04d373ab9b Update LKG 2015-03-07 13:59:18 -08:00
Cyrus Najmabadi
7570aaac65 Merge branch 'master' into returnStatus 2015-03-07 13:51:44 -08:00
Cyrus Najmabadi
21627384a8 Merge branch 'master' into propertyAccessEmit 2015-03-07 13:51:10 -08:00
Cyrus Najmabadi
2a990a8685 Preserve newlines for conditional expressions 2015-03-07 13:50:26 -08:00
Cyrus Najmabadi
dddc4660a1 Simplify code to emit indent code. 2015-03-07 13:33:02 -08:00
Cyrus Najmabadi
680e48f507 Preserve newlines on either side of a binary expression. 2015-03-07 12:54:12 -08:00
Cyrus Najmabadi
a18934d6da Address omitted return keyword. 2015-03-07 12:27:20 -08:00
CyrusNajmabadi
ac56aa50ae Merge pull request #2251 from Microsoft/expressionToBlock
When emitting an arrow function, parenthesize the body if it could be interpreted as a block instead of an object literal.
2015-03-07 02:21:28 -08:00
Cyrus Najmabadi
bdcdd84dda CR feedback. 2015-03-07 02:08:36 -08:00
Cyrus Najmabadi
0c5654164f Fix up comment. 2015-03-07 01:33:18 -08:00
Cyrus Najmabadi
c76f71cfae When emitting an arrow function, parenthesize the body if it could be interpreted as a block instead of an object literal. 2015-03-07 01:30:45 -08:00
CyrusNajmabadi
241cee0879 Merge pull request #2248 from Microsoft/variableLike
Add an 'isVariableLike' helper function.
2015-03-06 19:19:11 -08:00
Cyrus Najmabadi
7f00378eef CR feedback. 2015-03-06 18:51:58 -08:00
Cyrus Najmabadi
a76eb69996 Add an 'isVariableLike' helper function. 2015-03-06 18:45:45 -08:00
Anders Hejlsberg
865f67e738 Merge pull request #2197 from Microsoft/exportDefault
Complete support for ES6 modules
2015-03-06 17:36:33 -08:00
Daniel Rosenwasser
b2287875ca Merge pull request #2243 from DickvdBrink/browser-test
Fixed jake runtests-browser on node 0.12
2015-03-06 17:24:02 -08:00
Anders Hejlsberg
5c56684187 Merge branch 'master' into exportDefault
Conflicts:
	tests/baselines/reference/exportAssignDottedName.errors.txt
2015-03-06 17:20:44 -08:00
Bill Ticehurst
da5caf5f72 Made the 'version' string an exported property 2015-03-06 17:09:55 -08:00
Dick van den Brink
4c16b239be Fixed jake runtests-browser on node 0.12 2015-03-07 01:38:42 +01:00
Paul van Brenk
af41be88a1 Merge pull request #2236 from Microsoft/signatureHelp
Signature help diagnostics
2015-03-06 15:31:20 -08:00
Mohamed Hegazy
59c3a7d71e Merge pull request #2235 from DickvdBrink/letConstInCatchclause
Let const in catchclause
2015-03-06 15:21:11 -08:00
Mohamed Hegazy
ffd87b182b Merge pull request #2240 from DickvdBrink/VSDevMode-doc
Fixed VSDevMode.ps1 parameter info
2015-03-06 15:20:13 -08:00
Mohamed Hegazy
134ab8247f Merge pull request #2239 from caitp/issue-2237
Document procedure for digital CLA signature in CONTRIBUTING.md
2015-03-06 15:19:03 -08:00
Paul van Brenk
80f9cf299c fix check to allow for empty argument list 2015-03-06 15:09:19 -08:00
Caitlin Potter
564dd2eb4a Document procedure for digital CLA signature in CONTRIBUTING.md
Closes #2237
2015-03-06 18:07:02 -05:00
Bill Ticehurst
0ea31c37b5 Merge pull request #2222 from billti/tsconfigWatchFix
Fix watch to honor tsconfig.json setting
2015-03-06 14:44:44 -08:00
Bill Ticehurst
0e48714bf0 Merge pull request #2223 from billti/FixPathNormalization
Fix path normalization for patterns such as './/tsconfig.json'
2015-03-06 14:43:23 -08:00