Commit Graph

107 Commits

Author SHA1 Message Date
Matt Bierner
51f3f10e36 Add setting to disable NPM Not installed error (#25112)
Adds a new setting to disable the npm not installed warning that we show when ATA fails

Fixes #25063
2017-04-21 14:19:25 -07:00
Matt Bierner
a1677b57b0 Add Setting to Enable JavaScript TypeChecking Checking in Implicit Projects (#25116)
* Add Setting to Enable JavaScript TypeChecking Checking in Implicit Projects

Fixes #25113

Adds new setting to enable js typechecking in implicit projects

// cc @mhegazy

* Make sure we update config after changing settings

* Update wording
2017-04-21 13:57:23 -07:00
Ramya Achutha Rao
84af63a933 Increment version of vscode extension telemetry module 2017-04-18 14:46:35 -07:00
Matt Bierner
5d801251ec Set insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces to default to true to keep with existing behavior 2017-04-13 16:44:42 -07:00
Magnus Hiie
95f0c15bf5 Expose insert..Braces rule in VS Code settings (#21649)
* Expose insert..Braces rule in VS Code settings

Fixes #18043

* Add requirement blurb for insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces

* Revert tsfmt change
2017-04-13 16:35:40 -07:00
Matt Bierner
5f628cd731 Use js/tsconfig schema for jsconfig.*.json files (#24637)
Fixes #24572

Applies the js/tsconfig schema to file names such as `jsconfig.app.json`
2017-04-12 14:46:08 -07:00
Michel Kaporin
96bd2ed7dd Merge pull request #23281 from michelkaporin/i18n
Added ability for JSON/XLIFF conversion and Push/Pull from Transifex
2017-04-06 14:38:05 +02:00
Jakub Synowiec
70e074ac2f Add an option to enable/disable JSDoc autocomplete (#23704)
* Add new option to disable/enable jsdoc autocompletion

* Refactor JsDocCompletionItem

- remove internal command
- move TS service call and template generation to CompletionItem
- only call TS service if JSDoc completion is enabled in settings
- add local config and config update method to CompletionProvider

* Change how and when JsDocCompletionHelper is registered

Register JsDocCompletionHelper and update configuration in registerProviders instead of activate. Also react to configuration change.

* Rename JsDocCompletionHelper to JsDocCompletionProvider

* Add missing newline at the eof

* Restore completion prompt for JSDoc autocomplete

Restores internal command but but as a separate class. Registers command on extension activation.
2017-04-03 10:35:29 -07:00
Michel Kaporin
2af1e01b44 Implemented transifex push and pull for translations together with json->xlf->json parsing. 2017-03-27 15:45:43 +02:00
Matt Bierner
23aba8283a Add TSServer Log Collection Commands (#22914)
* Add TSServer Log Options

Adds support for collecting the TSServer log directly in VS Code

* Add enable logging option

* Handle case where user is on older version of TS

* Rename

* Activate on openTSServerLog command

* VSCode -> VS Code
2017-03-20 17:16:01 -07:00
Dirk Baeumer
d3efc931f7 Fixes #22730: Contributed problem matchers must use ${cwd} not $cwd 2017-03-16 10:47:11 +01:00
Dirk Baeumer
f51220dbf7 Fixes #22066: Allow extensions to contribute named problem matchers via package.json 2017-03-14 12:07:15 +01:00
Mackenzie McClane
5e10fe283f Add typescript and javascript format.insertSpaceBeforeFunctionParenthesis (#21712)
* Update tsfmt.json

* Update formattingProvider.ts

* Update package.nls.json

* Update package.json

* Update package.json

* Add TS version requirement to description
2017-03-02 12:49:22 -08:00
Matt Bierner
434def671b Use common TS install for both the TS Extension and Html Extension (#21578)
* Use common TS install for both the TS Extension and Html Extension

**Bug**
At least two version of Typescript are shipped in our extensions: one in the typescript extension and one for the html extension. This adds about 5MB to package install size and also results in inconsistent behavior

**Fix**
Change the TypeScript extension to also use the common version of TypeScript. Bump this version up to 2.2.1

* Don't hardcode paths for typescript
2017-03-01 18:34:04 -08:00
Matt Bierner
223ea4bbc0 Prototype of Implementations Code Lens Provider for TypeScript (#20784)
* Prototype of Implementations Code Lens Provider for TypeScript

Adds a prototype code lens that shows the number of implementations for interfaces and abstract classes. This shares a lot of code with the references code lens provider, so I extracted most of the common stuff into a base class.

* Support children of interfaces

* Add setting to control implementations code lens
2017-02-28 17:12:16 -08:00
Matt Bierner
e083fc9584 Add when clauses for ts commands. Fixes #21522 (#21525) 2017-02-27 18:43:32 -08:00
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