Commit graph

13649 commits

Author SHA1 Message Date
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
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
Ladislau Szomoru f972a31938
GitHub - restore/save branch protection to global state (#179855) 2023-04-13 14:43:12 +02:00
Ladislau Szomoru 45a44d1786
Git/GitHub - Branch protection refactoring (#179848)
Branch protection refactoring
2023-04-13 10:14:33 +01:00
Martin Aeschlimann 05bb1775dc
Set new default theme (#179812) 2023-04-12 15:45:39 -07:00
Matt Bierner 26ccce443f
Enable renaming of matching jsx tags (#179806)
Fixes #159534

Uses the new linked editing api to make f2 rename matching jsx tags
2023-04-12 21:42:59 +02:00
Joyce Er 3cf3ef8897
Encode slash-delimited branch and file segments in links (#179801) 2023-04-12 21:14:24 +02:00
Ladislau Szomoru bb7570f4f8
GitHub - branch protection provider (#179789)
* Initial implementation

* Update default setting state
2023-04-12 17:42:51 +02:00
Alex Ross 0e8b1c8e09
Confusing Bash/Shell syntax highlighting (#179775)
Fixes #179749
2023-04-12 14:33:55 +01:00
Alex Ross d77e53a2b3
Update shellscript grammar (#179758) 2023-04-12 13:39:51 +01:00
Ladislau Szomoru a1eb9e2b48
Git - implement branch protection provider (#179752)
* Branch protection using settings is working

* Revert extension api changes

* Refactor code
2023-04-12 08:48:29 +01:00
Matt Bierner 8db8e63b44
Pick up latest TS for building VS Code (#179714) 2023-04-11 14:50:16 -07:00
Matt Bierner d6f23042e3
Log uri as a string instead of as an object (#179721) 2023-04-11 14:19:12 -07:00
Matt Bierner e9262678fa
Add drop feedback UX (#179434)
For #179430

Adds two new UX components:

- An inline progress icon shown when a drop operation takes over 500ms. This replaces the notification. You can click on it to cancel the drop

- Post drop, a drop feedback icon that lets you drop the file in a different way. This lets you drop the file as plain text for instance instead of as a markdown link
2023-04-11 13:48:24 -07:00
Matt Bierner 5d3f960b67
Nicely format logged objects (#179405)
Follow up oin https://github.com/microsoft/vscode/issues/176479#issuecomment-1498597499

This uses JSON.stringify to format objects that are logged. Currently they are all printed as a single line without any whitespace
2023-04-11 13:04:44 -07:00
易良 e9baeb3608
fix: typos (#179581) 2023-04-11 09:20:38 -07:00
Matt Bierner a58d9dc08f
Update linked editing file name (#179643)
Also make sure we are enabled in all syntax files
2023-04-10 15:55:44 -07:00
Matt Bierner 06659f0ba9
Add stubs for jsx linked editing (#176279)
* Add stubs jsx linked editing

For https://github.com/microsoft/TypeScript/issues/51832

* Update for new TS changes

* Update to finalized protocol
2023-04-10 23:32:09 +01:00
Joyce Er 812f3f5fc4
Insert <video> tag for shift+mp4 into .md (#179489)
* Insert `<video>` tag for `shift`+mp4 into .md

* Simpler drop text
2023-04-10 15:30:34 -07:00
Matt Bierner 58d7595154
Pick up TS 5.0.4 (#179618)
For #179616
2023-04-10 10:54:54 -07:00
Raymond Zhao 8e89509008
Fix notebook-renderers compile error (#179506) 2023-04-10 10:01:12 -07:00
Brandon Waterloo [MSFT] f9d14d68fb
Support sovereign/custom clouds in microsoft authentication provider (#178725) 2023-04-07 16:38:38 -07:00
Matt Bierner e0ebb7b740
Make script blocks respect js/ts.implicitProjectConfig.strictNullChecks (#179333)
Fixes #179331

Also fixes experimental decorators for script blocks
2023-04-06 15:59:44 +02:00
Joyce Er 413f98e499
Implicitly activate only main language contribs (#179287) 2023-04-06 10:12:17 +02:00
Andrew Branch 117668153b
[typescript-language-features] Support replacing Go to Definition with Go to Source Definition by preference (#178840)
* Add preference for replacing Go to Definition with Go to Source Definition

* Support replacing Go to Definition with Go to Source Definition by preference

* Predicate call on TS version
2023-04-05 21:17:01 +00:00
Matt Bierner fff3860de9
Always use vscode-textCodeBlock-background in rendered markdown (#179313)
Use vscode-textCodeBlock-background in rendered markdown

Fixes #179219
2023-04-05 23:02:22 +02:00
Aaron Munger 8d69fc71b7
Merge branch 'main' into aamunger/toggleScrolling 2023-04-05 12:40:48 -07:00
Michael Lively ff55375896
Add support for attachment cleaning on notebook save (#179178)
* support for `onWillSave` + debounce rework

* dispose of delayer + tabs not spaces...

* adjust for API naming change, rm proposal refs
2023-04-05 11:44:52 -07:00
aamunger c21478e430
small padding 2023-04-05 11:08:09 -07:00
aamunger c60f757130
updated truncation comment styling 2023-04-05 11:08:08 -07:00
aamunger d722674f02
updated comment 2023-04-05 11:08:06 -07:00