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
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
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
Mohamed Hegazy
a5a83c1cf7
Merge branch 'master' into removeOptionalTypeOnExportDefault
2015-04-09 16:35:14 -07:00
Mohamed Hegazy
afe35c810a
Revert "Support an optional type annotation on export default statement"
...
This reverts commit a6a8a96249 .
2015-04-09 16:32:23 -07:00
Ahmad Farid
a34801f30b
merging with master
2015-04-09 16:05:06 -07:00
Cyrus Najmabadi
fc512b284b
Use modules with const members.
2015-04-09 15:11:26 -07:00
Cyrus Najmabadi
9627746ba9
Add the 'none' kind.
2015-04-09 14:49:00 -07:00
Cyrus Najmabadi
73121ce451
Distinguish written vs read references.
2015-04-09 14:37:21 -07:00
Mohamed Hegazy
1c91c2c5d0
Mark non-public API surface with the /* @internal */ comment
2015-04-09 14:18:14 -07:00
Cyrus Najmabadi
585c6aaf65
CR feedback.
2015-04-08 23:24:51 -07:00
Cyrus Najmabadi
575ce27119
Allow the host to indicate which files it would like highlighting spans for.
2015-04-08 23:16:16 -07:00
Cyrus Najmabadi
e5d0ffab15
Use the fileName that is in scope.
2015-04-08 22:28:40 -07:00
Cyrus Najmabadi
0d233fdd17
No need to tweak spans in syntactic highlights.
2015-04-08 22:26:34 -07:00
Cyrus Najmabadi
02778b19b4
Get semantic document highlights as well through the new API.
2015-04-08 22:24:59 -07:00
Cyrus Najmabadi
6dee32a703
Extract code for getting syntactic document highlights into its own function.
2015-04-08 21:59:50 -07:00
Ron Buckton
609036a2d6
PR feedback and baseline updates
2015-04-08 17:06:00 -07:00
Cyrus Najmabadi
4054eca462
Merge branch 'master' into jsSigHelp
...
Conflicts:
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_linter.types.pull
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-04-08 02:12:53 -07:00
Ron Buckton
eec39c2fc5
Additional rule for spacing between decorator on same line as its declaration
2015-04-07 17:23:52 -07:00
Ron Buckton
1a1bb34864
Added rules for spacing around decorators, computing the undecorated start line of a node
2015-04-07 16:15:02 -07:00
Cyrus Najmabadi
78a79140b3
Get sighelp for arbitrary functions working in .js files.
2015-04-06 14:10:04 -07:00
Mohamed Hegazy
ccb562385d
Use sys.newLine in transpile when possibel
2015-04-06 14:05:44 -07:00