1515 Commits

Author SHA1 Message Date
Paul van Brenk
591e882e4d Added comment for Daniel 2015-05-13 15:15:12 -07:00
Paul van Brenk
35aad18097 alligned comments 2015-05-13 14:48:40 -07:00
Paul van Brenk
03876fff4b Additional cases added for creating new variables. 2015-05-13 14:43:17 -07:00
Paul van Brenk
fb68321c14 Merge branch 'master' into completionFixes 2015-05-13 13:28:02 -07:00
Vladimir Matveev
af342382ed add optional 'getProjectVersion' method to perform fast up-to-date checks 2015-05-12 10:57:55 -07:00
Cyrus Najmabadi
286f0150a6 Prevent infinite loop when classifying. 2015-05-08 10:54:00 -07:00
Cyrus Najmabadi
4c809eddfb Don't wrap an array of errors in an additional array. 2015-05-08 09:55:59 -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
Paul van Brenk
c790b91bd5 confused, in typescript a type decl needs the ( ) for a lambda 2015-05-01 16:13:46 -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
Paul van Brenk
6fd0a38335 This seems to work today, not sure what I was seeing yesterday. 2015-05-01 12:38:41 -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
Paul van Brenk
45591c846c CR feedback 2015-04-30 17:13:26 -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
Paul van Brenk
63f3bafed6 Fixes Aggressive completion makes it difficult to type function types. #2494 + test case 2015-04-30 15:41:14 -07:00
Paul van Brenk
fd5a04cb14 this fixes No builder in right-hand side of object binding pattern element #2693 and adds tests 2015-04-30 15:01:37 -07:00
Cyrus Najmabadi
c0c2c4f9a3 Unify more classification code. 2015-04-30 14:57:38 -07:00
Paul van Brenk
8b26423848 Fix for Completion interferes with typeing a "type alias". #2882 + test case 2015-04-30 14:35:48 -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
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