Commit Graph

1181 Commits

Author SHA1 Message Date
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
Johannes Rieken
793b679ebc adopt latest API 2020-11-17 10:09:17 +01:00
Johannes Rieken
fd610cfa5f Merge branch 'master' into joh/tsQuickRename 2020-11-17 09:05:38 +01: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
Johannes Rieken
ea3b8da874 also quick rename type parameters, ignore declare only things 2020-11-16 12:05:39 +01:00
Johannes Rieken
e6bb245b6c use predefined constants 2020-11-16 11:59:14 +01:00
Johannes Rieken
b851bf9ca0 Merge branch 'master' into joh/tsQuickRename 2020-11-13 13:55:23 +01:00
Johannes Rieken
8f82b02a4c Merge pull request #109842 from microsoft/joh/98228
Use new completion label for imported modules
2020-11-13 08:39:03 +01:00
Johannes Rieken
165e49bfe8 use rename info instead of highlight info 2020-11-12 21:07:59 +01:00
Johannes Rieken
ce7bd67d46 explore on-type-rename for TypeScript 2020-11-12 20:47:50 +01:00
Matt Bierner
17c29f0b99 Add support for web TS Server logging over postMessage
For https://github.com/microsoft/TypeScript/pull/39656
2020-11-11 17:39:17 -08:00
Matt Bierner
afcfc97316 Fix method spelling 2020-11-11 17:39:17 -08:00
Matt Bierner
7c6994d1b5 Use toOpenedFilePath to ensure we don't ask TS server for projectInfo if a file is not open 2020-11-11 17:39:17 -08:00
Matt Bierner
fb93010aa2 Make sure we use the same path normalizer in a few additional places in buffer sync 2020-11-11 17:39:17 -08:00
Matt Bierner
805aa7e8f4 Make ResourceMap treat the same file with different scheme as different
Fixes #110435
2020-11-11 17:39:17 -08:00
Suman B K
4247b296eb Including ` as part of foldEndPairCharacters (#110108)
* Including '`' as part of foldEndPairCharacters

* Removed test code, which was unrelated
2020-11-09 18:02:38 -08:00
Matt Bierner
d04956f6a7 Switches the 'Fix all' quick fix provider to use resolveCodeAction (#107853)
Made while testing #106410
2020-11-09 18:00:46 -08:00
Matt Bierner
451c2b61d3 Specify type of CodeLensProvider instead of using casts 2020-11-05 12:19:55 -08:00
Matt Bierner
9f4737fa3f Exclude definitions from js/ts references code lens
Fixes #98274
2020-11-05 12:17:18 -08:00
Benjamin Pasero
ac2ca0b539 typescript - fix nls issue
//cc @mjbvz
2020-11-05 10:49:22 +01:00
Matt Bierner
4a54027a82 Disable rename after refactoring in interactive playground
Fixes #75137
2020-11-04 18:06:39 -08:00
Matt Bierner
81a25a894c Rename implicit project settings and deprecate old ones
For #109990
2020-11-04 14:55:28 -08:00
Matt Bierner
ff7cc33236 Use objects.equals for comparing configuration objects 2020-11-04 14:33:24 -08:00
Matt Bierner
05fee0cf3d Extract implictProjectConfiguration class 2020-11-04 14:33:24 -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
c38a12c26c Quote jsconfig and tsconfig in setting 2020-11-04 14:33:24 -08:00
Matt Bierner
8141dcf29a Extract adjustFoldingEnd 2020-11-04 13:19:38 -08:00