Commit Graph

13830 Commits

Author SHA1 Message Date
Gabriel Staples
b4368691e9 all color themes: treat comment docstrings as comments too (#182162)
* monokai-color-theme.json: treat Python comment string blocks

...as comments too

* Update *all* themes to consider Python block string comments as comments

	modified:   extensions/theme-abyss/themes/abyss-color-theme.json
	modified:   extensions/theme-defaults/themes/dark_vs.json
	modified:   extensions/theme-defaults/themes/hc_black.json
	modified:   extensions/theme-defaults/themes/hc_light.json
	modified:   extensions/theme-defaults/themes/light_vs.json
	modified:   extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json
	modified:   extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json
	modified:   extensions/theme-monokai/themes/monokai-color-theme.json
	modified:   extensions/theme-quietlight/themes/quietlight-color-theme.json
	modified:   extensions/theme-red/themes/Red-color-theme.json
	modified:   extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json
	modified:   extensions/theme-solarized-light/themes/solarized-light-color-theme.json
	modified:   extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-color-theme.json

* Update all changes to use "string.quoted.docstring"

...instead of "string.quoted.docstring.multi.python", per
@aeschli's request here:
https://github.com/microsoft/vscode/pull/182162#issuecomment-1545296640

This way the comment formatting applies to *all* language quoted
docstrings, instead of just to Python.

* bring back python colorize tests

---------

Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
2023-05-15 14:38:43 +02:00
Ladislau Szomoru
b0252732a7 Git - add similarity threshold setting (#182492) 2023-05-15 12:59:33 +02:00
Aaron Munger
89eec20d07 Merge pull request #180715 from microsoft/aamunger/scrollOutputWithKeys
keep scroll related key events in scrollable region
2023-05-12 08:50:44 -07:00
Matt Bierner
9b6b547d2d Fix range when copying empty selection (#182227)
This fixes the range extensions get when copying an empty selection. As part of this, I've also:

- Added tests for this change
- Made the paste parts of the api optional. This is useful when a test provider only wants to add data on copy
2023-05-11 17:31:11 -07:00
Matt Bierner
bf7ca503c2 Fix drop priorities for notebooks (#182209)
For copy paste, I added logic to prefer using the text content if there's both `image/*` and `text/*` content in the clipboard

This however I also incorrectly applied this logic when dropping. In those cases, we instead want to prefer the image data (at least we do in the case of dragging and dropping from VS Code's explorer)
2023-05-11 13:03:28 -07:00
Connor Peet
f76fd4f664 address pr comments 2023-05-11 12:29:42 -07:00
Aaron Munger
9ede543860 Merge branch 'main' into aamunger/scrollOutputWithKeys 2023-05-11 11:07:02 -07:00
Connor Peet
364b84e3ec Merge remote-tracking branch 'origin/main' into connor4312/inline-remote-resolver 2023-05-11 09:55:21 -07:00
Raymond Zhao
075c89881f Bump emmet-helper (#180583) 2023-05-10 16:17:58 -07:00
Aaron Munger
8f92d4b1ef Merge pull request #182117 from microsoft/aamunger/linkDetection
reduce false positive link detection
2023-05-10 15:06:07 -07:00
Peng Lyu
19545fea33 Fix isEmbeddedDiffEditor context key. (#182112)
Fix isInEmbeddedEditor context key.
2023-05-10 14:47:31 -07:00
Matt Bierner
4d38422afe Add priority to paste / drop apis (#182109)
* Add priority to paste / drop apis

Fixes #181886

Replacement for #181453

* Make notebooks prefer text over creating attachments
2023-05-10 14:18:05 -07:00
Aaron Munger
54f486aba5 Merge branch 'main' into aamunger/linkDetection 2023-05-10 14:05:53 -07:00
aamunger
2a7639b907 use look behind so whitespace is not matched 2023-05-10 13:59:44 -07:00
aamunger
5cedfd4b84 reduce false positive link detection 2023-05-10 13:33:14 -07:00
Matt Bierner
8b11c814cc Use better placeholder for move to file (#182108) 2023-05-10 12:56:25 -07:00
aamunger
2e902f0ac5 only listen for scroll events when scrolling is possible 2023-05-10 12:55:14 -07:00
Ladislau Szomoru
b4469cf109 Git - add setting to control default branch name (#181884)
* Initial implementation

* Refactor based on discussions

* More pull request feedback
2023-05-10 20:52:13 +02:00
aamunger
c56c481890 keep scroll related key events in scrollable region 2023-05-10 10:40:30 -07:00
Matt Bierner
ca51a4b04c Add paste as command (#181959)
For #30066

This command shows a quick pick that lets you select how to paste content
2023-05-10 06:17:42 -07:00
Ladislau Szomoru
4182ec739b GitHub - clear branch protection when signing out (#182053) 2023-05-10 06:16:56 -07:00
Martin Aeschlimann
32b8325159 Error while computing completions with snippets (#182007) 2023-05-10 10:14:27 +02:00
Matt Bierner
62bf9e45b6 Pick up latest TS for building VS Code and for builtin JS/TS (#181968) 2023-05-09 17:39:59 -07:00
Michael Lively
8867d20020 Remove ipynb.pasteAsAttachment setting to default to editor.pasteAs.enabled behavior (#181445)
* remove `ipynb.pasteAsAttachment` setting

* change default value to align with package.json

* Revert "remove `ipynb.pasteAsAttachment` setting"

This reverts commit 7471c030af.
2023-05-09 17:25:48 -07:00
Matt Bierner
83c12a2da2 Allow creating multiple files or attachments on paste (#181975) 2023-05-09 17:20:37 -07:00
aamunger
6ddb254475 remove extra tabindex assignment 2023-05-09 15:13:29 -07:00
aamunger
f9ee1a2abc make all builtin output containers focusable 2023-05-09 15:03:58 -07:00
Matt Bierner
a99c29b544 Fix setting reference (#181938) 2023-05-09 21:10:04 +02:00
Connor Peet
2bc8da8327 Merge remote-tracking branch 'origin/main' into connor4312/inline-remote-resolver 2023-05-09 11:48:20 -07:00
Matt Bierner
ab0a574bb9 Don't enable paste to create files in untitled files (#181929) 2023-05-09 20:45:19 +02:00
Ladislau Szomoru
3dd678d2b0 GitHub - update authentication flow for branch protection (#181924)
* GitHub - tweak authentication request

* Add tracing messages
2023-05-09 20:10:00 +02:00
Matt Bierner
8023c8377b Pick up latest markdown language service (#181910) 2023-05-09 18:17:09 +02:00
Ladislau Szomoru
a54b497150 GitHub - refactor branch protection (#181880)
* GitHub - rewrite to use GraphQL instead of REST

* Add paging
2023-05-09 13:14:54 +02:00
Tyler James Leonhardt
f9b4b4c6a3 Pass session down so we can avoid a network call (#181570)
We don't need to fetch the user details when the Auth Session already has the info we need. This PR removes that extraneous web request.

I've also changed the `User-Agent` that we pass to be more specific so we can narrow down any future issues with spamming web requests.

Fixes #173645
2023-05-04 11:59:25 -07:00
Michael Lively
f198ea9177 Check for attachment: in markdown cell renderer (#181462)
actually check if its json attachment style...
2023-05-03 16:51:22 -07:00
Matt Bierner
0447670033 Pick up latest TS for bundled TS and building VS Code (#181438) 2023-05-03 13:13:14 -07:00
Bhavya U
6efb31c7a9 Add temporary nodeJS walkthrough (#181441) 2023-05-03 12:31:11 -07:00
Michael Lively
c621b7adeb Merge pull request #181427 from microsoft/protestant-ptarmigan
Enable paste as widget for notebook cells
2023-05-03 10:07:56 -07:00
Michael Lively
2a6b42a71c enable paste widget for notebook cells 2023-05-03 09:51:29 -07:00
Ladislau Szomoru
1fc3c56ed8 Git - do not show publish branch action button when a tag is checked out (#181402) 2023-05-03 14:43:15 +02:00
Matt Bierner
6384b9bcdf Add setting to disable paste as functionality and paste widget (#181375)
For #30066

This removes the `editor.experimental.pasteActions.enabled` setting in favor of `editor.pasteAs.enabled` (which also defaults to on)
2023-05-03 08:55:06 +02:00
Matt Bierner
37577f6b29 Fix casing on label (#181338) 2023-05-02 17:37:42 +02:00
Don Jayamanne
90bf5a07e4 Check for cell when determining default cell lang (#181079) 2023-05-02 17:05:45 +02:00
Henning Dieterichs
9e0b621db0 Merge pull request #181203 from yshaojun/fix/168110
fix: fix perl bracket pair by adding unbalancedBracketScopes(#168110)
2023-05-02 14:15:53 +02:00
Matt Bierner
11ca8d75a1 Add widget to change how content is pasted (#181290)
* Add widget to change how content is pasted

For #30066

This adds a widget that lets you change how content is pasted if there are multiple ways it could be pasted

To do this, I've made the post drop widget generic and reused it for pasting too

* Update types

* More code deduplication
2023-05-02 09:40:04 +02:00
Matt Bierner
be03603bfe Remove duplicated types (#181267) 2023-05-01 19:15:34 +00:00
yshaojun
e17d67a952 fix: fix perl bracket pair by adding unbalancedBracketScopes(#168110) 2023-04-30 10:11:14 +08:00
Alex Ross
a68448fcb4 Update grammars (#181143) 2023-04-28 17:43:01 +02:00
Ladislau Szomoru
1c59c16f20 GitHub - avoid double prompting when github.branchProtection setting is enabled (#181137) 2023-04-28 08:40:25 -07:00
Benjamin Pasero
71bb936e87 Perf: register a file provider in the ext host to avoid certain roundtrips (#181107)
* register a `file` provider in the ext host

* fix tests

* comments

* address feedback
2023-04-28 17:31:54 +02:00