Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from microsoft:main #70

Open
wants to merge 10,000 commits into
base: main
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
3108f00
Merge pull request #239830 from microsoft/tyriar/238986__item__dirfil…
Tyriar Feb 6, 2025
c74ab84
Remove aria-activedescendant when typing & remove clearFocus code (#2…
TylerLeonhardt Feb 6, 2025
02b0887
Fix build, use mutable disposable (#239858)
meganrogge Feb 6, 2025
1552a63
Fix nb stickyscroll not having outline if outline pane is closed (#23…
Yoyokrazy Feb 6, 2025
2b037b3
Context for ai results requested
osortega Feb 6, 2025
fac0371
fix error message when image not sent to model (#239861)
justschen Feb 6, 2025
c659faf
Merge pull request #239863 from microsoft/osortega/ai-results-request…
osortega Feb 7, 2025
245b24a
do not deal with single tab in disposable (#239865)
meganrogge Feb 7, 2025
94da87e
Remove vscode-dts-region-comments (#239868)
roblourens Feb 7, 2025
7995280
indicate code block index in chat toolbar aria label (#239876)
meganrogge Feb 7, 2025
fe4d6a8
Enable Accept/Disard buttons in inline notebook chat (#239884)
DonJayamanne Feb 7, 2025
467216e
implement basic unit tests for the `ChatInstructionsFileLocator` class
legomushroom Feb 5, 2025
94a0316
move `createFolder` test utility to a common place
legomushroom Feb 5, 2025
af183d6
refactor the `mockFolder` utility into `Mockfilesystem` class
legomushroom Feb 5, 2025
cd84a47
add unit tests with mocked filesystem structure
legomushroom Feb 6, 2025
132ac27
add object/array/string config unit tests for the single-root workspa…
legomushroom Feb 6, 2025
41e4b55
add unit tests for multi-root workspaces
legomushroom Feb 6, 2025
a8f0ee5
cleanup commented out code, improve test utility and unit test result…
legomushroom Feb 6, 2025
e4c1bab
use `createUri()` test utility in unit tests for Windows support
legomushroom Feb 6, 2025
ea1cad7
debt - fix leak with "Manage Extension" action in progress (#239893)
bpasero Feb 7, 2025
86bc5fa
improve `typeCheck` utility (#239890)
legomushroom Feb 7, 2025
ae77c3f
Optimistically show `paste with imports` if TS server takes to long w…
mjbvz Feb 7, 2025
569d694
Use clearer reference
mjbvz Feb 7, 2025
a1d56fd
Revert "workspaceFolder variable substitution in launch.json or tasks…
alexr00 Feb 7, 2025
99bb194
do not collide with common properties (#239908)
sandy081 Feb 7, 2025
a9dd4d3
feat: enable wco on macOS (#239666)
deepak1556 Feb 7, 2025
bb2def3
Have a button in the simple file picker to show/hide hidden files (#2…
alexr00 Feb 7, 2025
86b64aa
files - abandon watcher correlation API proposal (#239906)
bpasero Feb 7, 2025
18edce9
Merge pull request #239899 from mjbvz/rich-angelfish
mjbvz Feb 7, 2025
b348153
storing and restoring should consider multiple editing sessions (#239…
jrieken Feb 7, 2025
d76069d
Fix tab border issues (#239915)
benibenj Feb 7, 2025
5352d8e
dedupe property names for `exthostunresponsive` and `startuptimevarie…
jrieken Feb 7, 2025
25613b5
chore - enable integration tests that require latest insiders (#239918)
jrieken Feb 7, 2025
ef68c2e
fixes https://github.com/microsoft/vscode-copilot/issues/12493 (#239924)
jrieken Feb 7, 2025
2f6002c
Add `scmResourceGroupState` context key (#192009) (#194804)
gjsjohnmurray Feb 7, 2025
b42c7d0
SCM - 🧰 fix disposable leak (#239931)
lszomoru Feb 7, 2025
09a758f
refactor the new inline chat controller so that switching is simpler …
jrieken Feb 7, 2025
40ad35e
Comments panel strips outer markdown element, causing the link handle…
alexr00 Feb 7, 2025
d24c7f0
Normalize . and .. path prefix in terminal suggest
Tyriar Feb 7, 2025
b34eb3f
no double error handling (#239941)
jrieken Feb 7, 2025
8770675
Manage action item disposables in a map
Tyriar Feb 7, 2025
ee457bc
Merge pull request #239945 from microsoft/tyriar/239939
Tyriar Feb 7, 2025
85f4afd
Narrator uses old Tree View title after title change (#239944)
alexr00 Feb 7, 2025
e5dee88
Request completions when backspacing past a slash
Tyriar Feb 7, 2025
28b1230
SCM - 💄 graph node treatment on hover (#239947)
lszomoru Feb 7, 2025
166346d
make ESC also hide and terminal the inline chat session
jrieken Feb 7, 2025
07f4329
reveal widget when response is cancelled, errored, or without code ch…
jrieken Feb 7, 2025
cce1e2d
[email protected]
Tyriar Feb 7, 2025
f8f2609
Merge pull request #239956 from microsoft/joh/left-ladybug
jrieken Feb 7, 2025
c86f251
add `editorStateInformation` variable to `window.title` (#239879)
meganrogge Feb 7, 2025
7a0449a
Fixes #234330
hediet Feb 7, 2025
9dd415f
Merge pull request #239953 from microsoft/tyriar/239948
Tyriar Feb 7, 2025
89481fa
Merge pull request #239943 from microsoft/tyriar/239933
Tyriar Feb 7, 2025
5a42ab4
Merge pull request #239829 from microsoft/aeschli/untitledFilesInEdit
aeschli Feb 7, 2025
6a5991c
Add node as npm script runner (#236967)
xymopen Feb 7, 2025
2ef2dbd
SCM - Briefer titles on SCM views (#230693)
gjsjohnmurray Feb 7, 2025
5e5183a
🔪 DELETE chatVariableResolver API proposal 💀 (#239755)
roblourens Feb 7, 2025
e887b8e
Remove builtin terminal variables (#239871)
roblourens Feb 7, 2025
5e68a2e
Settings / Files: Candidate Guess Encodings (fix #239928) (#239968)
bpasero Feb 7, 2025
facd9ba
Pick up latest TS for building VS Code
mjbvz Feb 7, 2025
87cf1e4
Merge pull request #239999 from mjbvz/head-raccoon
mjbvz Feb 7, 2025
0425a1f
add basic unit test for the `MockFilesystem` test utility
legomushroom Feb 7, 2025
0d8d1c7
refactor unit tests to use commot test utilities
legomushroom Feb 7, 2025
c9e7e1b
improve unit tests to use single validation call and to output a bett…
legomushroom Feb 7, 2025
608fb30
Merge pull request #239958 from microsoft/tyriar/239838
Tyriar Feb 7, 2025
df77130
Fix css rule for notebook selection highlighting (#240004)
Yoyokrazy Feb 7, 2025
9856721
Merge pull request #237910 from simon-id/fix_findmatch_color
osortega Feb 7, 2025
f44ea9d
Fix dropdown context menu retriggering when context menu option is pi…
roblourens Feb 8, 2025
1816f95
Change agent/model pickers to proper dropdowns (#240014)
roblourens Feb 8, 2025
cbbe0be
debug: correct faulty completions logic (#240036)
connor4312 Feb 8, 2025
8c54ad7
Collapse "used references" by default in edits view (#239981)
roblourens Feb 8, 2025
df5a7f8
Refactor, reduce IChatVariablesService to the bare minimum (#240035)
roblourens Feb 8, 2025
335828e
Clean up agent welcome view in very narrow sidebar (#240037)
roblourens Feb 8, 2025
fecab3c
improve prompt files config description (#240038)
legomushroom Feb 8, 2025
18a64b3
Speech extensions starts reading back text to me (fix microsoft/vscod…
bpasero Feb 8, 2025
6dbde2a
leverage Fig's shell parser, add `git` spec (#240001)
meganrogge Feb 8, 2025
b0c12a2
Share code regardless of absolute, relative or tilde completions
Tyriar Feb 8, 2025
4b909f4
Tilde relative path support
Tyriar Feb 8, 2025
40722bb
Fix tilde child tests
Tyriar Feb 8, 2025
e964419
Move simple tilde completion into TerminalCompletionService
Tyriar Feb 8, 2025
0f649c0
Add partial assert helper to better focus suites
Tyriar Feb 8, 2025
130a443
Assert different tidle detail depending on OS
Tyriar Feb 8, 2025
7f07efc
Add more fig specs
Tyriar Feb 8, 2025
a83c032
Remove tilde test from cd spec
Tyriar Feb 9, 2025
031beac
debt - fix treeview leak in action runner (#240116)
bpasero Feb 9, 2025
32a41e1
Quick Search closes after typing a single character when in diff view…
bpasero Feb 9, 2025
d4d0883
Integrate with fig's script generator code
Tyriar Feb 9, 2025
3769b1f
Get custom generators working
Tyriar Feb 9, 2025
06f5342
Pull most of dealing with fig into separate file
Tyriar Feb 9, 2025
148fd51
Move more dealing with fig into figInterface.ts
Tyriar Feb 9, 2025
fc8285a
Pass env in shell context to generators
Tyriar Feb 9, 2025
f13f5f8
Fix `Show User Keybindings' option on Keyboard Shortcuts editor (fix …
gjsjohnmurray Feb 10, 2025
dfac88d
:lipstick: (#240216)
benibenj Feb 10, 2025
0fa095b
title - remove redundant CSS rule (#240217)
bpasero Feb 10, 2025
fc532f1
Update inline completion handling based on modelVersion changes. Also…
benibenj Feb 10, 2025
b888f04
use latest policy watcher package (#240175)
sandy081 Feb 10, 2025
0d8419a
Fix #240115 (#240219)
sandy081 Feb 10, 2025
78e7b6c
Fix minimap overlap with side by side inline suggestions (#240220)
benibenj Feb 10, 2025
ec82ef2
fix #240012 (#240224)
sandy081 Feb 10, 2025
23b9790
Add executable bit to terminal-suggest scripts
Tyriar Feb 10, 2025
c40c7e5
Add brew spec
Tyriar Feb 10, 2025
cbc2077
Merge pull request #240128 from microsoft/tyriar/239515
Tyriar Feb 10, 2025
e3f0fe3
fix #237915 (#239966)
sandy081 Feb 10, 2025
c2e0bcb
Merge pull request #240094 from microsoft/tyriar/239022_tilde_complet…
Tyriar Feb 10, 2025
50f0247
Dont debounce inline completion request after accepting an inline com…
hediet Feb 10, 2025
06483a8
Fallback to processEnv when shell env isn't there
Tyriar Feb 10, 2025
ce523e8
Merge branch 'main' into tyriar/239515__fig_generators
Tyriar Feb 10, 2025
7f0c51d
Don't cancel in progress requests when hiding suggest
Tyriar Feb 10, 2025
2e6f7cb
debt - fix a leak (#240252)
bpasero Feb 10, 2025
397e487
don't request files/folders when on an arg for terminal suggest (#240…
meganrogge Feb 10, 2025
bf4c96a
Window doesn't load when starting multiple instances in parallel (fix…
bpasero Feb 10, 2025
732d06f
Merge pull request #240258 from microsoft/tyriar/240256
Tyriar Feb 10, 2025
015b23f
Merge remote-tracking branch 'origin/main' into tyriar/239515__fig_ge…
Tyriar Feb 10, 2025
22c92fc
Initial implementation (#240264)
lszomoru Feb 10, 2025
f6d7908
fix: context-menu event emitted twice on macOS (#240261)
deepak1556 Feb 10, 2025
238680e
Make GH completions menu discoverable from the 🤖 menu (microsoft/vsco…
bpasero Feb 10, 2025
4d26667
Diff editor: Correct `1 files` to `1 file` (#240092)
silamon Feb 10, 2025
f08f6a9
remove chat response timeout (#240281)
meganrogge Feb 10, 2025
331d7de
uncomment test cases (#240285)
meganrogge Feb 10, 2025
d5f4a77
GitHub Enterprise GHE.com Setting clarity (#240289)
TylerLeonhardt Feb 10, 2025
367e410
Rename ai results contributions
osortega Feb 10, 2025
5e6ed9f
Use inital range for range tracking (fixes partial accept bug)
hediet Feb 10, 2025
3be7869
use latest policy watcher package (#240290)
sandy081 Feb 10, 2025
4d4d7d1
layout - remove need for a `safeGetClientArea` (#240291)
bpasero Feb 10, 2025
d55086d
Merge pull request #240293 from microsoft/osortega/search-panel-contr…
osortega Feb 10, 2025
6449f47
Tweak maxRequests description (#240298)
roblourens Feb 10, 2025
60e2a1a
Skip pwsh SI script when cursor is on a command
Tyriar Feb 10, 2025
4141e04
Fix up showing terminal suggestions
Tyriar Feb 10, 2025
a182f1f
Merge branch 'main' into tyriar/239515__fig_generators
Tyriar Feb 10, 2025
00fc449
add rerun task option for task terminals (#239886)
meganrogge Feb 10, 2025
14b1516
do not allow duplicate flags (#240292)
meganrogge Feb 10, 2025
5dc1876
Bring hasCurrentArg back
Tyriar Feb 10, 2025
0d8104a
Merge remote-tracking branch 'origin/main' into tyriar/239515__fig_ge…
Tyriar Feb 10, 2025
8c7b31f
Merge branch 'main' into tyriar/240249
Tyriar Feb 10, 2025
73f323b
Inject process env to tests
Tyriar Feb 10, 2025
3e5674c
filter out builtin `.` as we provide it in `resolveResources` (#240287)
meganrogge Feb 10, 2025
e41b067
Merge pull request #240251 from microsoft/tyriar/240249
Tyriar Feb 10, 2025
52efdd7
Merge pull request #240135 from microsoft/tyriar/239515__fig_generators
Tyriar Feb 10, 2025
f049bf5
Bump distro (#240315)
lramos15 Feb 11, 2025
3088b6e
Cleanup colors and update border color for tab acceptance (#240308)
benibenj Feb 11, 2025
f0f62e3
error warning when attached image is too large (#240316)
justschen Feb 11, 2025
d10feb6
chat: polish agentic play/pause (#240319)
connor4312 Feb 11, 2025
21525b0
Resolve vim flicker issues to maintain consistent behavior during WH …
Yoyokrazy Feb 11, 2025
1fa9d37
Couldn't create new files (fix #240210) (#240338)
bpasero Feb 11, 2025
9c65a16
Merge branch 'main' into tabFix
jrieken Feb 11, 2025
cbea363
Engineering - update notebook (#240347)
lszomoru Feb 11, 2025
93b77d4
Merge pull request #136572 from ssigwart/tabFix
jrieken Feb 11, 2025
ab74f50
Problems - fix the source column so that it displays the source inste…
lszomoru Feb 11, 2025
7d65305
Parse viewport first (#240353)
alexr00 Feb 11, 2025
d5c18cf
Imporve chat edits accessibility (#240358)
jrieken Feb 11, 2025
afa8e16
Git - handle submodule HEAD file (#240357)
lszomoru Feb 11, 2025
e1f4a86
Fix auto-indenting with tree-sitter (#240364)
alexr00 Feb 11, 2025
b1bce46
plau audio clues when moving across file with chat edits (#240366)
jrieken Feb 11, 2025
1a75418
Extension detail content escapes container (#240134)
nknguyenhc Feb 11, 2025
7f400f9
Merge remote-tracking branch 'origin/main' into tyriar/240268
Tyriar Feb 11, 2025
36d587d
Remove now unneeded suggest integration tests
Tyriar Feb 11, 2025
52aa9c2
Merge pull request #240299 from microsoft/tyriar/240268
Tyriar Feb 11, 2025
56ab4c2
Remove & from simple file dialog button (#240184)
alexr00 Feb 11, 2025
1b0e70a
Merge branch 'main' into tyriar/240270
meganrogge Feb 11, 2025
09aadc6
Merge pull request #240301 from microsoft/tyriar/240270
Tyriar Feb 11, 2025
9c1fb6e
add accessible diff viewer for chat edits (#240383)
jrieken Feb 11, 2025
6272008
Git - add setting for untracked changes soft delete (#240387)
lszomoru Feb 11, 2025
71692ff
Fix build (#240392)
alexr00 Feb 11, 2025
d0eb00a
Bump esbuild from 0.23.0 to 0.25.0 in /extensions (#240294)
dependabot[bot] Feb 11, 2025
fbcfe84
Fix regex test for pwsh shellEnv resolving
Tyriar Feb 11, 2025
28916f3
Use existing heuristic to improve tree sitter viewport parsing (#240382)
alexr00 Feb 11, 2025
8551026
Implements https://github.com/microsoft/vscode-copilot/issues/11599
hediet Feb 11, 2025
750565e
Fixes iconPath issue
hediet Feb 11, 2025
a98fdc4
Add focus highlight for keyboard troubleshooting (#240331)
rebornix Feb 11, 2025
ac95dad
Add shell inline suggestion as top result in terminal suggest
Tyriar Feb 11, 2025
cccd0a3
eng: cherry-pick 1.97.1 fixes (#240409)
connor4312 Feb 11, 2025
a099d4f
Merge pull request #240395 from microsoft/tyriar/240234
Tyriar Feb 11, 2025
8ad7a15
Correct cgmanifest link
Tyriar Feb 11, 2025
0264c2a
Revert "Add node as npm script runner (#236967)" (#240413)
roblourens Feb 11, 2025
3eb279f
Update inline completion on sync
Tyriar Feb 11, 2025
487ebf5
Preserve --disable-extensions in extension host development (#240415)
jakebailey Feb 11, 2025
428eb0c
API - cleanup API proposals (#240418)
lszomoru Feb 11, 2025
9e49e42
add II of "use prompt" command
legomushroom Feb 7, 2025
f131bef
make the use prompt command to prefill active file instead of attachi…
legomushroom Feb 7, 2025
dc77b10
show prompts picker before opening chat widget
legomushroom Feb 8, 2025
36855cc
refactor chat panel/edits commands into one
legomushroom Feb 10, 2025
d17994f
register use prompt commands for every chat context
legomushroom Feb 10, 2025
2b2d682
fix use prompt command action for different chat session types
legomushroom Feb 10, 2025
8f759f8
unify all to a single command, refactor out the ChatAttachPromptAction
legomushroom Feb 11, 2025
7cbcc64
add use prompt command doc comments
legomushroom Feb 11, 2025
78fb787
change command options to receive widget reference instead of its loc…
legomushroom Feb 11, 2025
b127123
remove redundant service arguments
legomushroom Feb 11, 2025
d9d821e
fix localization compilation issue
legomushroom Feb 11, 2025
c379705
Resolve shell env API performance issue for single env approach - bas…
anthonykim1 Feb 11, 2025
751ab05
Refresh inline completion suggestion on sync
Tyriar Feb 11, 2025
dccf6bb
[regression] Most `"configurationDefaults"` settings no longer work o…
bpasero Feb 11, 2025
8c1ac62
Attempt to install extensions in workbench that fail to install from …
joshspicer Feb 11, 2025
3d3cfa5
Merge pull request #240420 from microsoft/tyriar/cgm
Tyriar Feb 11, 2025
3a1d6de
Fix icon in inline completion
Tyriar Feb 11, 2025
723fc36
Merge pull request #240414 from microsoft/tyriar/240408
Tyriar Feb 11, 2025
68abe9f
debug: fix input staying readonly during a restart when repl not visi…
connor4312 Feb 11, 2025
f12fa05
Bump distro (#240429)
lramos15 Feb 11, 2025
4d1bbf9
detect ghost text more broadly (#240427)
meganrogge Feb 11, 2025
f6694e7
use the default prompt files location even for overwritten config value
legomushroom Feb 11, 2025
d5d0226
update config unit tests according to the new logic
legomushroom Feb 11, 2025
25f8fdf
add unit tests for the `config.sourceLocations()` function
legomushroom Feb 11, 2025
25735c0
update unit tests for the
legomushroom Feb 11, 2025
383a0d2
update config doc comments according to the new defaults logic
legomushroom Feb 11, 2025
3e1c26e
improve config UI description
legomushroom Feb 11, 2025
c0341db
make sure kill terminal is the last action for terminal tabs (#240434)
meganrogge Feb 12, 2025
de2904c
Remove sorting of AI results
osortega Feb 12, 2025
75c11f5
Merge pull request #240458 from microsoft/osortega/not-sorting-ai-res…
osortega Feb 12, 2025
8cc3b69
fix: remove working set file limit (#240449)
joyceerhl Feb 12, 2025
56e7943
Support sending image output to chat (#240452)
rebornix Feb 12, 2025
654ac66
SCM - finalize scmResourceGroupState API proposal (#240417)
lszomoru Feb 12, 2025
ab48043
edits - make sure to reveal editor with changes when active editor is…
jrieken Feb 12, 2025
14aaa19
Handle viewport changing for tree sitter (#240482)
alexr00 Feb 12, 2025
f94b270
chore: update to Electron 34 (#237557)
deepak1556 Feb 12, 2025
2ffdbd3
chore - reduce dependency on `IModifiedFileEntry#originalModel` (#240…
jrieken Feb 12, 2025
cde7556
Make tree sitter viewport colorization sync (#240511)
alexr00 Feb 12, 2025
23213fe
Allows inline completion providers to set the debounce time.
hediet Feb 12, 2025
deb13fc
Git - polish discard changes dialogs (#240519)
lszomoru Feb 12, 2025
13658b8
Enable inline completion providers to return inline edits.
hediet Feb 12, 2025
5804460
Adds missing change
hediet Feb 12, 2025
05b004e
Uses squiggles for warnings
hediet Feb 12, 2025
a6d8313
When cursor is before inline edit, tab should accept (#240525)
hediet Feb 12, 2025
29ad3d0
fix: dispose resource labels in chat attachments content part (#240528)
joyceerhl Feb 12, 2025
8f3854f
Hide Inline Edits When Peek Widget Is Visible (#240538)
hediet Feb 12, 2025
e11fe1d
chat: fix text always says generating (#240548)
connor4312 Feb 12, 2025
5f2be64
Bad 'OK' capitalization on 'Add Triggered Breakpoint...' (fix #240490…
gjsjohnmurray Feb 12, 2025
87b60e2
debug: fix Edit Mode option not being available in bp context menu (#…
connor4312 Feb 12, 2025
44c5f1a
Fix #240502 (#240550)
roblourens Feb 12, 2025
d18ee6f
change the config schema to 'object' type only
legomushroom Feb 12, 2025
fb6151b
update prompt files config setting description
legomushroom Feb 12, 2025
e573d0c
add doc comment deprecation notice
legomushroom Feb 12, 2025
6ca1219
chore: bump distro (#240555)
rzhao271 Feb 12, 2025
093e289
Set WH delay to 0 by default (#240554)
Yoyokrazy Feb 12, 2025
42825d6
rename `ChatInstructionsFileLocator` utility and move it under `/comm…
legomushroom Feb 12, 2025
89dc6dd
fix doc comment typos
legomushroom Feb 12, 2025
98cd19f
Fix negated condition (#240566)
rzhao271 Feb 12, 2025
4d0b5ee
rename `IPromptSyntaxService` to more general `IPromptsService`
legomushroom Feb 12, 2025
d3f3cbb
add `listPromptFiles()` function to the prompts service
legomushroom Feb 12, 2025
2f5c63f
improve prompts service unit tests suite name and improve test output
legomushroom Feb 12, 2025
fc342c3
include prompt file source in output of the `listPromptFiles()` method
legomushroom Feb 12, 2025
c52539a
adds observable debug logger (#240559)
hediet Feb 12, 2025
e6f3e3a
Support dynamic tool message after tool runs (#240586)
roblourens Feb 12, 2025
30b9fbe
added notebook widget to view changes inline (#240153)
amunger Feb 12, 2025
3daef56
add `promptsHome` location to user data profile
legomushroom Feb 12, 2025
bd9c5ac
Git - polish the diagnostics information commit hook (#240590)
lszomoru Feb 12, 2025
493698d
Setting to enable, disable shell env api (#240424)
anthonykim1 Feb 12, 2025
d29fe33
Revert "adds observable debug logger" (#240588)
hediet Feb 12, 2025
5cd9d62
Dispose more handlers, ref #239965 (#240594)
rzhao271 Feb 13, 2025
2ddbc99
use global prompts location in the prompts service
legomushroom Feb 12, 2025
95cad8e
Improves observable logging (#240599)
hediet Feb 13, 2025
984a651
warnings in chat attachments when attachments are not valid (#240600)
justschen Feb 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
56 changes: 56 additions & 0 deletions .configurations/configuration.dsc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
# Reference: https://github.com/microsoft/vscode/wiki/How-to-Contribute
properties:
resources:
- resource: Microsoft.WinGet.DSC/WinGetPackage
directives:
description: Install Git
allowPrerelease: true
settings:
id: Git.Git
source: winget
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: npm
directives:
description: Install NodeJS version 20
allowPrerelease: true
settings:
id: OpenJS.NodeJS.LTS
version: "20.14.0"
source: winget
- resource: Microsoft.WinGet.DSC/WinGetPackage
directives:
description: Install Python 3.10
allowPrerelease: true
settings:
id: Python.Python.3.10
source: winget
- resource: Microsoft.WinGet.DSC/WinGetPackage
id: vsPackage
directives:
description: Install Visual Studio 2022 (any edition is OK)
allowPrerelease: true
settings:
id: Microsoft.VisualStudio.2022.BuildTools
source: winget
- resource: Microsoft.VisualStudio.DSC/VSComponents
dependsOn:
- vsPackage
directives:
description: Install required VS workloads
allowPrerelease: true
settings:
productId: Microsoft.VisualStudio.Product.BuildTools
channelId: VisualStudio.17.Release
includeRecommended: true
components:
- Microsoft.VisualStudio.Workload.VCTools
- resource: NpmDsc/NpmInstall
dependsOn:
- npm
directives:
description: Install dependencies
allowPrerelease: true
settings:
PackageDirectory: '${WinGetConfigRoot}\..\'
configurationVersion: 0.2.0
14 changes: 14 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM mcr.microsoft.com/devcontainers/typescript-node:20-bookworm

ADD install-vscode.sh /root/
RUN /root/install-vscode.sh

RUN git config --system codespaces-theme.hide-status 1

USER node
RUN npm install -g node-gyp
RUN NPM_CACHE="$(npm config get cache)" && rm -rf "$NPM_CACHE" && ln -s /vscode-dev/npm-cache "$NPM_CACHE"
RUN echo 'export DISPLAY="${DISPLAY:-:1}"' | tee -a ~/.bashrc >> ~/.zshrc

USER root
CMD chown node:node /vscode-dev && sudo -u node mkdir -p /vscode-dev/npm-cache && sleep inf
65 changes: 38 additions & 27 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,36 @@
# Code - OSS Development Container

[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/vscode)

This repository includes configuration for a development container for working with Code - OSS in a local container or using [GitHub Codespaces](https://github.com/features/codespaces).

> **Tip:** The default VNC password is `vscode`. The VNC server runs on port `5901` and a web client is available on port `6080`.

## Quick start - local

If you already have VS Code and Docker installed, you can click the badge above or [here](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/vscode) to get started. Clicking these links will cause VS Code to automatically install the Dev Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use.

1. Install Docker Desktop or Docker for Linux on your local machine. (See [docs](https://aka.ms/vscode-remote/containers/getting-started) for additional details.)

2. **Important**: Docker needs at least **4 Cores and 6 GB of RAM (8 GB recommended)** to run a full build. If you are on macOS, or are using the old Hyper-V engine for Windows, update these values for Docker Desktop by right-clicking on the Docker status bar item and going to **Preferences/Settings > Resources > Advanced**.
2. **Important**: Docker needs at least **4 Cores and 8 GB of RAM** to run a full build with **9 GB of RAM** being recommended. If you are on macOS, or are using the old Hyper-V engine for Windows, update these values for Docker Desktop by right-clicking on the Docker status bar item and going to **Preferences/Settings > Resources > Advanced**.

> **Note:** The [Resource Monitor](https://marketplace.visualstudio.com/items?itemName=mutantdino.resourcemonitor) extension is included in the container so you can keep an eye on CPU/Memory in the status bar.
> **Note:** The [Resource Monitor](https://marketplace.visualstudio.com/items?itemName=mutantdino.resourcemonitor) extension is included in the container so you can keep an eye on CPU/Memory in the status bar.

3. Install [Visual Studio Code Stable](https://code.visualstudio.com/) or [Insiders](https://code.visualstudio.com/insiders/) and the [Remote - Containers](https://aka.ms/vscode-remote/download/containers) extension.
3. Install [Visual Studio Code Stable](https://code.visualstudio.com/) or [Insiders](https://code.visualstudio.com/insiders/) and the [Dev Containers](https://aka.ms/vscode-remote/download/containers) extension.

![Image of Remote - Containers extension](https://microsoft.github.io/vscode-remote-release/images/remote-containers-extn.png)
![Image of Dev Containers extension](https://microsoft.github.io/vscode-remote-release/images/dev-containers-extn.png)

> **Note:** The Remote - Containers extension requires the Visual Studio Code distribution of Code - OSS. See the [FAQ](https://aka.ms/vscode-remote/faq/license) for details.
> **Note:** The Dev Containers extension requires the Visual Studio Code distribution of Code - OSS. See the [FAQ](https://aka.ms/vscode-remote/faq/license) for details.

4. Press <kbd>Ctrl/Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> or <kbd>F1</kbd> and select **Remote-Containers: Clone Repository in Container Volume...**.
4. Press <kbd>Ctrl/Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> or <kbd>F1</kbd> and select **Dev Containers: Clone Repository in Container Volume...**.

> **Tip:** While you can use your local source tree instead, operations like `yarn install` can be slow on macOS or when using the Hyper-V engine on Windows. We recommend the "clone repository in container" approach instead since it uses "named volume" rather than the local filesystem.
> **Tip:** While you can use your local source tree instead, operations like `npm i` can be slow on macOS or when using the Hyper-V engine on Windows. We recommend using the WSL filesystem on Windows or the "clone repository in container" approach on Windows and macOS instead since it uses "named volume" rather than the local filesystem.

5. Type `https://github.com/microsoft/vscode` (or a branch or PR URL) in the input box and press <kbd>Enter</kbd>.

6. After the container is running, open a web browser and go to [http://localhost:6080](http://localhost:6080), or use a [VNC Viewer](https://www.realvnc.com/en/connect/download/viewer/) to connect to `localhost:5901` and enter `vscode` as the password.

Anything you start in VS Code, or the integrated terminal, will appear here.
6. After the container is running:
1. If you have the `DISPLAY` or `WAYLAND_DISPLAY` environment variables set locally (or in WSL on Windows), desktop apps in the container will be shown in local windows.
2. If these are not set, open a web browser and go to [http://localhost:6080](http://localhost:6080), or use a [VNC Viewer][def] to connect to `localhost:5901` and enter `vscode` as the password. Anything you start in VS Code, or the integrated terminal, will appear here.

Next: **[Try it out!](#try-it)**

Expand All @@ -50,41 +54,42 @@ Next: **[Try it out!](#try-it)**

### Using VS Code with GitHub Codespaces

You may see improved VNC responsiveness when accessing a codespace from VS Code client since you can use a [VNC Viewer](https://www.realvnc.com/en/connect/download/viewer/). Here's how to do it.
You may see improved VNC responsiveness when accessing a codespace from VS Code client since you can use a [VNC Viewer][def]. Here's how to do it.

1. Install [Visual Studio Code Stable](https://code.visualstudio.com/) or [Insiders](https://code.visualstudio.com/insiders/) and the the [GitHub Codespaces extension](https://marketplace.visualstudio.com/items?itemName=GitHub.codespaces).
1. Install [Visual Studio Code Stable](https://code.visualstudio.com/) or [Insiders](https://code.visualstudio.com/insiders/) and the [GitHub Codespaces extension](https://marketplace.visualstudio.com/items?itemName=GitHub.codespaces).

> **Note:** The GitHub Codespaces extension requires the Visual Studio Code distribution of Code - OSS.
> **Note:** The GitHub Codespaces extension requires the Visual Studio Code distribution of Code - OSS.

2. After the VS Code is up and running, press <kbd>Ctrl/Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> or <kbd>F1</kbd>, choose **Codespaces: Create New Codespace**, and use the following settings:
- `microsoft/vscode` for the repository.
- Select any branch (e.g. **main**) - you select a different one later.
- Choose **Standard** (4-core, 8GB) as the size.

4. After you have connected to the codespace, you can use a [VNC Viewer](https://www.realvnc.com/en/connect/download/viewer/) to connect to `localhost:5901` and enter `vscode` as the password.
- `microsoft/vscode` for the repository.
- Select any branch (e.g. **main**) - you can select a different one later.
- Choose **Standard** (4-core, 8GB) as the size.

> **Tip:** You may also need change your VNC client's **Picture Quaility** setting to **High** to get a full color desktop.
3. After you have connected to the codespace, you can use a [VNC Viewer][def] to connect to `localhost:5901` and enter `vscode` as the password.

5. Anything you start in VS Code, or the integrated terminal, will appear here.
> **Tip:** You may also need change your VNC client's **Picture Quality** setting to **High** to get a full color desktop.

4. Anything you start in VS Code, or the integrated terminal, will appear here.

Next: **[Try it out!](#try-it)**

## Try it!
## Try it

This container uses the [Fluxbox](http://fluxbox.org/) window manager to keep things lean. **Right-click on the desktop** to see menu options. It works with GNOME and GTK applications, so other tools can be installed if needed.

> **Note:** You can also set the resolution from the command line by typing `set-resolution`.
> **Note:** You can also set the resolution from the command line by typing `set-resolution`.

To start working with Code - OSS, follow these steps:

1. In your local VS Code client, open a terminal (<kbd>Ctrl/Cmd</kbd> + <kbd>Shift</kbd> + <kbd>\`</kbd>) and type the following commands:

```bash
yarn install
bash scripts/code.sh
```
```bash
npm i
bash scripts/code.sh
```

2. After the build is complete, open a web browser or a [VNC Viewer](https://www.realvnc.com/en/connect/download/viewer/) to connect to the desktop environment as described in the quick start and enter `vscode` as the password.
2. After the build is complete, open a web browser or a [VNC Viewer][def] to connect to the desktop environment as described in the quick start and enter `vscode` as the password.

3. You should now see Code - OSS!

Expand All @@ -94,8 +99,14 @@ Next, let's try debugging.

2. Go to your local VS Code client, and use the **Run / Debug** view to launch the **VS Code** configuration. (Typically the default, so you can likely just press <kbd>F5</kbd>).

> **Note:** If launching times out, you can increase the value of `timeout` in the "VS Code", "Attach Main Process", "Attach Extension Host", and "Attach to Shared Process" configurations in [launch.json](../.vscode/launch.json). However, running `scripts/code.sh` first will set up Electron which will usually solve timeout issues.
> **Note:** If launching times out, you can increase the value of `timeout` in the "VS Code", "Attach Main Process", "Attach Extension Host", and "Attach to Shared Process" configurations in [launch.json](../../.vscode/launch.json). However, running `./scripts/code.sh` first will set up Electron which will usually solve timeout issues.

3. After a bit, Code - OSS will appear with the debugger attached!

Enjoy!

### Notes

The container comes with VS Code Insiders installed. To run it from an Integrated Terminal use `VSCODE_IPC_HOOK_CLI= /usr/bin/code-insiders .`.

[def]: https://www.realvnc.com/en/connect/download/viewer/
1 change: 0 additions & 1 deletion .devcontainer/cache/.gitignore

This file was deleted.

15 changes: 0 additions & 15 deletions .devcontainer/cache/before-cache.sh

This file was deleted.

28 changes: 0 additions & 28 deletions .devcontainer/cache/build-cache-image.sh

This file was deleted.

21 changes: 0 additions & 21 deletions .devcontainer/cache/cache-diff.sh

This file was deleted.

14 changes: 0 additions & 14 deletions .devcontainer/cache/cache.Dockerfile

This file was deleted.

23 changes: 0 additions & 23 deletions .devcontainer/cache/restore-diff.sh

This file was deleted.

14 changes: 14 additions & 0 deletions .devcontainer/devcontainer-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"features": {
"ghcr.io/devcontainers/features/desktop-lite:1": {
"version": "1.0.8",
"resolved": "ghcr.io/devcontainers/features/desktop-lite@sha256:e7dc4d37ab9e3d6e7ebb221bac741f5bfe07dae47025399d038b17af2ed8ddb7",
"integrity": "sha256:e7dc4d37ab9e3d6e7ebb221bac741f5bfe07dae47025399d038b17af2ed8ddb7"
},
"ghcr.io/devcontainers/features/rust:1": {
"version": "1.1.3",
"resolved": "ghcr.io/devcontainers/features/rust@sha256:aba6f47303b197976902bf544c786b5efecc03c238ff593583e5e74dfa9c7ccb",
"integrity": "sha256:aba6f47303b197976902bf544c786b5efecc03c238ff593583e5e74dfa9c7ccb"
}
}
}
57 changes: 35 additions & 22 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,41 @@
{
"name": "Code - OSS",

// Image contents: https://github.com/microsoft/vscode-dev-containers/blob/master/repository-containers/images/github.com/microsoft/vscode/.devcontainer/base.Dockerfile
"image": "mcr.microsoft.com/vscode/devcontainers/repos/microsoft/vscode:branch-main",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/desktop-lite:1": {},
"ghcr.io/devcontainers/features/rust:1": {}
},
"containerEnv": {
"DISPLAY": "" // Allow the Dev Containers extension to set DISPLAY, post-create.sh will add it back in ~/.bashrc and ~/.zshrc if not set.
},
"overrideCommand": false,
"runArgs": [ "--init", "--security-opt", "seccomp=unconfined"],

"settings": {
"resmon.show.battery": false,
"resmon.show.cpufreq": false
"privileged": true,
"mounts": [
{
"source": "vscode-dev",
"target": "/vscode-dev",
"type": "volume"
}
],
"postCreateCommand": "./.devcontainer/post-create.sh",
"customizations": {
"vscode": {
"settings": {
"resmon.show.battery": false,
"resmon.show.cpufreq": false
},
"extensions": [
"dbaeumer.vscode-eslint",
"EditorConfig.EditorConfig",
"GitHub.vscode-pull-request-github",
"ms-vscode.vscode-github-issue-notebooks",
"ms-vscode.vscode-selfhost-test-provider",
"mutantdino.resourcemonitor"
]
}
},

// noVNC, VNC
"forwardPorts": [6080, 5901],
"portsAttributes": {
"6080": {
Expand All @@ -23,18 +47,7 @@
"onAutoForward": "silent"
}
},

"extensions": [
"dbaeumer.vscode-eslint",
"mutantdino.resourcemonitor"
],

// Optionally loads a cached yarn install for the repo
"postCreateCommand": ".devcontainer/cache/restore-diff.sh",

"remoteUser": "node",

"hostRequirements": {
"memory": "6gb"
"memory": "9gb"
}
}
Loading