Commit graph

66 commits

Author SHA1 Message Date
Josh Smith
3f9e68436b
Issue #93589: Rename 'renameShorthandProperties' setting to 'useAliasesForRenames' (#94480)
* Issue #93589: Rename 'renameShorthandProperties' setting to 'useAliasesForRenames'

* Issue 93589: Added deprecation message to 'renameShorthandProperties' preference

* Issue 93589: Old and new setting value added for mitigtion

Co-authored-by: joshuahs <joshuahs@umich.edu>
2020-04-14 14:53:19 -07:00
Andrew Branch
23850c7990
[typescript-language-features] Add importModuleSpecifierEnding preference (#90405)
* Expose importModuleSpecifierEnding to typescript-language-features

* Add default `auto` setting

* Use string 'auto' for auto setting

* Work with TypeScript 3.8
2020-02-28 11:20:50 -08:00
Matt Bierner
fb622a8b83 Move code action documentation contribution point to come from metadata
For #86788
2020-02-11 11:36:23 -08:00
Matt Bierner
718331d6f3 Allow configuring TS Server watch options through VS Code
Fixes #89381

Given that these are advanced options, we require editing them in the json file instead of using our settings UI
2020-02-07 18:14:38 -08:00
Matt Bierner
4d35421462 Remove version gating on for now enableProjectDiagnostics
None of the apis being users for this experimental setting require the latest TS version
2020-02-06 16:33:05 -08:00
Matt Bierner
f0942786b4 Add experimental setting to use separate server to compute project level diagnostics
For #13953

**Problem**
We'd like to show project wide diagnostics, however at the moment TS server is single threaded. This means that computing all these diagnostics would interrupt other user operations such as completions.

Right now, our advice is to use tasks to get around this limitation (since tasks always run as separate process) however few people actually use tasks.

**Change**
This change adds an experimental `tsserver.experimental.enableProjectDiagnostics` setting (default false) that makes VS Code spawn a separate TS Server that is only used for computing diagnostics. This should help keep the primary syntax server responsive while letting the diagnostics server churn away at project level diagnostics

**Why experimental?**

- We are comporting too many diagnostics. This is bad for larger projects. I don't think TS provides the right APIs to know which files we actually need to request diagnostics on when a file changes.

- This hasn't been fully extensively tested to make sure it plays nicely with feature such as automatic type acquisition or in complex workspace with multiple projects
2020-02-06 15:15:33 -08:00
Matt Bierner
f0336455ed Adding documentation.refactor proposed contribution point
For #86788
2020-01-07 16:14:54 -08:00
okmttdhr
0db887a1a3 Show JS/TS References Code Lens for Inner Functions (#84689)
* Show code lens for inner functions

* Create typescript.referencesCodeLens.showOnAllFunctions setting

* Create javascript.referencesCodeLens.showOnAllFunctions setting

* Add a new setting in a existing class

* Avoid unnecessary fallthrough
2019-11-22 18:06:23 -08:00
Greg Van Liew
8ae2921645 Nits in settings comments 2019-11-12 10:55:04 -08:00
Matt Bierner
5b63895862 Docment remaining known js/ts refactorings 2019-11-06 18:13:54 -08:00
Matt Bierner
692630172a Documenting more js/ts refactorings 2019-11-06 17:47:43 -08:00
Matt Bierner
42d53cf373 Document extract constant and extract type alias 2019-11-06 16:51:49 -08:00
Matt Bierner
2510769bf9 Updat codeActions contribtions schema based on https://github.com/microsoft/vscode/issues/82718#issuecomment-550468267
- Adds a description
- Remove schama
- Moves the language to the top level so we don't need to duplicate so much info for each code action
2019-11-06 16:51:49 -08:00
Matt Bierner
c8d64b13e5 Add code actions contributon point
For #82718
Fixes #52846

This adds a newly proposed codeActions contribution point. For details, see #82718

This change also makes the intellisense for the `editor.codeActionsOnSave` property dynamic by using the new contribution point
2019-11-06 10:13:59 -08:00
Matt Bierner
82ca6ba87f document that suggest.names doesn't work with checkjs
Fixes #81895
2019-10-19 16:19:35 -07:00
Matt Bierner
bd200eafd1 Add configuration for includeAutomaticOptionalChainCompletions
For https://github.com/microsoft/TypeScript/pull/34552
2019-10-18 22:00:11 -07:00
Michael Loughry
89e4d3eddc Add setting to configure the max memory for tsserver (#82630)
* Add setting to configure the max memory for tsserver

* Fix silly tpo from fixing formatting

* Add "MB" to setting description string

* Add validation to configuration value

* Add 128MB as a lower bound
2019-10-15 13:45:11 -07:00
Matt Bierner
e5efdb4b4b Expand documentation for typescript.tsdk
Fixes #42243
2019-09-26 17:29:13 -07:00
Rob Lourens
099485461d
Merge pull request #80801 from orta/capital_S
Fixes some capital S typoes with JS/TS
2019-09-15 14:55:34 -07:00
Andrew Branch
8774e0bb05 [typescript-language-features] Add formatter option for semicolons (#80828)
* Add formatter option for semicolons

* Add compatibility note

* Make it compile without TS 3.7
2019-09-13 13:40:41 -07:00
Orta Therox
a89b72bf63 Fix hardcoded lower case S issues for JS/TS only for presentation-ish strinngs 2019-09-12 09:58:03 -04:00
Matt Bierner
35f77aab43 Enable useSeparateSyntaxServer by default and remove the experimental section from setting name
Fixes #76420
2019-07-01 15:10:21 -07:00
Matt Bierner
8c8f79dcef Auto restart when changing typescript.experimental.useSeparateSyntaxServer 2019-06-24 17:07:07 -07:00
Matt Bierner
87b8402b59 Add experimental dual TS server
Fixes #75866
2019-06-20 17:11:20 -07:00
Matt Bierner
ada4bddb8e Change documentation for TS importModuleSpecifier.auto
Fixes #52485

Based on code in d53efdf380/src/compiler/moduleSpecifiers.ts (L139)
2019-05-17 18:14:40 -07:00
Matt Bierner
42f6d4648c Add trailing ... for command that opens a picker 2019-03-22 15:06:43 -07:00
Matt Bierner
f4921b0f20 Remove period from js/ts command title
Fixes #70961
2019-03-22 15:06:43 -07:00
Matt Bierner
b819c7668e Remove jsDocCompletion setting
This has been renamed to `javascript.suggest.completeJSDocs` and `typescript.suggest.completeJSDocs`
2019-02-13 17:47:12 -08:00
Matt Bierner
b4522997ac Add preference to disable shorthand renaming
Fixes #68029

Use the `typescript.preferences.renameShorthandProperties` and `javascript.preferences.renameShorthandProperties` to disable shorthand property renames. Default to enabling renames
2019-02-13 17:44:08 -08:00
Matt Bierner
807759ecff Rename jsDocCompletion.enabled to javascript.suggest.completeJsDocs and typescript.suggest.completeJsDocs
Fixes #67146
2019-01-28 14:46:29 -08:00
Matt Bierner
b43d76887d Add more detail to disableAutomaticTypeAcquisition setting description
Fixes #60984
2018-10-17 16:22:25 -07:00
Matt Bierner
a57e7abae2 Remove deprecated js/ts completion settings
These were marked as deprecated in VS Code 1.28 and are now being removed
2018-10-15 17:39:33 -07:00
Matt Bierner
f169056822 Use better name for insertParamtersForFunctionCall setting
Renamed to `completeFunctionCalls` to hopefully make it clear that this setting will also complete functions with no parameters

Fixes #59325
2018-09-26 11:53:54 -07:00
Matt Bierner
f6b11178f7 Add check js survey
**Problem**
We'd like to understand the types of problems users are running into when using the checkJs feature in real world code. This is not something we can determine automatically

**Fix**
The TS team has put together a short survey that will hopefully help them understand how people are using checkJS and what problems they run into. This change adds client side logic to show the survey in the following case:

- A user as opened 10 projects that have checkJS set
- And they have not been prompted to complete the survey previously
- And they have not opted out of all js/ts surveys
2018-09-19 17:19:38 -07:00
Matt Bierner
e6443c6220 Fix description 2018-09-11 12:54:46 -07:00
Matt Bierner
1ff383c64f Split useCodeSnippetsOnMethodSuggest into js and ts specific settings
Splits the old setting into `javascript.suggest.insertParametersForFunctionCalls` and `typescriptscript.suggest.insertParametersForFunctionCalls`

Fixes #58385
2018-09-11 11:20:38 -07:00
Matt Bierner
2d4a98842b Rename javascript.nameSuggestions to javascript.suggest.names
Bring this setting name inline with other suggestions settings

Part of #58385
2018-09-10 15:41:07 -07:00
Matt Bierner
ae7035dbbf Add setting to disable all path based sugestions in js/ts
The new  `javascript.suggest.paths` and `typescript.suggest.paths` settings replace `typescript.quickSuggestionsForPaths`. These settings should disable all path based suggestions from js/ts

The old `quickSuggestionsForPath` setting is now marked deprecated and is not being migrated to these new settings as it has different semantics. It was originally designed just to disable quick suggestions for paths but it does not work properly when using TypeScript 2.9+
2018-09-10 15:41:07 -07:00
Matt Bierner
72581dfca9 Rename typescript.autoImportSuggestions.enabled and allow it to be applied to js or ts separately
Part of #58385
2018-09-10 15:41:07 -07:00
Matt Bierner
98894ae9ba Rename typescript.suggestions.enabled to typescript.suggest.enabled to be more consistent with other extensions 2018-09-10 15:41:07 -07:00
Dave Williams
b9dbeb90d1 New config to turn off TypeScript autocomplete suggestions (#58011)
* New config to turn off TypeScript autocomplete suggestions

* add missing semicolon

* Exclude everything, even name suggestions, when suggestions disabled
2018-09-10 11:06:12 -07:00
Matt Bierner
5198030c09 Describe what implementation code lens does
Fixes #55370
2018-07-30 15:59:17 +01:00
isidor
55dfcd730e settings sweep
#54690
2018-07-30 16:53:12 +02:00
Rob Lourens
a2767ab649 Setting descriptions 2018-07-28 12:13:36 -07:00
Rob Lourens
31eba9652d Sweep setting descriptions for #54690 2018-07-25 14:45:48 -07:00
Matt Bierner
5a148fa9a3 Use code in setting 2018-07-23 15:27:55 -07:00
Matt Bierner
b096fb256d Use enumDescriptions 2018-07-23 15:27:55 -07:00
Matt Bierner
e9fb3b2eaa Remove old show unused settings
You should use `editor.showUnused` instead. Possibly with a language specific setting:

```
"[typescript]": {
    "editor.showUnused": false
}
```
2018-07-23 15:01:02 -07:00
Matt Bierner
adfa9ce977 Add initial support for auto close jsx tags
Fixes #34307
2018-07-09 19:00:10 -07:00
Dániel Tar
6ae1cc7720 Fix a replace gone wrong in typescript-language-features/package.nls (#52704) 2018-06-25 10:54:49 -07:00