Commit Graph

430 Commits

Author SHA1 Message Date
Matt Bierner
de335bfa49 Small references code lens cleanup 2017-02-16 22:13:54 -08:00
Matt Bierner
844cfe1459 Small formatting cleanup 2017-02-16 16:49:39 -08:00
Matt Bierner
a5a0249701 Small formatting cleanup 2017-02-16 16:43:17 -08:00
Matt Bierner
511bcb37a3 Fix duplicate command id 2017-02-16 16:05:01 -08:00
Matt Bierner
5638922563 Remove duplicate TS registrations 2017-02-16 15:55:39 -08:00
Matt Bierner
dab0a92ca5 Pick up new ts version 2017-02-16 13:45:41 -08:00
Matt Bierner
db25b7ec6e Fix jsdoc build error 2017-02-16 12:52:30 -08:00
Matt Bierner
d287583f21 Fix timeout for jsdoc call 2017-02-16 11:00:04 -08:00
Matt Bierner
7cd1b6cd79 Revert "Add Status Bar Item for JSConfig/TSConfig" (#20759) 2017-02-16 10:51:20 -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
e0354d386a Add Status Bar Item for JSConfig/TSConfig (#20571)
Fixes #20356

Adds a status bar item that shows which jsconfig/tsconfig a ts or js file currently belongs to. This triggers the `typescript.goToProjectConfig` command when clicked, which either jumps to the config file or shows an alert about creating a configuration file
2017-02-15 13:26:32 -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
e28dbc6d79 Clarify typings Fixes #20309 2017-02-13 14:34:37 -08:00
Matt Bierner
6b5c143705 Clarify markdown setting string. Fixes #20409 2017-02-13 14:17:27 -08:00
Matt Bierner
b9eab3261f Clairfy references codelens string. Fixes #20393 2017-02-13 14:15:17 -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
c52f03ccf7 Only check tsc version for ts files. Fixes #17736 2017-02-10 15:46:51 -08:00
Matt Bierner
baaf639989 Small code cleanup 2017-02-09 17:45:15 -08:00
Matt Bierner
d759bb7046 Properly escape names for ts reference code lens Fixes #20357 2017-02-09 16:32:32 -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
94391ea14d Send script kind based on languageId for js and ts files (#20351) 2017-02-09 13:37:47 -08:00
Matt Bierner
3ba88b6800 Pick up TS 2.1.6 2017-02-08 15:19:16 -08:00
Matt Bierner
42335c57f5 Revert "Use types tsconfig option where possible"
This reverts commit 38fbba35ff.
2017-02-07 16:31:50 -08:00
Matt Bierner
38fbba35ff Use types tsconfig option where possible 2017-02-07 15:57:22 -08:00
Matt Bierner
1a024c1b19 Use reference @types/node in extensions 2017-02-07 15:38:04 -08:00
Matt Bierner
29f8a93109 Disable Paren Commit Item When useCodeSnippetsOnMethodSuggest is Enabled (#20096)
**bug**
`(` was added as a commit character in 1.9. Combined with `useCodeSnippetsOnMethodSuggest`, this is causing some anoying autocomplete behavior.

**Fix**
Disable `(` as a commit character while `useCodeSnippetsOnMethodSuggest` is enabled.
2017-02-07 11:06:45 -08:00
Matt Bierner
aa3d327cb7 Stop TS From Spamming Crash Messages (#20081)
* Stop TS From Spamming Crash Messages

**Bug**
When the tsserver crashes repeatedly, it can end up spamming users with constant alerts. This is not too helpful

**Fix**
A number of small fixes:

* Lengthen ts 5 crash timeout to 10 seconds from 2 seconds. 5 crashes in 10 seconds == no attempted restart
* Reset the last started time when we have any number of crashes in the row. This resets the crash windows.
* Fix all crashes after 5 retriggering the same logic. I believe the intent was that we should show these errors every five crashes, not on any crash after the fifth one

* Set last startTime on boot
2017-02-07 11:05:04 -08:00
Matt Bierner
9af9a80aaa Fix error markers and problems links in untitled js and ts files (#20073)
Fixes #19856
2017-02-06 11:29:12 -08:00
Matt Bierner
ebfd13baca Revert 1c75093313 2017-02-06 10:44:01 -08:00
Matt Bierner
de28ea63ab Add extra check tsdk path when getting version. Fixes #19600 (#19886) 2017-02-03 15:34:42 -08:00
Matt Bierner
1c75093313 Disable experimental api in ts extension 2017-02-02 16:49:56 -08:00
Matt Bierner
87dc264193 Don't show anon functions/classes in TS document symbol list. Fixes #18698 2017-02-02 16:40:33 -08:00
Matt Bierner
d6bfdf609f Split out some functions in ts document symbol provider 2017-02-02 14:17:41 -08:00
Matt Bierner
a87586c7c3 Add Type Definition Provider API (#19699)
* Add Type Definition Provider API

Adds a new API to support type definition providers and adds an initial type definition provider for TypeScript

* Fix comment

* Addressing comments

* Fixer menu option ordering

* Added simple test
2017-02-02 14:01:23 -08:00
Matt Bierner
edf9fedf5d Small cleanup to ts extension 2017-02-02 11:05:59 -08:00
Sean McCann
d553a4add1 #19719 - fixed typos in TypeScript extension settings keyword descriptions (#19720) 2017-02-02 10:59:56 -08:00
Matt Bierner
63929e0d20 Added extra null check in configFileDiagnosticsReceived 2017-02-01 22:38:02 -08:00
Matt Bierner
909d79f36a Add no unused local and no unused parameter checks to ts extension 2017-02-01 13:41:59 -08:00
Matt Bierner
ae3f254e35 Flag errors in TSconfig.json (#19656)
Fixes #3783

From https://github.com/Microsoft/TypeScript/issues/10473
2017-02-01 12:37:09 -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
Martin Aeschlimann
60bbe61489 [css] change grammar to atom/language-css 2017-01-31 17:10:28 +01: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
c01ba26f61 Fix TS Version Selector When Local Version == Global Version (#19593)
**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

**Fix**
Adds a check using the local storage value to show the correct active version
2017-01-30 12:41:38 -08:00
Martin Aeschlimann
2c55fde0da [ts] update grammar. Fixes #19403 2017-01-30 11:58:08 +01:00
kieferrm
eafb9edd94 Use Later instead of Close 2017-01-27 12:28:15 -08:00
Matt Bierner
aa19ee1d1e Fixed a few more cases and updated wording to be more clear 2017-01-27 11:24:11 -08:00
Matt Bierner
850c163f49 Fix a few edge cases for quick pick of ts version 2017-01-27 11:08:04 -08:00
Johannes Rieken
1162f89430 onDidChangeCodeLenses:Event<void>, fixes #19495 2017-01-27 15:24:10 +01:00
Matt Bierner
4b4ad2d9e8 Reword ts version switch flow a little 2017-01-26 20:28:43 -08:00