Johannes Rieken
5a4e23fb31
update names
2019-11-01 17:03:56 +01:00
Johannes Rieken
36c3e8756c
adjust API proposal to account for N files being created, moved, and deleted
2019-11-01 16:50:56 +01:00
Johannes Rieken
2d71cb4cdf
adopt proposed API changes in TS land
2019-11-01 12:38:46 +01:00
Johannes Rieken
14e2178b7f
fix #83762
2019-10-31 16:02:34 +01:00
Matt Bierner
c80fb1b771
Be more resilient when checking if we have an opened jts/ts buffer
...
Fixes #83338
`TextDocument` lifetime may not match that of the the user facing editors. However the JS/TS extension was assuming that it did. Introduce a `ensureHasBuffer` function that can open a buffer if vscode knows about a textdocument but no `onDidOpenTextDocument` has been fired for it yet
2019-10-29 14:26:20 -07:00
Benjamin Pasero
ca22de4b17
debt - bump node.d.ts dependency in extensions to 12.x (part of #82514 )
2019-10-28 08:11:47 +01:00
Matt Bierner
ba4a504ffe
Use a case-insensitive map for store pending buffer operations
...
Fixes #82634
2019-10-24 18:12:21 -07:00
Matt Bierner
951f891b23
Extend disposable
2019-10-24 16:58:12 -07:00
Matt Bierner
73fbb9da18
Use proper map
2019-10-24 16:58:12 -07:00
Matt Bierner
b66a2571fd
Use Disposable
2019-10-24 16:58:12 -07:00
Matt Bierner
73b3fc4348
Support performing a js/ts workspace symbol search when focused on the left side of a git view
...
Fixes #75107
2019-10-24 14:55:54 -07:00
Matt Bierner
c4868f4cc8
Use includes
2019-10-24 14:55:54 -07:00
Matt Bierner
520fafc07b
Use includes
2019-10-24 14:55:54 -07:00
Matt Bierner
8c0e291789
Make message for update imports better match vscode's message
...
For #76268
2019-10-23 18:04:22 -07:00
Matt Bierner
639ccb016f
Batch renames for js/ts
...
Fixes #76268
2019-10-23 17:57:41 -07:00
Matt Bierner
e4478d363d
Batch renames
2019-10-23 17:57:41 -07:00
Matt Bierner
6290c3ff0b
Use file name to determine if we are in a ts file or not
...
Using a textdocument to know if we are in a typescript vs a javascript document is ideal but comes at a performance cost. In most cases we can use the file name safely
2019-10-23 17:57:40 -07:00
Matt Bierner
645a178353
Use destructured paramters
2019-10-23 17:57:40 -07:00
Matt Bierner
01f429e8c9
Don't show progress indicator when we know for sure we are not doing a js/ts rename
2019-10-23 17:57:40 -07:00
Matt Bierner
46d2224d8b
Remove gating for TS versions < 2.4
...
Telemetry shows that these old TS versions have very low usage (in the tens across the many, many js/ts users). Given this, it now makes sense to remove the extra gating/checks required to support these old versions
2019-10-23 17:57:40 -07:00
Matt Bierner
0d0a574164
Normalizing names
2019-10-23 17:57:40 -07:00
Matt Bierner
45cd966a16
Use VS Code's fs instead of node
2019-10-23 17:57:40 -07:00
Matt Bierner
611fd60cd4
Make sure we update js/ts diagnostics when the visible editors change
...
Changes in one document may cause errors in other, not yet visible docs. Make sure we update the diagnostics when another file becomes visible to handle that case
2019-10-23 17:57:40 -07:00
Matt Bierner
587061a8fc
?. operator
2019-10-22 14:57:25 -07:00
Matt Bierner
07f1939ba2
Log where the typescript version is coming from
2019-10-22 11:25:14 -07:00
Matt Bierner
802d09f5f2
Use double quotes for user facing strings
2019-10-22 11:25:14 -07:00
Matt Bierner
de0cd31fa5
Rename versionString to displayName to make it clearer how this version is used
2019-10-22 11:25:14 -07:00
Matt Bierner
96a5151f7a
Workaround for TS not being able to handle interactive playground resource with query parameters in uri
...
Fixes #81059
Fixes #82419
The interactive playground generates uris that have query paramters. This causes the TS Server to crash. The workaround here is make sure the file paths we give to TS Server don't have query paramters but the ones we work with locally do
2019-10-21 18:26:40 -07:00
Matt Bierner
ed53e86205
Make sure the syntax and semantic servers don't get out of sync
...
If one server fails for a command but the other does not, we are in an inconsistent state. Treat this as a fatal error
2019-10-21 18:26:40 -07:00
Matt Bierner
ab4e86df8d
Fix time range for restart detection
2019-10-21 18:26:40 -07: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
Matt Bierner
693ffb4d57
Default maxTsServerMemory to 3GB
2019-10-18 16:14:48 -07:00
Matt Bierner
2a46387970
Use test instead of match
2019-10-18 16:14:48 -07:00
Matt Bierner
035963b1f1
Add basic pinning test for jsdoc completions
...
For #82874
2019-10-18 16:14:48 -07:00
Matt Bierner
5aec74ad3b
Treat errors on updateOpen as non-recoverable
...
Any errors on `updateOpen` will cause the TS Server to become out of sync. This change alerts us to errors that happen in `updateOpen`. We then restart the ts server
2019-10-17 21:52:02 -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
a967c8ada3
Move js/ts json validation to js/ts language features extension
...
Fixes #73336
2019-10-04 15:31:21 -07:00
Matt Bierner
e5efdb4b4b
Expand documentation for typescript.tsdk
...
Fixes #42243
2019-09-26 17:29:13 -07:00
Ron Buckton
340f7beef9
Fix to allow for optional chain token in completions ( #81402 )
2019-09-25 11:13:58 -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
Matt Bierner
67e37803b7
Add telemtry property for local TS version
...
We are interested in understanding which TS versions user have enabled in their workspaces, and how widely these diverge from these the workspace version
2019-09-12 17:27:28 -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
22db92f71b
Add telemetry event when TS server is spawned
...
This is needed to help us better understand which TS versions users have enabled in their workspaces
2019-09-11 18:03:14 -07:00
Matt Bierner
f4524551e9
Remove gating for TS < 2.2.0 features
...
Based on telemetry, these versions have pretty much zero usage in the past 30 days. Removing the extra gating code since we can now assume users are on TS > 2.2.
2019-09-11 15:50:50 -07:00
Matt Bierner
7a00ddf9f8
Format files for 3.6
...
Fixes #80118
2019-09-02 21:29:05 -06:00
Matt Bierner
8891b85518
Fix caption parsing
...
For #79704
- Use regexp
- Handle unix line endings
- Don't highlight caption as part of code block
2019-08-27 14:49:19 -07:00
Andrew Liu
86723e74b6
fix for 79704 - support for @example <caption>
2019-08-26 17:19:36 -07:00
Matt Bierner
91e99652cd
Fix js/ts refactorings
2019-08-26 14:51:26 -07:00