Matt Bierner
3915fcfe49
Add some links and small cleanup for JS/TS settings
2021-04-28 17:31:18 -07:00
Matt Bierner
a4fdb2c3ad
Make adding overrides an preferred quick fix
2021-04-28 16:43:52 -07:00
Andrew Branch
033f6aac86
Fix missed Previewer.plain call due to adjacent @ts-expect-error ( #121975 )
2021-04-28 14:04:29 -07:00
SteVen Batten
b2c250faeb
fix build
2021-04-23 11:46:52 -07:00
SteVen Batten
6c747e75da
Workspace Trust Prop Changes ( #121779 )
...
* update wording for dialog
* remove soft request prompts
* tweak wording
* use origin
* clean up language for choice prompt
2021-04-23 10:14:09 -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
Matt Bierner
36591a96a0
Rename
2021-04-22 14:57:27 -07:00
SteVen Batten
f9fc28d47d
update ext manifest schema validation and built-in exts
2021-04-21 11:54:42 -07:00
Matt Bierner
3b20d95b3a
Consider updateOpen as signalling that project loading as completed
...
Fixes #119268
2021-04-20 14:23:39 -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
Benjamin Pasero
14981ce89d
tests - enable colors for windows (CI supports it and the new Windows terminal too)
2021-04-19 09:29:20 +02:00
Matt Bierner
2881355f37
Use es2020 as the default target for js/ts implicit projects
...
Fixes https://github.com/microsoft/TypeScript/issues/43596
For users targetting browsers, this should be a reasonable default. We'd like more feedback during insiders for users targetting other environments
2021-04-14 17:26:55 -07:00
Andrew Branch
fa56f6ea3d
Add telemetry for import statement completions ( #121243 )
2021-04-14 09:59:08 -07:00
Alex Ross
5371ac58c4
Include virtual workspace check for task type enablment
2021-04-14 15:04:06 +02:00
SteVen Batten
c5fab4faa3
Boolean Trust State ( #121141 )
...
* move to boolean-based trust state
* update api based on feedback
2021-04-13 12:54:52 -07:00
Matt Bierner
119581fc2a
Use more standard name for shared extension tsconfig
...
This enables Intellisense in the `tsconfig.base` file
2021-04-12 15:58:38 -07:00
Matt Bierner
d5f4e119e0
Use Array.from
's map directly instead of a second call to map
2021-04-12 14:42:39 -07:00
Matt Bierner
84391165c3
Pass in correct project root for notebook cells
2021-04-08 16:49:04 -07:00
Matt Bierner
604b950f0d
Reapply badclient commit
...
Fixes #120781
Add second file this time
2021-04-08 09:09:25 -07:00
Benjamin Pasero
de3aca7a53
Revert "Add badclient telemetry property"
...
This reverts commit e5ef9895b6
.
2021-04-08 08:03:54 +02:00
Matt Bierner
e5ef9895b6
Add badclient telemetry property
...
TS will now notify us if it thinks the error was caused by the client instead of by a server error
2021-04-07 18:49:06 -07:00
Matt Bierner
73ae56b82b
Build with latest TS nightly ( #120690 )
...
* Pick up new TS 4.3
Also tests adding override keywords for extensions as part of #120675
* Update to daily TS and workaround TS 4.3 issue
Works around https://github.com/microsoft/TypeScript/issues/43578
2021-04-07 12:19:05 -07: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
Ladislau Szomoru
648ea3d1e0
Refactor requireWorkspaceTrust to requestWorkspaceTrust
2021-04-01 15:59:04 +02: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
Matt Bierner
a39120ddd1
Add support for JSDoc link tags ( #119358 )
...
* Add support for JSDoc @link tags
Fixes #119357
* Fix unresolved links not rendering
2021-03-29 11:29:52 -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
b9f33fc242
Rename CodeActionKind.Manual -> Invoke
...
For #118084
2021-03-17 16:57:22 -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
ba54c76164
Use TS replacement span if returned
2021-03-09 12:25:18 -08:00
Matt Bierner
e066c74761
Document new fixedChunkSizePolling ts watch mode
2021-03-05 18:49:17 -08:00
Matt Bierner
49d05f998f
Add CodeActionTriggerKind
api proposal
...
For #118084
Fixes #118087
2021-03-03 17:36:07 -08:00
Matt Bierner
2f7438f492
Fix spelling for type
2021-03-03 10:57:24 -08:00
Ladislau Szomoru
14fd07d57a
Workspace trust api feedback
2021-03-03 12:41:22 +01:00
Andrew Branch
400737c5b8
Pass 'data' to completion details request ( #117092 )
2021-03-01 16:04:48 -08:00
Ladislau Szomoru
f18a340066
Use method instead of event
2021-03-01 20:05:30 +01:00
Ladislau Szomoru
73112daff1
Remove extra check that is not needed
2021-03-01 15:13:18 +01:00
Benjamin Pasero
e916637528
tests - enable color output for integration tests
2021-03-01 15:10:15 +01:00
Ladislau Szomoru
8fd4a68845
Factor in workspace trust when switching versions ( #117774 )
2021-03-01 09:09:13 +01:00
Matt Bierner
d89e2e17a5
Allow single line comment after {
for auto indent
...
Fixes #86176
2021-02-26 20:30:02 -08:00
Matt Bierner
8572664c6c
Enable semantic features (such as error reporting) in JS/TS notebook cells
2021-02-26 18:39:21 -08:00
Matt Bierner
a74ebb17cf
Add helper for tracking active js/ts editor
...
Fixes #117813
2021-02-26 18:05:06 -08:00
Matt Bierner
1f567e10f3
Fixing two more cases for promises in conditionals
2021-02-26 17:38:37 -08:00
Matt Bierner
91d73da5e4
Only show infer return type
refactoring when refactorings are requested
...
Fixes #117799
2021-02-26 14:21:24 -08:00
Matt Bierner
192c817fd3
Make jsdoc completions text kind instead of snippet kind
...
Fixes #116941
Snippet completions can be disabled by `editor.snippetSuggestions`. It likely isn't expected that this setting could disable JSDoc completions too
2021-02-18 19:34:12 -08:00
Matt Bierner
3dc8cb1afc
Add setting to enable/disable returns generation in jsdoc
...
Fixes #116282
2021-02-10 12:20:01 -08:00
Shunsuke Iwamoto
76524ef589
Fixes 114236: Add a multi-line comment regex to unIndentedLinePattern ( #114478 )
...
* Add a multi-line comment regex to unIndentedLinePattern
* Add multi-line comment block indentation tests
* Fix a multi-line comment block indentation test
2021-02-09 17:05:21 -08:00
Matt Bierner
a0855b30c7
Use rmdirSync instead of rimraf
...
Fixes #115668
2021-02-04 11:44:33 -08:00
Matt Bierner
06fc252b9a
Prioritize import quickfix over spelling
...
Fixes #115372
If both import and spelling fixes are returned, only the import will be marked as preferred
2021-02-02 12:32:36 -08:00
João Moreno
8bf9b56ade
Merge branch 'joao/extensions'
2021-02-02 12:06:01 +01:00
Matt Bierner
d99c218e9b
Make sure we always apply TS auto imports, even if VS Code applies the completion before it has been resolved
...
Fixes #109439
This introduces a new `ApplyCompletionCommand` that is included on all JS/TS completions, which applies additional parts of the completion (such as auto imports).
This is needed since VS Code will not always wait until `resolveCompletionItem` completes before appling the completion. This causes auto imports to sometimes not work when typing quickly
2021-02-01 18:03:18 -08:00
Matt Bierner
60bb22ddd3
Use test
instead of match
2021-02-01 18:03:18 -08:00
Matt Bierner
7490ac87e1
Fix spelling
2021-02-01 18:03:18 -08:00
Matt Bierner
4ccfa1d019
Fix spelling
2021-02-01 18:03:18 -08:00
Matt Bierner
6f1fbfdd93
Inline object map type
...
It was only being used in one spot, so just inline this type
2021-02-01 18:03:18 -08:00
Matt Bierner
8c3e6cd9ee
Fix spelling
2021-02-01 18:03:18 -08:00
Matt Bierner
4e00f75408
Remove stubs file reference protocol
2021-02-01 18:03:18 -08: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
a56bc0c671
Don't write preferredLocation into workspace settings for find file references
2021-01-26 16:17:14 -08:00
Wahid Shafique
748b2e5a85
Remove #
from typescript deprecation warnings ( #114787 )
...
Remove tags to match standard deprecation warnings (example dceba9ebb7/extensions/html-language-features/package.nls.json (L32)
)
2021-01-25 15:37:58 -08:00
Alexandru Dima
ec1eda0d96
Rename OnEnterRule.oneLineAboveText
to previousLineText
after API call feedback ( #58440 )
2021-01-20 17:31:04 +01:00
Matt Bierner
0faf155028
Disable on enter test
...
This one seems to sometimes fail in ci on windows
2021-01-15 16:07:08 -08:00
Matt Bierner
48b726e39e
Fix regex
...
Star was mistakenly removed in last commit
2021-01-15 14:35:55 -08:00
Matt Bierner
5f6acfb68e
Move jsdoc completion tests to smoke tests
2021-01-15 13:47:58 -08:00
Matt Bierner
800e173c40
Split ts into unit and smoke tests
...
The smoke tests are less reliable as they simulate user actions
Fixes #102075
Fixes #102097
Fixes #102106
2021-01-15 13:32:27 -08:00
Matt Bierner
663532c317
Skipping unreliable test
...
Also makes sure the TS extension is activated for each of them
2021-01-15 10:38:50 -08:00
Matt Bierner
308a4f6a48
Make sure ts extension has loaded before running on-enter tests
...
Fixes #101922
Also adds back a test that was incorrectly removed
2021-01-15 10:38:50 -08:00
Alexandru Dima
3d500ebd8b
Adopt proposed CancellationError
( #93686 )
2021-01-11 17:31:22 +01:00
Matt Bierner
52bdc14cc6
Copy of translated errors for js/ts web build
2021-01-05 12:57:26 -08:00
Matt Bierner
a48ef56fbf
Fix compile for current TS version
2021-01-04 19:25:10 -08:00
Matt Bierner
3ed300eb9d
Add simple browser extension ( #109276 )
...
* Add support for TS's Hierarchical refactorings API
https://github.com/microsoft/TypeScript/pull/41975
* Add simple browser extension
This change adds a new 'simple browser' extension. This extension uses a webview to render webpages directly in VS Code. We plan on using it for optionally previewing local servers in both desktop and codespaces
The browser itself has a number of limitations due to the security around iframes:
- It traps keyboard focus
- We can't detect if a page fails to load
- We can't track the current url of the iframe
* Add experimental alert when the iframe is focused
* Disable events on focus warning
* Hooking up simple browser to opener
2021-01-04 19:06:53 -08:00
Matt Bierner
69dfa670ef
Fix compile error if using older ts version
2021-01-04 17:55:19 -08:00
Matt Bierner
942c3bad6b
Sort contribitions
2021-01-04 16:57:38 -08: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
c3d8989b24
Enable going to stdlib on serverless
2020-12-09 18:20:28 -08:00
Matt Bierner
582f8f6bb0
Bump Static version of web TS version
2020-12-09 18:19:14 -08:00
Matt Bierner
e6a13fb134
Remove work around for TS not supporting paths on its own
2020-12-09 18:19:14 -08:00
Matt Bierner
71fad5aa41
Enable preferConst in TS project
2020-12-09 18:19:14 -08:00
Matt Bierner
1633404883
Remove unused types
2020-12-09 18:19:14 -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
Johannes Rieken
bd40e2555b
remove TS on-type-rename feature, https://github.com/microsoft/vscode/issues/109923 , fyi @mjbvz
2020-11-24 17:58:28 +01:00
Martin Aeschlimann
07d680b7c8
semantic highligting: deprecate member, add method. Fixes microsoft/language-server-protocol#1087
2020-11-23 11:41:12 +01: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
Matt Bierner
b4c0cfb513
Better note current version in TS version UI
...
Fixes #111001
2020-11-19 22:19:32 -08:00
Matt Bierner
59428623f9
Cancel encodedSemanticClassifications-full on resource change
...
For #102161
2020-11-19 14:14:21 -08:00