4788 Commits

Author SHA1 Message Date
Cyrus Najmabadi
614b1066dc Merge branch 'master' into completionEntryDetails 2015-03-24 14:55:34 -07:00
Steve Lucco
baac6d8a60 Merge pull request #2450 from Microsoft/tsconfigServer
Add support to TypeScript server for tsconfig.json files.
2015-03-24 14:38:26 -07:00
CyrusNajmabadi
62b5ffafea Merge pull request #2446 from Microsoft/findReferences
Add a new findReferences API that buckets results with the definition th...
2015-03-24 14:32:46 -07:00
Cyrus Najmabadi
927e60d592 Merge branch 'master' into findReferences 2015-03-24 14:11:20 -07:00
steveluc
48482071f6 Moved findConfigFile to program.ts. Addressed pull request comments. 2015-03-24 14:03:21 -07:00
Cyrus Najmabadi
8d55fe00dd PR feedback. 2015-03-24 12:28:41 -07:00
CyrusNajmabadi
9141bfca3f Merge pull request #2470 from Microsoft/noEmitOnDeclarationErrors
Revert "Emit, even in the presence of declaration errors and noEmitOnError
2015-03-24 12:25:00 -07:00
CyrusNajmabadi
8e2b7d0568 Merge pull request #2473 from Microsoft/getSemanticDiagnosticsDeclarations
Fix issue where getSemanticDiagnostics was returning undefined on a .d.ts file.
2015-03-24 11:14:34 -07:00
Cyrus Najmabadi
a5bd9196f2 PR feedback. 2015-03-24 01:10:03 -07:00
Cyrus Najmabadi
4802b4b2d6 CR feedback. 2015-03-24 00:35:30 -07:00
Cyrus Najmabadi
c459bb7ce9 CR feedback. 2015-03-24 00:25:23 -07:00
Cyrus Najmabadi
eed6f0deca Use an output format for quickinfo that more closely matches the original source.
i.e. use  "var v: string" instead of "(var) v: string".

The parens case should only be used when we're using an english description instead of
an actual language construct.
2015-03-24 00:16:49 -07:00
Cyrus Najmabadi
2af1b92239 CR feedback. 2015-03-23 22:44:57 -07:00
Cyrus Najmabadi
66b3fae09a Remove the active completion session. 2015-03-23 21:44:27 -07:00
Cyrus Najmabadi
a1cbfdf01d Use the same logic for completion entry details that we do for getting completion entries. 2015-03-23 21:26:29 -07:00
Cyrus Najmabadi
bce9b5ab5a Break out completion symbol collection into its own function. 2015-03-23 20:56:38 -07:00
Cyrus Najmabadi
7388120386 Fix issue where getSemanticDiagnostics was returning undefined on a .d.ts file. 2015-03-23 19:02:46 -07:00
steveluc
7b824bac41 Make completion prefix matching case insensitive. 2015-03-23 17:25:45 -07:00
Cyrus Najmabadi
af6d1ebe01 Revert "Emit, even in the presence of declaration errors and noEmitOnError."
This reverts commit 19517ac0ddf8e7ed67ee1328f379071d8e8feb51.
2015-03-23 16:12:14 -07:00
CyrusNajmabadi
755d80606f Merge pull request #2461 from Microsoft/emitOnDeclarationErrors
Emit, even in the presence of declaration errors and noEmitOnError.
2015-03-23 16:11:00 -07:00
Cyrus Najmabadi
19517ac0dd Emit, even in the presence of declaration errors and noEmitOnError.
We're reverting to the previous behavior we had until there is more consensus
on the best way to deal with this issue.
2015-03-22 21:39:07 -07:00
CyrusNajmabadi
fcd1e1f166 Merge pull request #2448 from Microsoft/newlines
Treat 0x0085 as whitespace, not as a line terminator.  This matches ES5 and ES6.
2015-03-21 22:37:11 -07:00
steveluc
ae4f164eb2 Added gc of configured projects to handle case in which file is opened
in directory configured by tsconfig.json, but file not part of the
configured project.
2015-03-20 22:14:39 -07:00
steveluc
8798235c68 Added support in the server for tsconfig.json. When a host opens a
file F, the server will check whether F is configured by a
tsconfig.json file.  If so, the project specified by the tsconfig.json
file becomes the LS context for F.
2015-03-20 21:56:20 -07:00
Cyrus Najmabadi
9412a6d3eb Improve display of symbol definitions. 2015-03-20 17:16:16 -07:00
Cyrus Najmabadi
9ae0815e21 Treat 0x0085 as whitespace, not as a line terminator. This matches ES5 and ES6. 2015-03-20 16:53:47 -07: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
CyrusNajmabadi
0d2a5bbf7c Merge pull request #2431 from Microsoft/noEmitOnErrorCompileOnSave
No emit should happen if there are declaration errors and noEmitOnErrors is specified.
2015-03-19 21:23:58 -07:00
Cyrus Najmabadi
791a0e4e39 Don't actually emit declarations when we just want the diagnostics for them. 2015-03-19 21:12:25 -07:00
Cyrus Najmabadi
85d71b2883 No emit should happen if there are declaration errors and noEmitOnErrors is specified. 2015-03-19 16:55:07 -07:00
Vladimir Matveev
79272d7cef Merge pull request #2199 from Microsoft/enumCleanup
Fixes #2183, #1797
2015-03-19 11:27:11 -07:00
Daniel Rosenwasser
3e7e9f43ca Merge pull request #2415 from Microsoft/shorthandsOnNonExistentProperty
Fixed crash on goToDef when a shorthand property refers to an undefined entity
2015-03-18 18:31:54 -07:00
Jason Freeman
e2db46ecc7 Merge pull request #2419 from Microsoft/instrumenterLibraryTargets
Add libraryTargets to prereqs of instrumenter
2015-03-18 17:44:09 -07:00
Jason Freeman
59338ed566 Add libraryTargets to prereqs of instrumenter 2015-03-18 17:23:40 -07:00
Vladimir Matveev
e8b0985753 Merge pull request #2417 from Microsoft/separateDeclEmit_2
extract declaration emitter to separate file (part 2)
2015-03-18 16:57:38 -07:00
Vladimir Matveev
49c4b5ac13 extract declaration emitter to separate file 2015-03-18 16:37:52 -07:00
Daniel Rosenwasser
d06f71ef9c Merge pull request #2413 from Microsoft/constAntlyAPainForUs
Fix getOccurrences for 'const' modifier with exported & ambient declarations
2015-03-18 16:08:34 -07:00
Daniel Rosenwasser
3b453e68c8 Extended test. 2015-03-18 16:03:33 -07:00
Vladimir Matveev
371f2df90d Merge pull request #2139 from Microsoft/DtsExports_all
Exports + .d.ts emit
2015-03-18 14:45:05 -07:00
Daniel Rosenwasser
acd0fdfba5 Fixed issue where goToDef on a shorthand property of an undefined entity would crash. 2015-03-18 14:43:16 -07:00
Daniel Rosenwasser
773530c699 Fixed test. 2015-03-18 14:43:07 -07:00
Mohamed Hegazy
f96e52c6a6 Merge pull request #2414 from Microsoft/createSourceFile
Expose setParentNodes on createCompilerHost
2015-03-18 14:35:04 -07:00
Vladimir Matveev
2ad40c25c9 addressed PR feedback 2015-03-18 14:29:02 -07:00
Daniel Rosenwasser
2902aa2ba3 Added tests. 2015-03-18 14:21:17 -07:00
Mohamed Hegazy
7462915baf Expose setParentNodes on createCompilerHost 2015-03-18 14:11:50 -07:00
Daniel Rosenwasser
355dcd11c8 Merge pull request #2396 from Microsoft/completionsInIncompleteConstructs
Better completions in incomplete constructs
2015-03-18 14:11:05 -07:00
Daniel Rosenwasser
5cbf667d78 Fixed the contextual check for modifiers to check the original modifier instead of the flags of the node. 2015-03-18 14:07:42 -07:00
Daniel Rosenwasser
9a507fa5bf Fixed test. 2015-03-18 14:06:58 -07:00
Daniel Rosenwasser
ce3a91c186 Added tests for const modifiers. 2015-03-18 13:55:09 -07:00
Daniel Rosenwasser
ee073e19f0 Remove space. 2015-03-18 12:27:28 -07:00