Commit graph

42 commits

Author SHA1 Message Date
Matt Bierner 4514ddd180 Add option to exclude unique names from suggestion lists in JS files
Fixes #26595

**Problem**
TS includes all unique names in a file in the completion list for JavaScript files. This is often desirable, but may result in unexpected completions

**Fix**
Add a new option `javascript.nameSuggestions` to filter these suggestions out.
2017-05-16 18:35:07 -07:00
Matt Bierner f856147a01 Split js and ts setting for references code lens
Fixes #26418

Allows enabling or disabling the references code lenses in either javascript or typescript. Previously, the setting enabled it in both language automatically. Enable the code lenses in ts files by default
2017-05-12 20:26:08 -07:00
Matt Bierner 946e7ebb2f Reveal TS Server log file in os instead of opening log in explorer. Fixes #25908 2017-05-09 14:56:24 -07:00
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
Matt Bierner 1d05d0c49d Added PII note on ts server trace and log settings #24696 2017-04-13 17:05:01 -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 84e3f39976 Remove unused TS setting string 2017-04-03 17:47:36 -07:00
Matt Bierner 96092113fa Add note about references code lens required TS version 2017-04-03 13:25:52 -07: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
Matt Bierner fa342734c3 Add version requirement note to implementaiton code lens setting Fixes #23679 2017-04-03 10:00:47 -07: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
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 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 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
Sean McCann d553a4add1 #19719 - fixed typos in TypeScript extension settings keyword descriptions (#19720) 2017-02-02 10:59:56 -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 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
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
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
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
Sandeep Somavarapu 099b686c69 Fix #14547 2016-10-28 16:18:21 +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
Dirk Baeumer 6a35e4ffcc Minor typo fix. 2016-10-24 15:07:32 +02:00
Cliff Koh 931cc6ca1c Fix typos and consistency issues 2016-10-20 02:48:40 -07:00
Johannes Rieken abc9993766 add [typescript|javascript].formate.enable 2016-10-17 14:38:08 +02:00
Dirk Baeumer 6827488419 Added additional formatting options 2016-10-14 20:49:30 +02:00
Dirk Baeumer 67af291986 Make use of TS 2.0.6 optional 2016-10-14 20:49:28 +02:00
Dirk Baeumer 03d7916061 ImprovedVersionChecking 2016-09-22 16:24:33 +02:00
Dirk Baeumer c4d6481247 Make TypeScript extension ready for 2.0 2016-08-17 12:43:17 +02:00
Martin Aeschlimann e228769042 Polish configuration section labels & add link 2016-06-27 18:37:04 +02:00
Dirk Baeumer ff52542fcd Make experimental auto build a setting 2016-06-23 13:29:23 +02:00
Dirk Baeumer ccf097102c Fixes #5573: Add support to log tsserver communication to output channel. 2016-04-20 22:30:36 +02:00
Dirk Baeumer a6b346ccff Fixes #1533: Code formatting settings 2016-03-10 22:13:07 +01:00
Dirk Baeumer f87a633d42 Fixes #3909: Revive javascript.validate.enable setting 2016-03-10 15:16:50 +01:00
Dirk Baeumer f365b61c2d Multiplex between JavaScript and TypeScript 2016-03-10 12:19:52 +01:00
Joao Moreno 0513f2c8a6 add reload javascript project command
fixes #3417
2016-02-25 15:05:14 +01:00
Dirk Baeumer 3595a3af33 Externalize strings for TypeScript extensions 2016-02-15 12:20:28 +01:00
Dirk Baeumer 90dce6abea Add support to localize package.json 2016-02-12 16:06:34 +01:00