Commit Graph

292 Commits

Author SHA1 Message Date
Matt Bierner
e551807483 Consume languageServiceEnabled Events from TS (#16355)
* Initial work on large proejct warnings

* Update to use projectName from ts

* Use event to clean up code

* Remove unused interface

* Revert a few testing changes

* Remove languageServiceEnabled member
2016-12-02 11:21:39 -08:00
Matt Bierner
615ea2b4a4 Allow Enabling useCodeSnippetsOnMethodSuggest for JS As Well As TS (#16351)
Fixes #13952

**Bug**
The `typescript.useCodeSnippetsOnMethodSuggest` setting only applies to Typescript files. I believe it should also apply to JavaScript files.

**Fix**
Use `typescript.useCodeSnippetsOnMethodSuggest` to control this behavior for js files as well.

Also delete unused configuration file.

An alternate design would be to add a `javascript.useCodeSnippetsOnMethodSuggest` configuration option, if users really do want to have different behavior between JS and TS.
2016-12-02 11:08:27 -08:00
Matt Bierner
22deff959d Use Strict Null Checks In TS Extension (#16244)
* Use Strict Null Checks In TS Extension

Updates the Ts extension to use strict null checks.

* Throw instead of returning undefined in some linkedmap cases

* fix small null check in buffersync

* Fix for request item null
2016-12-01 13:48:03 -08:00
Matt Bierner
5e0e79610b Adopt TS 2.1.3-insiders (#16295)
Adopts the 2.1.3 insiders build of TS in the TS extension
2016-11-30 16:00:58 -08:00
Matt Bierner
8c313fcae0 Assume Jsx For Implicit TS Projects (#15925)
Issue #15814

**Bug**
1. Open a tsx file on its own.
2. See a error about passing `--jsx` to tsc.

**Fix**
For implicit projects, assume `"jsx": "preserve"`.

Closes #15814
2016-11-28 10:48:27 -08:00
Matt Bierner
c6566148cf Fix TS/JS Implicit Project Too Large Exclude Action (#15678)
Issue #15610

**bug**
For implicit js/ts projects that trigger the large project warning in vscode, the action currently tries to create a jsconfig.json file in `/dev/null/...`

**Fix**
In cases where the `jsconfig.json` file returned by tsserver is not under the root worspace, create an empty `jsconfig.json` at the root of the project instead.
2016-11-22 14:24:52 -08:00
Matt Bierner
77e1bbebad Remove some Typings Files From TypeScript Extension (#15842)
Remove the node-additions typings file and changes the semver typings to come from `@types/semver`.
2016-11-22 10:54:49 -08:00
Martin Aeschlimann
b8f51b5351 [typescript] update grammar 2016-11-18 17:26:22 +01:00
Dirk Bäumer
a6af151d6c Merge pull request #15679 from aozgaa/master
Convert from 1- to 0-based indexing for TypeScript completion spans
2016-11-17 18:04:56 -08:00
Dirk Baeumer
aebd3da097 Fixed #14599: TypeScript formatter suddenly forgets about formatting rules 2016-11-17 18:02:51 -08:00
Arthur Ozga
2be3b848db Convert from 1- to 0-based indexing 2016-11-17 15:09:38 -08:00
Johannes Rieken
0abf274748 mirgrate typescript completion item provider to TM syntax, #3210 2016-11-16 15:29:20 +01:00
Dirk Baeumer
ab8e320022 Fixes #15543: Adapt TSServer 2.0.10 2016-11-15 15:24:24 -08:00
Martin Aeschlimann
332fd57d3f Fix for source maps in extensions 2016-11-14 11:34:53 +01:00
Johannes Rieken
cf5c011529 Fix our snippets to be text mate compatible 2016-11-11 17:13:36 +01:00
Dirk Baeumer
aea3a39ad4 Fixes #15337: Adapt TSServer 2.0.9 2016-11-11 10:42:25 +01:00
Martin Aeschlimann
6bfd1d8632 [themes] Color for super type 2016-11-09 21:21:37 +01:00
Johannes Rieken
3561a5b6ca Merge pull request #15213 from mjbvz/remove-jsconfig-lightbulb
Remove jsconfig.json lightbulb hint
2016-11-09 09:29:04 +01:00
Matt Bierner
a523c2d465 Remove jsconfig.json lightbulb hint
Issue #15205

**Bug**
Typescript now infers projects if no jsconfig.json is found. This means that the hint about creating a `jsconfig.json` file is not required.

**Fix**
Remove the `jsconfig.json` hinting logic.
2016-11-08 13:55:03 -08:00
Martin Aeschlimann
147130799d [typescript] update grammar 2016-11-08 21:47:40 +01:00
Dirk Baeumer
ae23162b2f Use protocol.d.ts from TS npm module 2016-11-08 11:09:05 +01:00
Dirk Baeumer
93548f30b4 Merge #15152: Adapt TSServer 2.0.8 2016-11-08 10:48:33 +01:00
Martin Aeschlimann
5fb12f2d41 Light/Dark Visual Studio theme needs improvements to handle expressions in template string. Fixes #13166 2016-11-07 10:26:08 +01:00
Dirk Baeumer
ebd2a0126e Fixes #14966: Upgrade TSServer to version 2.0.7 2016-11-04 09:52:40 +01:00
Dirk Baeumer
2cc1a70bc4 Fixes #14797: Add workaround for TS issue: https://github.com/Microsoft/TypeScript/issues/11883 2016-11-01 14:40:14 +01:00
Sandeep Somavarapu
099b686c69 Fix #14547 2016-10-28 16:18:21 +02:00
Alex Dima
c525146876 Fixes #13295: Remove brackets with problems 2016-10-27 21:40:46 +02:00
Martin Aeschlimann
47a79e95c4 [ts] update grammar 2016-10-27 16:39:46 +02:00
Martin Aeschlimann
2db37ea17a Wrong highlighting for angle bracket syntax in embedded language. Fixes #14551 2016-10-27 12:04:54 +02:00
Dirk Baeumer
b74b36bee0 Fixes #13266: TSC version mismatch shouldn't be shown for JavaScript 2016-10-27 12:01:29 +02:00
Dirk Baeumer
aa587165ff Fixed #14548: Lock TypeScript 2.0.6 dependency in NPM shrinkwarp if necessary 2016-10-27 11:02:17 +02:00
Johannes Rieken
0231e82cf0 function vs function-call, fixes #14490 2016-10-26 12:57:17 +02:00
Benjamin Pasero
1de326dfaa update to typescript 2.0.6 2016-10-26 11:49:16 +02:00
Dirk Baeumer
207d45f161 Fixes #14410: Rename experimentalAutomaticTypeAcquisition to disableAutomaticTypingAcquisition 2016-10-25 15:10:14 +02:00
Joao Moreno
fb210605a5 remove periods 2016-10-25 11:16:48 +02:00
kieferrm
f94ebcf2d0 enable automatic typings acquisition by default 2016-10-24 17:10:08 -07:00
Dirk Baeumer
6a35e4ffcc Minor typo fix. 2016-10-24 15:07:32 +02:00
Dirk Bäumer
150a635db4 Merge pull request #14078 from cliffkoh/fixTypos
Fix typos and consistency issues
2016-10-24 15:04:28 +02:00
Johannes Rieken
9aeeee4c1a don't project failures to console, fixes #13785 2016-10-21 10:42:58 +02:00
Cliff Koh
931cc6ca1c Fix typos and consistency issues 2016-10-20 02:48:40 -07:00
Martin Aeschlimann
117f6bba76 [ts] update grammar 2016-10-18 11:57:00 +02:00
Johannes Rieken
262b398026 Merge pull request #13880 from Microsoft/joh/fmtconfig
enable/disable toggles for default formatters
2016-10-17 17:04:32 +02:00
Martin Aeschlimann
1c90acd7f2 Merge pull request #13884 from Microsoft/aeschli/typescript-grammar-update
Typescript grammar update
2016-10-17 15:03:07 +02:00
Martin Aeschlimann
f38751b6d3 [ts] color object literal keys 2016-10-17 14:49:59 +02:00
Johannes Rieken
abc9993766 add [typescript|javascript].formate.enable 2016-10-17 14:38:08 +02:00
Dirk Baeumer
04d334b1db Move tsserver to 2.0.6-insiders.20161014 2016-10-14 21:50:20 +02:00
Dirk Baeumer
6291636991 Use 2.0.3 stable for tsserver. 2016-10-14 20:49:31 +02:00
Dirk Baeumer
6827488419 Added additional formatting options 2016-10-14 20:49:30 +02:00
Dirk Baeumer
f2575227bb Making protocol.ts a real module 2016-10-14 20:49:30 +02:00
Dirk Baeumer
99dd5e4a22 Adopt protocol.d.ts file from npm package 2016-10-14 20:49:29 +02:00