Commit Graph

11606 Commits

Author SHA1 Message Date
Mohamed Hegazy
5d577df69e Add better error recovery logic for cases with line ending with "id." followed by a declaration e.g. "class id" 2014-09-15 13:55:39 -07:00
Mohamed Hegazy
aa571ff088 Short-circuit semantic operations within with blocks 2014-09-15 13:55:18 -07:00
Mohamed Hegazy
85c6d34047 add basic support for contextual object literal completions 2014-09-15 13:55:01 -07:00
Mohamed Hegazy
57fa018a19 Use scanner APIs to identify if a display name is valid completion entry 2014-09-15 13:54:50 -07:00
Mohamed Hegazy
91b52b271f Support enum and module completions 2014-09-15 13:54:40 -07:00
Mohamed Hegazy
5db12f357f Filter private mebemers in class completions 2014-09-15 13:54:30 -07:00
Mohamed Hegazy
44adc06496 expose getAncestor method 2014-09-15 13:54:19 -07:00
Mohamed Hegazy
1a58afbd9f do not consider keywords tokens for compleation reasons, to allow completion on this and super 2014-09-15 13:54:08 -07:00
Mohamed Hegazy
5149c8f037 handel completion on missing symbols correctelly 2014-09-15 13:53:57 -07:00
Mohamed Hegazy
885569d4e7 Get correct kind for generic symbol completion entries 2014-09-15 13:53:46 -07:00
Mohamed Hegazy
8e0227eba2 Enable completion on expressions 2014-09-15 13:53:35 -07:00
Vladimir Matveev
685d131f4a addressed CR feedback: use isDeclaration from parser, drop 'useTabs' check 2014-09-15 12:18:09 -07:00
Anders Hejlsberg
b4cddc3903 Merge branch 'master' into tupleTypes 2014-09-15 11:04:58 -07:00
Jason Freeman
cb38c9569a Add a test to make sure types are being checked for privates 2014-09-15 10:54:44 -07:00
Jason Freeman
ba574725c2 Check that private properties originate in the same declaration 2014-09-15 10:54:42 -07:00
Vladimir Matveev
aa7ffdba4c address CR feedback 2014-09-12 22:45:52 -07:00
Cyrus Najmabadi
9825342d89 Adding semantic classification. 2014-09-12 18:28:54 -07:00
Cyrus Najmabadi
a6497d8b09 Add support for syntactic classification.
Tests pending.
2014-09-12 17:19:48 -07:00
Vladimir Matveev
54b8c73a78 when looking for a start node consider only nodes that can contribute to indentation 2014-09-12 16:18:06 -07:00
Vladimir Matveev
cd663f07f3 minor code cleanup 2014-09-12 15:41:46 -07:00
Daniel Rosenwasser
325cdeff65 Merge pull request #668 from Microsoft/harnessMessageConsistency2
Changed Harness Output
2014-09-12 14:41:46 -07:00
Daniel Rosenwasser
9f7782d392 Added error 'prologue' to each error baseline. 2014-09-12 13:35:07 -07:00
Vladimir Matveev
221f805d09 remove singleTokenIndenter.ts 2014-09-12 13:28:39 -07:00
Yui T
2ad20d2e6b Fix declaring function for writer and setting writer to undefined 2014-09-12 13:19:26 -07:00
Daniel Rosenwasser
5e7e5c5f51 Addressed CR feedback. 2014-09-12 13:07:57 -07:00
Yui T
0b06ddcc9a Fix getEmitOutput to only output one file except when 'out' flag is specified. Add testcases 2014-09-12 12:57:00 -07:00
Anders Hejlsberg
b805037cf2 Improved error messages 2014-09-12 10:23:31 -07:00
Anders Hejlsberg
74536cc6ed Report circular type inference errors with -noImplicitAny 2014-09-12 07:28:49 -07:00
Vladimir Matveev
ddbe031a8b use actual indentation if possible 2014-09-12 00:26:46 -07:00
Vladimir Matveev
d119de8227 added support for smart indentation in the middle of list items, updated test baselines 2014-09-11 19:23:57 -07:00
Vladimir Matveev
e9227d656d added support for smart indentation in the middle of list items, updated test baselines 2014-09-11 17:26:05 -07:00
Vladimir Matveev
9a3462a161 added handling for smart indentation in the beginning of list items, updated test baselines. TODO: smart indentation in the middle of list items (2 failing tests) 2014-09-11 16:17:31 -07:00
Daniel Rosenwasser
ee86f8b711 Harness now prints category and code when running tests. 2014-09-11 16:11:08 -07:00
Daniel Rosenwasser
96e5bd26c3 Fixed bug where function type literals may omit their '=>'. 2014-09-11 16:04:07 -07:00
Sheetal Nandi
813f0e75e2 Build the declaration files generated in the rwc run to make sure there arent any errors 2014-09-11 14:32:35 -07:00
Anders Hejlsberg
b61c722eec Merge pull request #649 from Microsoft/propertyAssignmentWidening
Fix widening in object literal property assignments
2014-09-11 13:10:08 -07:00
Daniel Rosenwasser
0af26bcb8b Merge branch 'master' into getOccurrences 2014-09-11 11:11:00 -07:00
Daniel Rosenwasser
480aac9ede Merge branch 'master' into getOccurrences 2014-09-11 11:04:01 -07:00
Vladimir Matveev
641e659ffd initial revision of SmartIndenter (TODO: indentation in list items) 2014-09-11 00:35:03 -07:00
Vladimir Matveev
24c40bb4bc added optional 'sourceFile' argument to methods of Node to avoid unnecesary tree walk 2014-09-10 23:13:41 -07:00
Daniel Rosenwasser
1e8772c7a5 Merge branch 'getOccurrences' into getOccurrencesLoopBreakContinue
Conflicts:
	src/services/services.ts
2014-09-10 19:19:53 -07:00
Daniel Rosenwasser
efed1f9acd Simplified ownership code for continue/break statements. 2014-09-10 19:02:50 -07:00
Daniel Rosenwasser
dae34875b4 Minor CR feedback addressed. 2014-09-10 18:59:12 -07:00
Jason Freeman
fad5650be6 Fix the error spans issue 2014-09-10 17:57:51 -07:00
Jason Freeman
c27379827b Add asserts for bounds on diagnostics 2014-09-10 16:44:57 -07:00
Yui T
26fbb987bb Remove getCurrentDirectory and getDefaultLibFilename from LanguageServiceShimHost 2014-09-10 16:10:40 -07:00
Yui T
7b0662be9e Remove getDirectory from LanguageServiceShimHost 2014-09-10 15:58:16 -07:00
Yui T
7ab51c6e2b Merge from master 2014-09-10 15:58:14 -07:00
Yui T
cf2214bba0 Change getCurrentDirectory and getDefaultLibname from passing around
function to its final value
2014-09-10 15:58:12 -07:00
Yui T
271bb29c94 Minor spelling and spacing fix 2014-09-10 15:58:09 -07:00