1505 Commits

Author SHA1 Message Date
CyrusNajmabadi
79ec3ec5a3 Merge pull request #3092 from Microsoft/classificationLoop1.5
Prevent infinite loop when classifying.
2015-05-08 13:59:49 -07:00
Cyrus Najmabadi
a8d25c82ac Prevent infinite loop when classifying. 2015-05-08 13:10:17 -07:00
Vladimir Matveev
a33bb6bb19 use canonical file name when asking the host if file exists 2015-05-06 16:00:50 -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
15f4b58d6c Merge pull request #2966 from Microsoft/getTypeDefinitionAtPosition
Get type definition at position
2015-05-04 14:51:10 -07:00
Vladimir Matveev
bd47ae4886 Merge pull request #3001 from Microsoft/formattingOnChainedCallbacks
fix formatting for chained callbacks
2015-05-04 12:46:08 -07:00
Mohamed Hegazy
7fc6142def Merge branch 'master' into getTypeDefinitionAtPosition
Conflicts:
	src/services/services.ts
2015-05-04 10:02:37 -07:00
Vladimir Matveev
5f3e7dec9a fix formatting 2015-05-03 22:37:11 -07:00
Vladimir Matveev
432ac30d3c addressed PR feedback, split conditional expression into multiple lines 2015-05-02 13:36:50 -07:00
Vladimir Matveev
f5b13bdb6d fix formatting for chained callbacks 2015-05-01 23:13:23 -07:00
Daniel Rosenwasser
d5c9857e60 Whoops. 2015-05-01 18:40:58 -07:00
Daniel Rosenwasser
9460fb580d Use 'lastOrUndefined' where appropriate in the services layer. 2015-05-01 18:34:37 -07:00
Mohamed Hegazy
70c2d58f58 Remove erronious change to shims.ts in previous commit 2015-05-01 15:14:16 -07:00
Mohamed Hegazy
1de5ea802b Respond to code review comments 2015-05-01 14:58:23 -07:00
Cyrus Najmabadi
7769b4cd19 Update names. 2015-04-30 17:48:01 -07:00
Cyrus Najmabadi
b49e07c2fa Fix name. 2015-04-30 17:20:04 -07:00
Cyrus Najmabadi
248f9b78fb Log when the lexical classifier fails. not the perf of each line. 2015-04-30 16:14:43 -07:00
Cyrus Najmabadi
c0c2c4f9a3 Unify more classification code. 2015-04-30 14:57:38 -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
e9f76d0002 Add implementation for getTypeDefinitionAtPosition 2015-04-29 22:54:49 -07:00
Mohamed Hegazy
dda598a8dc Refactor getDefinition code 2015-04-29 22:54:40 -07:00
Paul van Brenk
54ef1bf93d Rename HeritageClauseElement to ExpressionWithTypeArguments + related methods. 2015-04-29 14:49:03 -07:00
Anders Hejlsberg
4c5aeaf0c9 Merge branch 'master' into namespaces
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/program.ts
	tests/baselines/reference/constDeclarations-access5.errors.txt
	tests/baselines/reference/es6-amd.errors.txt
	tests/baselines/reference/es6-declaration-amd.errors.txt
	tests/baselines/reference/es6-sourcemap-amd.errors.txt
	tests/baselines/reference/es6-umd.errors.txt
	tests/baselines/reference/es6-umd2.errors.txt
	tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport.errors.txt
	tests/baselines/reference/es6ImportNameSpaceImport.errors.txt
	tests/baselines/reference/es6ImportNamedImport.errors.txt
	tests/baselines/reference/es6ImportNamedImportInExportAssignment.errors.txt
	tests/baselines/reference/es6ModuleWithModuleGenTargetAmd.errors.txt
	tests/baselines/reference/es6ModuleWithModuleGenTargetCommonjs.errors.txt
2015-04-28 16:49:23 -07:00
Anders Hejlsberg
eecf7ba638 Support 'namespace' declarations for internal modules 2015-04-26 16:12:16 -07:00
Basarat Ali Syed
02826f24e5 tsconfig.json added missing file references and fixed the order
This order is significant:

```ts
        "../compiler/diagnosticInformationMap.generated.ts",
        "../compiler/commandLineParser.ts",
```

Also not having these extra files referenced caused https://github.com/TypeStrong/atom-typescript/issues/304 
Really wish we moved to external modules.
2015-04-25 16:20:38 +10:00
Mohamed Hegazy
c9dd6592f8 Update toolsVersion 2015-04-23 14:12:04 -07:00
Cyrus Najmabadi
25c52bb406 Faster getClassifications 2015-04-23 13:40:34 -07:00
Paul van Brenk
42c1bdd607 Merge branch 'master' into tsconfigSupportInLS 2015-04-23 13:37:01 -07:00
Paul van Brenk
f5b75439ea Merge branch 'master' of https://github.com/Microsoft/TypeScript 2015-04-23 12:58:27 -07:00
Paul van Brenk
b6477607ac correct the slashes for a new line. 2015-04-23 10:17:57 -07:00
Vladimir Matveev
05b95c30ff fixed formatting for equals token in type aliases 2015-04-22 21:46:10 -07:00
Paul van Brenk
8955d7ba57 More refactoring 2015-04-22 18:09:55 -07:00
Paul van Brenk
f8424d0b0c Minor clean up to make it more readable. 2015-04-22 18:00:09 -07:00
Paul van Brenk
5c44a0ff3e Improve error message when encountering an invalid tsconfig.json file. 2015-04-22 15:58:04 -07:00
Paul van Brenk
b1472d99f2 Add error handling. 2015-04-22 14:27:05 -07:00
Jason Freeman
4487fa426b Rename iterator property of ForStatement to incrementor 2015-04-22 13:29:50 -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
Cyrus Najmabadi
8e757c044e Merge branch 'master' into jsSigHelp
Conflicts:
	src/services/outliningElementsCollector.ts
	src/services/services.ts
2015-04-14 14:22:48 -07:00
Mohamed Hegazy
db492f1c10 Merge pull request #2747 from Microsoft/FixGetOccurances
Fix getOccurances filter check
2015-04-14 10:33:03 -07:00
Mohamed Hegazy
4e42054277 Fix #2725: Add check for parent before using it 2015-04-13 16:28:06 -07:00
Mohamed Hegazy
a72a22edbe Fix getOccurances filter check 2015-04-13 13:19:17 -07:00
Mohamed Hegazy
b416bf2d80 move check outside switch statement 2015-04-13 12:20:25 -07:00
Guillaume Salles
7119165bd0 Fix issue #2677 : Labels should not get quick info 2015-04-12 16:04:32 -04:00
Mohamed Hegazy
13ef271831 use @internal comment consistenlly 2015-04-10 16:32:02 -07:00
Mohamed Hegazy
431dce7b84 Merge branch 'master' into APIReviewCleanup
Conflicts:
	src/services/outliningElementsCollector.ts
2015-04-10 16:11:03 -07:00
Mohamed Hegazy
f231d6aba8 Merge pull request #2700 from Microsoft/removeOptionalTypeOnExportDefault
Remove optional type on export default
2015-04-10 15:31:31 -07:00
Cyrus Najmabadi
024d653efc Rename type. 2015-04-09 22:27:18 -07:00
Ron Buckton
f318515f70 Merge pull request #2664 from Microsoft/fixDecoratorFormatting
Fixes some formatting for decorators
2015-04-09 17:42:56 -07:00
ahmad-farid
01d945b18b Merge pull request #2612 from ahmad-farid/OCNoTest2
Adding outlining for comments to allow collapsing in VS #698
2015-04-09 17:35:25 -07:00