Commit graph

249 commits

Author SHA1 Message Date
Alexandru Dima 51d7dd1a73
Selective task provider activation using a new onTaskType: activation event (#137662) 2021-12-07 17:43:38 +01:00
Matt Bierner e784e88a87
Update setting name to be more extensible in the future
Discussed in https://github.com/microsoft/TypeScript/issues/46590#issuecomment-966756378
2021-11-19 15:13:02 -08:00
Matt Bierner 9939a82851
Add separator for TS version quick pick 2021-11-19 15:13:02 -08:00
Johannes Rieken 09c9d4c293
use enabledApiProposals instead of wildcard property, also update compilation units to only include d.ts-files that are needed, https://github.com/microsoft/vscode/issues/131165 2021-11-12 11:05:57 +01:00
Johannes Rieken 64da3b132b
move languageStatus API proposal into its own file, adopt TypeScript usage, https://github.com/microsoft/vscode/issues/131165 2021-11-11 16:21:59 +01:00
Logan Ramos 00de6a5f2f
Update telemetry module 2021-11-08 10:00:44 -05:00
Matt Bierner ce9c6361dc
Remove typescript-vscode-sh-plugin
Fixes #136389
2021-11-03 14:48:48 -07:00
Matt Bierner bc4e05c002
Add js version of setting too 2021-10-28 14:18:04 -07:00
Gabriela Araujo Britto d2aa181e66
add new 'includeCompletionsWithClasMemberSnippets' option (#136045) 2021-10-28 14:07:11 -07:00
Logan Ramos a4342f3add
Bump telemetry module 2021-10-01 16:52:56 -04:00
Armando Aguirre 7fdc489e08
Add jsxAttributeCompletionStyle setting (#133920)
* Add jsxAttributeCompletionStyle setting

* Apply suggestions from code review

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2021-09-29 16:20:23 -07:00
Logan Ramos 282f499c22
Update extension telemetry module 2021-09-23 11:26:57 -04:00
Logan Ramos 8dbad73de5
Update built in extensions telemetry 2021-08-27 15:45:42 -04:00
Logan Ramos ecc7fdac90
Bump extension telemetry module 2021-08-27 11:29:48 -04:00
Matt Bierner f29bc05bb5
Disable parameter names hints by default 2021-08-23 13:51:10 -07:00
Matt Bierner e802791cf1
Introduce typescript.tsserver.useSyntaxServer
Fixes #131142

This setting replaces `typescript.tsserver.useSeparateSyntaxServer` and officailly documents the syntax only mode on desktop
2021-08-18 18:36:37 -07:00
Logan Ramos da7d76d2ec
Update extension telemetry module 2021-08-10 12:43:41 -04:00
Logan Ramos 6aa5b9226b
Update extension telemetry module 2021-08-09 13:16:08 -04:00
Matt Bierner 82331754b3
Enable param name inlayHints by default for TS
Looking for feedback. Will also consider keeping enabled if it looks stable enough
2021-08-03 12:04:00 -07:00
Matt Bierner 67ea45c3e0
Don't use | null for ts config
Fixes #129794

Just fall back to undefined instead
2021-08-02 16:11:17 -07:00
Logan Ramos 9350fa3c9d
Bump telemetry module to fix packaging 2021-08-02 14:29:37 -04:00
Logan Ramos b7a07daa5a
Fix #129727 2021-08-02 13:04:26 -04:00
Logan Ramos 87e0cb1d43
Fix #129474 2021-07-29 11:39:03 -04:00
Matt Bierner 9c12aa144b
Add examples to inlay hint settings
Fixes #129517
2021-07-27 16:08:02 -07:00
Logan Ramos c8e6d08e3a
Update to the latest extension module 2021-07-26 13:44:43 -04:00
Martin Aeschlimann 7ebe6a6054
adopt web extensions to webpack 5 2021-07-08 21:41:03 +02:00
Wenlu Wang e144d6e951
Add ts inline hints (#113412)
* Add ts server for inline hints

* Add some feature related configure

* Add more config

* Rename all options

* Support range

* use new interface

* Fix cr issues

* Update inlay hints for ts plugin

* Avoid call chain hints

* Avoid more option

* Update protos

* Update extensions/typescript-language-features/package.nls.json

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>

* Use suppress for some option

* Update CR issues

* Fix missing typedef

* Avoid changes

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2021-07-07 09:21:20 -07:00
Matt Bierner 57d5c9dd0f
Switch back to repeated contribution
Fixes #125652

When clause using `||` doesn't seem to work here
2021-06-16 14:26:23 -07:00
Matt Bierner b314536e56
Move find file references into the search group
For #115694
2021-05-21 17:59:54 -07:00
Martin Aeschlimann 32a06b9be2 [typescript] add limited description 2021-05-21 15:38:02 +02:00
Robo bce4d71f64
chore: bump node@14.x in devDependencies (#122905) 2021-05-04 10:04:13 +02:00
Matt Bierner 3915fcfe49
Add some links and small cleanup for JS/TS settings 2021-04-28 17:31:18 -07:00
Alex Ross d40139dd63
Make typescript problem matcher even more general
Fixes #121672
2021-04-23 14:19:29 +02:00
Sandeep Somavarapu ac151b40a5
enable virtual workspace capability 2021-04-23 10:20:23 +02:00
SteVen Batten f9fc28d47d update ext manifest schema validation and built-in exts 2021-04-21 11:54:42 -07:00
Miguel Solorio ac48f78dd6
Add icons for built-in extensions (fixes #81760) 2021-04-20 12:09:24 -07:00
Matt Bierner 1764fc81a8
Add requiredForConfigurations for TS 2021-04-20 11:37:54 -07:00
Matt Bierner ae24966cce
Localize workspaceTrust 2021-04-20 11:35:02 -07:00
Alex Ross 5371ac58c4
Include virtual workspace check for task type enablment 2021-04-14 15:04:06 +02:00
SteVen Batten c7faaf0ea0
update wt static declarations (#120443)
* update wt static declarations

* add description

* fix hygiene
2021-04-06 09:27:15 -07:00
Andrew Branch 29ca249959
[typescript-language-features] Support import statement completions for TypeScript 4.3 (#119009)
* Support import statement completions for TypeScript 4.3

* Fix forgotten argument

* Add snippet preference

Co-authored-by: Matt Bierner <matb@microsoft.com>
2021-03-29 11:38:22 -07:00
Martin Aeschlimann 3e16e9151b
update typescript-vscode-sh-plugin. For #120103 2021-03-29 16:42:37 +02:00
SteVen Batten 9c00242866 updating telemetry module for built-in exts 2021-03-22 16:28:08 -07:00
Matt Bierner e7f3b77a9c Remove typings for unused package 2021-03-17 16:50:32 -07:00
Martin Aeschlimann c09b3d2358 typescript: enable built-in 2020 semantic token support 2021-03-17 00:15:42 +01:00
Ladislau Szomoru 149a8b71c5
Workspace trust changes (#119017)
* Add dialog button customisation and reject promise if cancelled
* Use different promises to modal/soft requests
2021-03-16 10:18:42 +00:00
Matt Bierner e066c74761 Document new fixedChunkSizePolling ts watch mode 2021-03-05 18:49:17 -08:00
Ladislau Szomoru 8fd4a68845
Factor in workspace trust when switching versions (#117774) 2021-03-01 09:09:13 +01:00
Matt Bierner 3dc8cb1afc Add setting to enable/disable returns generation in jsdoc
Fixes #116282
2021-02-10 12:20:01 -08:00
Matt Bierner a0855b30c7 Use rmdirSync instead of rimraf
Fixes #115668
2021-02-04 11:44:33 -08:00
João Moreno 8bf9b56ade
Merge branch 'joao/extensions' 2021-02-02 12:06:01 +01:00
Matt Bierner 925d9234b8 Pick up latest TypeScript 4.2 nightly
This also migrates us to use our normal TS install for the serverless version
2021-02-01 14:15:27 -08:00
João Moreno ec805db5ed
add repository field to extensions package.json 2021-01-29 15:30:45 +01:00
Matt Bierner b565c422aa Add find all references command for JS/TS
Fixes #66150
2021-01-04 16:57:24 -08:00
Alexandru Dima 20831dd3df
Keep only @types/* deps in /build/ and share terser (#112718) 2020-12-18 19:51:10 +01:00
Alexandru Dima f74ad9692f
Align @types/* dev dependencies (#112718) 2020-12-18 13:28:39 +01:00
Alexandru Dima 7ca71e763d
Move away from deprecated 'vscode' node module (#112718) 2020-12-17 21:40:14 +01:00
Alexandru Dima cbc47b1d7b
Do not share terser 2020-12-17 14:38:44 +01:00
Alexandru Dima 1cada18542
Share webpack related node modules (#112718) 2020-12-17 11:16:03 +01:00
Matt Bierner 072d922c45 Revert "Revert "Pick up offical TS build for web server""
This reverts commit eb5c4388c7.
2020-12-11 13:39:19 -08:00
Matt Bierner eb5c4388c7 Revert "Pick up offical TS build for web server"
This reverts commit f29a3cabc4.
2020-12-11 12:14:58 -08:00
Matt Bierner f29a3cabc4 Pick up offical TS build for web server 2020-12-09 17:22:26 -08:00
Matt Bierner 9e5f14c1bc Default strict null checks to off for implicit projects
For #109988
2020-11-30 16:40:15 -08:00
Andrew Casey 9195c9ab14
Expose TS server tracing (#110534)
* Add typescript.tsserver.enableTracing setting

* Document typescript.tsserver.enableTracing setting
2020-11-20 15:28:18 -08:00
Andrew Branch 00fa5d3884
[typescript-language-features] Update importModuleSpecifierPreference values (#110536)
* Update importModuleSpecifierPreference values

* -using

* Add minimum version message
2020-11-16 13:06:40 -08:00
Benjamin Pasero ac2ca0b539 typescript - fix nls issue
//cc @mjbvz
2020-11-05 10:49:22 +01:00
Matt Bierner 81a25a894c Rename implicit project settings and deprecate old ones
For #109990
2020-11-04 14:55:28 -08:00
Matt Bierner 64705a07dc Add two new setting for strict null and strict funtion in js/ts that are implicit projects
For #109988

The new `js/ts.implicitProjectConfig.strictNullChecks` and `js/ts.implicitProjectConfig.strictFunctionTypes` control these settings in implict javascript and typescript files that are not contained in a jsconfig or tsconfig project. They are enabled by default for now so that we can collect feedback on them
2020-11-04 14:33:24 -08:00
Matt Bierner 16075cc22a Add insertSpaceAfterOpeningAndBeforeClosingEmptyBrackets formatting setting
Fixes #109190
2020-10-22 22:36:08 -07:00
Alex Ross 924ccf2b63 Include weird timestamp pattern in tsc-watch problem matcher
Fixes #104157
2020-08-07 11:00:41 +02:00
Andrew Branch 4a206a33e5
Change includePackageJsonAutoImports options (#103732) 2020-08-03 14:16:28 -07:00
Andrew Branch 1c8662b8bf
Add setting for package.json auto imports (#103037) 2020-07-22 15:28:22 -07:00
Matt Bierner 5b9fd525fa Minimize shipped tsserver
This takes the shipped size from 9Mb to 2.9mb
2020-07-22 14:52:38 -07:00
Matt Bierner 23c4467ed3
Enable web TS Server (#102990)
This enables running the TS Server on web. This currently requires a special version of the TypeScript server
2020-07-21 16:13:52 -07:00
Martin Aeschlimann 6eeb350744 update typescript-vscode-sh-plugin (fix version check) 2020-06-26 15:26:15 +02:00
Mads Kristensen 860ca64f07
Fix SchemaStore.org URLs
SchemaStore.org now support HTTPS directly instead of relying on the backdoor through *.azurewebsites.net
2020-06-25 10:13:47 -07:00
Andrew Casey 13d3a9358b
Update npm script compile-extension:typescript-language-features (#96320) 2020-04-27 18:38:08 -07:00
Matt Bierner a4597e1905 Enable JS/TS workspace symbol search for all projects
Fixes #11026

Adds a new `typescript.workspaceSymbols.scope` setting that enables searching all known projects when using TS 3.9+
2020-04-24 00:42:55 -07:00
Duncan Walter c7c2301bc2
TS: Add setting to prompt users about workspace tsdk (#95566)
* add a setting to prompt users to switch to tsdk version

* version manager in control

Co-authored-by: Duncan Walter <dwalter@hubspot.com>
2020-04-22 10:57:22 -07:00
Matt Bierner a51f8c4626 Fix missing property description string 2020-04-15 12:46:40 -07:00
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
Martin Aeschlimann 8ef9a03b52 typescript: update typescript-vscode-sh-plugin 2020-04-09 17:24:48 +02:00
Martin Aeschlimann 72df4fc229 update typescript-vscode-sh-plugin 2020-04-07 09:46:21 +02:00
Martin Aeschlimann 40077f5ea9 [typescript][semantic] add library modifier. Fixes #91090 2020-03-27 14:35:22 +01:00
Martin Aeschlimann c65ea4300d update typescript-vscode-sh-plugin 2020-03-13 00:42:20 +01:00
Pine Wu 2362584a62 Revert "Fix #73803"
This reverts commit 67e6aef0c8.
2020-03-06 00:30:14 -08:00
Pine Wu 67e6aef0c8 Fix #73803 2020-03-05 11:34:58 -08: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
Martin Aeschlimann b2e0925ba1 update jsonc-parser 2020-02-21 15:03:33 +01:00
Martin Aeschlimann 12770d4fed update typescript semantic highlighting 2020-02-20 15:35:50 +01:00
Matt Bierner fb622a8b83 Move code action documentation contribution point to come from metadata
For #86788
2020-02-11 11:36:23 -08:00
Martin Aeschlimann 985840db96 update typescript-language-features 2020-02-10 03:27:46 +01:00
Martin Aeschlimann 12509673e9 update typescript-vscode-sh-plugin 2020-02-10 02:25:47 +01: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 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
Alex Ross 8066726b27 Allow both : an . as time separators in tsc problem pattern
Fixes https://github.com/microsoft/vscode/issues/89273
2020-02-04 15:01:09 +01:00
Martin Aeschlimann a6df4b39d9 update typescript-vscode-sh-plugin 2020-01-27 15:03:16 +01:00
Martin Aeschlimann 2b880f2b74 update typescript-vscode-sh-plugin 2020-01-23 17:08:49 +01:00
Martin Aeschlimann 3c930f9214 improve jsx semantic highlighting 2020-01-22 23:16:57 +01:00
Martin Aeschlimann b6e7eaa1bd fix for typescript-vscode-sh-plugin not found 2020-01-17 16:09:44 +01:00