Cyrus Najmabadi
4b271d2d23
Address code review feedback.
2015-02-20 16:28:33 -08:00
Cyrus Najmabadi
8d7791c579
Merge branch 'master' into limitNavigateTo
2015-02-19 15:34:05 -08:00
Cyrus Najmabadi
2b64e50489
Add support for limiting the number of NavigateTo results that you get back.
2015-02-19 15:13:03 -08:00
Steve Lucco
6d7045ec5a
Merge pull request #2041 from Microsoft/TSServer
...
TS Server
2015-02-19 13:10:21 -08:00
Jason Freeman
5596993351
Merge branch 'master' into forOf
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
tests/baselines/reference/APISample_compile.js
tests/baselines/reference/APISample_compile.types
tests/baselines/reference/APISample_linter.js
tests/baselines/reference/APISample_linter.types
tests/baselines/reference/APISample_transform.js
tests/baselines/reference/APISample_transform.types
tests/baselines/reference/APISample_watcher.js
tests/baselines/reference/APISample_watcher.types
2015-02-18 14:49:10 -08:00
Jason Freeman
1a3294a7d2
Parity sweep for for-in & for-of
2015-02-18 11:35:29 -08:00
Jason Freeman
47404bccf0
Merge branch 'master' of https://github.com/Microsoft/TypeScript into esSymbols
2015-02-17 17:02:22 -08:00
jramsay
9788acf475
Merge pull request #1990 from Microsoft/isDefaultLibFile
...
Replace endsWith() check with canonical normalized path comparison in getRenameInfo()
2015-02-17 15:17:38 -08:00
Jason Ramsay
975f10c6a1
Adding getCanonicalFileName to ensure case-sensitive systems do not have issues
2015-02-17 14:44:45 -08:00
Jason Freeman
dd6a12911c
Merge branch 'master' of https://github.com/Microsoft/TypeScript into esSymbols
2015-02-17 12:39:08 -08:00
Daniel Rosenwasser
fee50a6dbc
Made the actual implementation of the lexical classifier be non-optional.
2015-02-16 14:59:22 -08:00
Jason Freeman
9c273d8133
Merge branch 'master' of https://github.com/Microsoft/TypeScript into esSymbols
...
Conflicts:
src/services/services.ts
2015-02-13 14:52:03 -08:00
Daniel Rosenwasser
1dca5620f5
Addressed CR feedback.
2015-02-13 12:56:21 -08:00
Jason Ramsay
93ca5ae970
Merge branch 'master' into isDefaultLibFile
2015-02-13 12:41:18 -08:00
Jason Ramsay
a51ce92500
switch to using host.getDefaultLibFileName(options)
2015-02-13 11:56:39 -08:00
Daniel Rosenwasser
15b333e102
Added comment for 'syntacticClassifierAbsent'.
2015-02-12 16:29:03 -08:00
Daniel Rosenwasser
1838800b6c
Fixed assertion
2015-02-12 16:29:01 -08:00
Daniel Rosenwasser
ab79faef85
Added tests, fixed order of emptying templateStack, unconditionally perform template classification.
2015-02-12 16:28:45 -08:00
Daniel Rosenwasser
3fea0aefbe
classifyKeywordsInGenerics -> syntacticClassifierAbsent
2015-02-12 15:48:32 -08:00
Daniel Rosenwasser
f1f085eda6
Addressed CR feedback.
2015-02-12 15:48:30 -08:00
Daniel Rosenwasser
3429fab6fb
Fixed issue with the kinds we check.
2015-02-12 15:48:27 -08:00
Daniel Rosenwasser
ea30c68128
Rudimentary, but imperfect, lexical classification for templates.
2015-02-12 15:48:21 -08:00
Daniel Rosenwasser
3e8babedcf
Merge pull request #1271 from Microsoft/taggedSigHelpAtEnd
...
Fixed bug where tagged templates with a literal adjacent to EOF showed sig help past the end.
2015-02-12 11:37:32 -08:00
Jason Freeman
486cebd224
Merge branch 'master' of https://github.com/Microsoft/TypeScript into esSymbols
2015-02-12 11:03:35 -08:00
Mohamed Hegazy
27a9084785
Add indexer on the Formatting options interface
2015-02-11 16:13:04 -08:00
togru
d94cbed413
Merge remote-tracking branch 'upstream/master'
2015-02-11 10:12:22 +01:00
Jason Freeman
a94e61bfcd
Merge branch 'master' of https://github.com/Microsoft/TypeScript into esSymbols
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
2015-02-10 16:20:32 -08:00
Cyrus Najmabadi
11d19e3019
Fix issue with cancellation corrupting LS state.
...
The problem here was as follows:
1) Host calls into the LS to do some sort of operation.
2) LS tries to synchronize with the host.
3) During synchronization we attempt to create a new program.
4) Creating the new program causes us to incrementally update some source files.
5) Incrementally updating a source file produces a new source file, and invalidates the old one.
6) *Then* the host asks to cancel this operation.
7) THe synchronization process cancels itself, leaving the LS in an inconsistent state where some
of its source files have had their trees updated, but the information about the source file still
thinks that we have the previous version.
The fix is to not allow cancellation during host synchronization. Once we start, we have to go
all the way to completion.
2015-02-09 17:15:29 -08:00
Jason Ramsay
bf7bb517e0
Replace endsWith() with isDefaultLib()
...
There are a couple of issues with using the current endsWith() function to determine if we should allow a rename for default lib files:
1. XXXX-lib.d.ts would not allow renames even though it should as the preceding characters are not being verified for directory separators
2. There is the potential for false matches as there is currently no check to verify indexOf was successful (index >= 0)
2015-02-09 12:56:54 -08:00
Mohamed Hegazy
9207d9dd22
Merge remote-tracking branch 'origin/master' into fourslashCleanup
...
Conflicts:
src/harness/harnessLanguageService.ts
2015-02-09 09:31:19 -08:00
Cyrus Najmabadi
1a17fd1daf
Move assertions into the parsing layer.
2015-02-08 17:30:27 -08:00
Cyrus Najmabadi
f1cb97b692
Add additional aggressive checks during incremental parsing.
2015-02-08 16:10:16 -08:00
Jason Freeman
2f3c32afd6
Navigation bar support for symbols
2015-02-06 21:32:57 -08:00
Jason Freeman
e508bf7e86
Add symbol keyword
2015-02-06 21:32:02 -08:00
Mohamed Hegazy
55aa240ade
Merge branch 'master' into LSAPICleanup
...
Conflicts:
src/services/services.ts
2015-02-06 17:17:23 -08:00
Mohamed Hegazy
0f3f2bcb56
add comment
2015-02-06 14:22:32 -08:00
Mohamed Hegazy
68fd9f8d40
Shim API changes to enable existing installations of VS to use the latest master builds
2015-02-06 14:20:29 -08:00
Cyrus Najmabadi
5c0b38b203
Remove getEnumMemberValue, it is now subsumed into getConstantValue.
2015-02-05 18:26:56 -08:00
Cyrus Najmabadi
acbcd6c77f
Merge branch 'master' into diagnosticsOrganization
2015-02-05 17:30:27 -08:00
jramsay
dc06b2f6de
Merge pull request #1952 from Microsoft/jasonra-disallowRenameForStandardTSLib
...
Disallow rename for elements that are defined in the standard TypeScript...
2015-02-05 17:21:22 -08:00
Jason Ramsay
987dab9c9e
addressing CR comments
2015-02-05 16:05:54 -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
ea4e3de91c
Remove unnecessary diagnostics split on SourceFile.
2015-02-05 13:38:11 -08:00
Jason Ramsay
953e568d9e
Disallow rename for elements that are defined in the standard TypeScript library.
2015-02-05 13:32:33 -08:00
togru
9974526101
updated code style, added tests, fixed regex bug, merged to latest branch
2015-02-05 12:07:00 +01:00
Cyrus Najmabadi
493327af34
Fix language service handling of diagnostics.
2015-02-05 02:10:36 -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
40a01a81b3
Merge branch 'master' into fourslashCleanup
...
Conflicts:
src/harness/fourslash.ts
src/harness/harnessLanguageService.ts
2015-02-04 20:22:00 -08:00
Cyrus Najmabadi
bb307f8163
Simplify the API for emitting code from the Program instance.
2015-02-04 16:53:14 -08:00