Commit Graph

13830 Commits

Author SHA1 Message Date
Joyce Er
180f909fac Avoid double encoding vscode.dev links (#181002) 2023-04-27 08:48:29 +02:00
Tyler James Leonhardt
738ab7954c Add mode to the notification (#180977)
ref https://github.com/microsoft/vscode/issues/180803#issuecomment-1522947472
2023-04-26 23:16:39 +02:00
Martin Aeschlimann
0af79d4146 [json] update service (#180972) 2023-04-26 22:50:09 +02:00
Peng Lyu
30e62e1bf8 Fix #177405. Treat error as plain text. (#180960) 2023-04-26 19:28:28 +02:00
Matt Bierner
8243eb2556 Fix enumItem labels (#180889)
`javascript.preferences.importModuleSpecifierEnding` and `typescript.preferences.importModuleSpecifierEnding` got out of sync here
2023-04-25 16:14:03 -07:00
Martin Aeschlimann
d53381b114 json/css/html: update dependencies (#180714)
* json/css/html: update dependencies

* update services
2023-04-25 12:29:42 +02:00
Martin Aeschlimann
e04309e92a Default Themes: Rename Experimental to Dark Modern (#180785)
Default Themes: Rename Experimental to Modern
2023-04-25 09:02:17 +02:00
Aaron Munger
af972cc9e6 Merge pull request #180569 from microsoft/aamunger/outputAccessibility
ensure the focus is actually set to the correct output
2023-04-24 16:32:39 -07:00
Matt Bierner
42fbc2f784 Use custom command to open JS doc links (#180737)
Fixes #162507

Prevents incorrect auto transform of the uri
2023-04-24 15:05:14 -07:00
Aaron Munger
7c07ee8949 Merge pull request #180753 from microsoft/aamunger/truncationMessage
fix message formatting
2023-04-24 14:32:47 -07:00
aamunger
53b0058b13 fix message formatting 2023-04-24 14:17:44 -07:00
aamunger
4602cf075a fix class selection query 2023-04-24 14:05:27 -07:00
Tyler James Leonhardt
1714f71c41 Organize Errors in GitHub Auth and make sure no double prompting happens (#180734)
* Organize Errors in GitHub Auth and make sure no double prompting happens

This mostly just moves some strings into variables... but this also fixes the GH Auth side of https://github.com/microsoft/vscode/issues/180697 so you should only be asked once if you want to try a different way to log in.

* add comments
2023-04-24 12:59:03 -07:00
Aaron Munger
3897a9cafb Merge branch 'main' into aamunger/outputAccessibility 2023-04-24 12:53:28 -07:00
Aaron Munger
af8b51ed1e Merge pull request #180738 from microsoft/aamunger/scrollingWhileStreaming
don't stick the scrollbar to the bottom if scrolled up
2023-04-24 12:45:51 -07:00
aamunger
59ef73fea3 check the scroll height of the correct element 2023-04-24 11:23:25 -07:00
Matt Bierner
03540d605f Pick up latest TS for building VS code (#180706) 2023-04-24 20:14:30 +02:00
aamunger
33c124ca7e split out event propagation handling 2023-04-24 08:55:01 -07:00
Aaron Munger
58a76bcee0 Merge branch 'main' into aamunger/outputAccessibility 2023-04-24 08:51:37 -07:00
Benjamin Pasero
3a69e153f6 quick access - allow a Promise<FastAndSlowPicks<T>> and adopt for commands (#180664)
* quick access - allow a `Promise<FastAndSlowPicks<T>>` and adopt for commands

* fix telemetry
2023-04-24 06:41:25 +02:00
Matt Bierner
ab7c32a5b5 Specify codeActionKinds (#180576)
Avoids extra calls and lets us show this info in the UI
2023-04-21 23:46:30 +02:00
Tyler James Leonhardt
bede6ba243 Instrument Microsoft account type (#180573)
So we can see if folks are using MSA or AAD accounts. Also, this cleans up some dead code.

Fixes https://github.com/microsoft/vscode-internalbacklog/issues/3903
2023-04-21 14:23:34 -07:00
aamunger
31cd1ee042 ensure focus is set correctly in output, enable keyboard scrolling for outputs 2023-04-21 13:26:35 -07:00
Kartik Raj
f80485dcdf Merge pull request #179323 from microsoft/kartik/terminal
Add proposed API to specific workspace-specific environment variables via EnvironmentVariableCollection
2023-04-20 15:00:29 -07:00
Kartik Raj
d3b1c67267 Fix terminal integration tests 2023-04-20 20:42:07 +00:00
Anthony Stewart
92d528bbd3 Support copying non-pngs and wait for focus to avoid race conditions (#180322)
* Support copying non-pngs and wait for focus to avoid race conditions

* Remove the temporary canvas element after copying

* Update to place entire canvas creation inside promise.

* Increasing to 5 retries 20ms apart
2023-04-20 18:51:41 +00:00
Kartik Raj
50408e199f Make scope as optional 2023-04-20 18:41:50 +00:00
Benjamin Pasero
1ed110b6be Return resulting URI from commands that save the active editor (fix #178713) (#179091)
* Return resulting `URI` from commands that save the active editor (fix #178713)

* 💄

* address feedback

* change to real proposed API

* cleanup
2023-04-20 18:00:12 +02:00
Ladislau Szomoru
5ea57c3b48 GitHub - leveral repository rules for branch protection (#180416)
* WIP - switching to use repository ruleset information

* Handle includes

* Refactor to add support for exclusion

* Fix exclude condition

* Fix request string

* Add logging

* Update setting description
2023-04-20 16:43:42 +02:00
Matt Bierner
6a9c24cbd0 Update importModuleSpecifierEnding to mention .ts (#180349)
Makes the `importModuleSpecifierEnding` settings mention that it can include `.js` or `.ts`
2023-04-19 20:43:53 +02:00
Matt Bierner
3273501a5a Address drop UX feedback (#180343)
- Reduce margin on button
- Change icon to insert
- Try to align styling to match other editor widgets
- Use capital casing on entries
2023-04-19 19:05:56 +02:00
Matt Bierner
2f07466dfc Allow dropping images into notebook cells to create attachments (#180256)
* Allow dropping images into notebook to create attachments

Fixes #157577

This allows you to drag and drop image files or image data into a notebook cell to create an attachment

As part of this work, I also updated the paste attachment logic so that we can:

- Create multiple attachments in a single operation
- Create attachments of other mime types besides `image/png`
- Create attachments for images that have spaces in the filename

* Also allow pasting uri lists to create attachments

* Fix indent

* Add id
2023-04-19 09:39:04 -07:00
Matt Bierner
4f5c7b295c Allow copying images from image preview (#180269)
Allow copying image from image preview

Fixes #171616

Lets you cmd+c / right click to copy images from the image preview

Also disables the copy/paste options in the other media previews since they don't currently support copying
2023-04-18 19:19:09 -07:00
Matt Bierner
6fefe056e2 Don't show JS/TS loading indicator eagerly (#180265)
This fixes the loading indicator showing when an extension opens an in-memory JS file that doesn't belong to any project
2023-04-18 19:14:49 -07:00
Matt Bierner
f24d50369f Add note on required TS version to setting (#180271) 2023-04-18 19:14:17 -07:00
Connor Peet
f5427eed53 remote: first cut at 'inline' remote resolvers
For web, it seems the most feasible direction for resolvers as we make
existing remote extensions 'web enabled' is to allow them to run in the
extension host. However, in no case will there just be a simple
websocket we can connect to ordinarily.

This PR implements a first cut at 'inline' resolvers where messaging is
done in the extension host. I have not yet tested them on web, where I
think some more wiring is needed to mirror desktop. Also, resolution of
URLs is not in yet. I think for this we'd want to do some service-worker
-based 'loopback' approach to run requests inline in the remote
connection, similar to what I did for tunnels...

Resolvers are not yet run in a dedicated extension host, but I think
that should happen, at least on web where resolvers
will always(?) be 'inline'.

Most of the actual changes are genericizing places where we specified
the "host" and "port" previously into an enum. Additionally, instead of
having a single ISocketFactory, there's now a collection of them, which
the extension host manager registers into when a managed resolution
happens.
2023-04-18 15:54:20 -07:00
Matt Bierner
f6de066b4c Improve labels when dropping resources into markdown files (#180260) 2023-04-18 15:11:38 -07:00
Donald33 Wang
7122771026 Support custom switch-case indentation (#179670) 2023-04-18 17:24:51 +00:00
David Dossett
7f5644cc70 Fix active list background in dark+ v2 (#180170) 2023-04-18 07:50:26 -07:00
Matt Bierner
95396f14db Don't complete jsx tag as function call (#180171)
Fixes #177606
2023-04-17 21:12:28 -07:00
Matt Bierner
b242a8730c Bump JS/TS grammars (#180160) 2023-04-17 21:27:38 +01:00
KapitanOczywisty
06401b39b1 Update PHP grammar from fork (#180100) 2023-04-17 18:42:57 +00:00
Ladislau Szomoru
218b8bd8da SCM - Add document property to expose the text document (#171504) 2023-04-14 13:55:14 +02:00
Joyce Er
5d454b0afc Fix search editor activation (#179924) 2023-04-13 23:50:44 +01:00
Matt Bierner
739b93cce8 Update drop metadata proposal (#179918)
- Makes `dropMimeTypes` required
- Prefix the actual `id` used internally with the extension id
- Allow wildcard mime types, such as `image/*`
2023-04-14 07:59:38 +10:00
Matt Bierner
830d534e27 Allow passing in a DataTransferFile to workspace edit (#175809)
* Allow passing in a `DataTransferItem` to workspace edit

Fixes #175800

Allows you to pass a file `DataTransferItem` to `WorkspaceEdit.createFile`. This lets us avoid transferring the data back and forth to the extension host, and also avoid having to base64 encode and decode it, significantly improving performance for large files

* Take data transfer file instead of data transfer item
2023-04-13 14:08:08 -07:00
Tyler James Leonhardt
3a02bc9de1 Updates from the rename (#179901)
* Updates from the rename

Azure Cloud -> Microsoft Sovereign Cloud

* remove azure once more
2023-04-13 13:01:13 -07:00
Tyler James Leonhardt
b0d7acec38 Logger per auth provider (#179896)
So that we can have an output channel for each.
2023-04-13 19:26:36 +01:00
Matt Bierner
24c44070ae Revert "Nicely format logged objects (#179405)" (#179894)
This reverts commit 5d3f960b67.

Based on comments in https://github.com/microsoft/vscode/pull/179405#issuecomment-1506843399
2023-04-13 18:55:06 +01:00
Ladislau Szomoru
2c7cc4ddea GitHub - do not get branch protection if the user does not have push permission (#179879) 2023-04-13 07:42:12 -07:00