Commit Graph

91 Commits

Author SHA1 Message Date
Matt Bierner
6c9f4712b7 Adopt ts 2.2.1 2017-02-22 15:14:31 -08:00
Matt Bierner
5b1a6f4155 Use CompletionItem for JsDoc Comment auto fill (#21025)
Fixes #20990

Switches back to using a completion item provider for jsdoc auto complete.

The completion list will be automatically shown when you are in a potentially valid jsdoc completion context
2017-02-21 16:02:53 -08:00
Kai Maetzel
919580fdd8 Upgrade telemetry package used by TS and markdown extensions. (#20971)
* upgrade telemetry used by TS ext

* upgrade telemetry used by markdown ext
2017-02-21 15:26:30 -08:00
Matt Bierner
6480172752 Apply js completion to react files 2017-02-19 16:23:19 -08:00
Matt Bierner
5a8795f99a Bump ts version 2017-02-19 16:21:51 -08:00
Matt Bierner
dab0a92ca5 Pick up new ts version 2017-02-16 13:45:41 -08:00
Matt Bierner
fe742d3800 Autofill for JSDocs (#20625)
* Add autofill for JSDocs

Adds prototype of autofill for jsdoc comments. For code like:

```js
    /**|
    function mul(x, y) {
        return x * y;
    }
```

When you press return, we will complete it to:

```js
    /**
     *
     * @param x
     * @param y
     */
    function mul(x, y) {
        return x * y;
    }
```

In Typescript and to:

```js
    /**
     *
     * @param {any} x
     * @param {any} y
     */
    function mul(x, y) {
        return x + y;
    }
```

In JavaScript

* Handle revert case better

* Disable on enter when suggestion is visible
2017-02-15 14:04:36 -08:00
Matt Bierner
480eaa519e Activate ts when workspace contains js or ts config to get intellisense for these config files 2017-02-13 14:39:39 -08:00
Matt Bierner
5db8fd0f55 Add Command to Go To / Create project configuration for an active js or ts file (#20362)
* Add Command to Go To / Create project configuration for an active js or ts file

Part of #20356

Adds a new command that opens the jsconfig or tsconfig project configuration file for the currently active file. If one does not exist, displays a quick pick that allows users to learn more and create a config file at the root of their project

* Add messages for error cases

* Work around ts error
2017-02-13 12:58:40 -08:00
Matt Bierner
bda6f847b1 Pick up TS 2.2 2/9 insiders build (#20363) 2017-02-09 16:26:45 -08:00
Matt Bierner
3ba88b6800 Pick up TS 2.1.6 2017-02-08 15:19:16 -08:00
Matt Bierner
ebfd13baca Revert 1c75093313 2017-02-06 10:44:01 -08:00
Matt Bierner
1c75093313 Disable experimental api in ts extension 2017-02-02 16:49:56 -08:00
Matt Bierner
7c633148b3 Remove unneeded d.ts files from extensions (#19653)
* Remove unneeded d.ts files from extensions

Moves most extensions to use the lib files for the standard library that typescript provides.

* Remove a few more node.d.ts references
2017-02-01 12:34:50 -08:00
Matt Bierner
1ee3f9dc6c Added command for selecting ts version (#19641)
* Added command for selecting the ts version

* Update name

* Update name
2017-01-31 14:27:24 -08:00
Matt Bierner
35e2132409 New tsdk flow for 19 (#19602)
* Allow using workspace typescript.tsdk setting

Allows users to opt into using their workspace typescript.tsdk setting to specify the path to their typescript install.

Also, fixes a bug when the global tsdk setting points to the workspace version of typescript, our ts selector interface can get confused on which version is currently active. The fix adds a check using the local storage value to show the correct active version.

* Flip vscode and workspace pick order

* Use shared logic when workspace tsdk setting is not used
2017-01-30 16:33:20 -08:00
Matt Bierner
8aa7e5336d Change TypeScript Configuration Flow For workspacesTrustedToSpecifyExecutables (#19329)
* Proto

* Remove unused method

* Use local storage for selecting typescript version

* Update settings warning message for typescript tsdk setting

* Small logic cleanup
2017-01-25 16:52:42 -08:00
kieferrm
97b08a7ce4 adapt contributions 2017-01-23 21:05:17 -08:00
Johannes Rieken
40729ec1a9 AtaProgressReporter using proposed progress api 2017-01-17 18:23:05 +01:00
Matt Bierner
d9d41f7cd0 Prototype Using Commit Characters for JS and TS Completions (#18380)
* Prototype Using Commit Characters for JS and TS Completions

Part of #7326

Adds a prototype for using specific characters to complete TS/JS completion items automatically.

* Tune path completion items

* Disable dot commit in js files

* Don't complete on / in module names
2017-01-12 15:21:46 -08:00
Matt Bierner
ed5a9f269d Pick up 2.1.5 release (#18429) 2017-01-11 18:10:13 -08:00
Joao Moreno
31997b32c3 Revert "Only apply TS Dot Accept Suggestion if Previous Character is a valid identifier (#18063)"
This reverts commit 41cb5ee5ae.
2017-01-10 10:11:52 +01:00
Martin Aeschlimann
d12f865650 [jsx] Automatic HTML indentation and cursor position in JSX. Fixes #18284 2017-01-09 21:47:42 -04:00
Matt Bierner
1e2059c676 Fix nls command title 2017-01-09 10:59:43 -08:00
Matt Bierner
41cb5ee5ae Only apply TS Dot Accept Suggestion if Previous Character is a valid identifier (#18063)
* Only apply TS Dot Accept Suggestion if previous character is a valid identifier char

Fixes #17825
Fixes #17770
Fixes #17584

**Bug**
When typing two or more `.` in a row, we end up unexpectedly accepting suggestions in TS files. This is caused by the custom keybinding that ts registers for `.`.

**Fix**
Only accept the suggestion on `.` if the previous character is a valid identifier character.

* Move title to nls
2017-01-09 10:43:59 -08:00
Martin Aeschlimann
d826ad6e4f [jsx][tsx] Wrong type of comments for React code. Fixes #6461 2017-01-07 10:57:37 -04:00
Matt Bierner
265803b0c9 Add TypeScript References Code Lens Provider (#18205)
Fixes #18054

Adds an references code lens provide for JS and TS
2017-01-06 15:18:06 -08:00
Matt Bierner
371f5e449f Pick up TS 2.1.5 12/29 insiders (#17915) 2016-12-29 15:47:20 -06:00
Matt Bierner
d413a67e92 Pick up 12/20 ts drop (#17635) 2016-12-20 18:46:58 -08:00
Matt Bierner
33eb6753be Fixes #17363 Adds typings.json schema (#17416) 2016-12-16 12:55:20 -08:00
Matt Bierner
32222e2eef Update to TS 2.1.5 insiders build (#17347) 2016-12-15 16:35:08 -08:00
Matt Bierner
46e96d6d73 Move @types/semver in TS Extension to devDependencies (#16958)
* Revert #15842 to unblock oss tool

* Move @typessemver to devdependencies
2016-12-08 22:01:02 -08:00
Matt Bierner
8a16c576a8 Adopt TS 2.1.4 in TS Extension (#16872) 2016-12-07 16:28:15 -08:00
Matt Bierner
0df5b6fb30 Pick up latest TS insiders build 2016-12-06 11:38:10 -08:00
Matt Bierner
8a1db6dbcf TS 2.1.4-insiders 2016-12-05 11:56:48 -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
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
Dirk Baeumer
ab8e320022 Fixes #15543: Adapt TSServer 2.0.10 2016-11-15 15:24:24 -08:00
Dirk Baeumer
aea3a39ad4 Fixes #15337: Adapt TSServer 2.0.9 2016-11-11 10:42:25 +01:00
Dirk Baeumer
93548f30b4 Merge #15152: Adapt TSServer 2.0.8 2016-11-08 10:48:33 +01:00
Dirk Baeumer
ebd2a0126e Fixes #14966: Upgrade TSServer to version 2.0.7 2016-11-04 09:52:40 +01: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
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
kieferrm
f94ebcf2d0 enable automatic typings acquisition by default 2016-10-24 17:10:08 -07: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
99dd5e4a22 Adopt protocol.d.ts file from npm package 2016-10-14 20:49:29 +02:00