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

Joh/swift cicada #11

Merged
merged 2,163 commits into from
Aug 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2163 commits
Select commit Hold shift + click to select a range
703a1c3
primary button
meganrogge Mar 28, 2024
72250a8
debug: treat 'subtle' frames like 'deemphasized' (#209078)
connor4312 Mar 29, 2024
86bf11f
debug: fix resizing window makes debug toolbar disappear (#209075)
connor4312 Mar 29, 2024
e2dc70e
trees: always handle an twistie events by the tree if it changes coll…
connor4312 Mar 29, 2024
7955ac4
Merge pull request #209080 from microsoft/merogge/first-code
meganrogge Mar 29, 2024
960217f
Merge pull request #209037 from microsoft/tyriar/208640
Tyriar Mar 29, 2024
4df13e9
Adjust scheme and authority of URIs in remote terminals
Tyriar Mar 29, 2024
c204429
Also check file scheme
Tyriar Mar 29, 2024
ac44885
Apply environment when selecting default profile as well
Tyriar Mar 29, 2024
d03962b
Add ... suffix to new with profile actions
Tyriar Mar 29, 2024
a795db5
Add git bash to shell integration description
Tyriar Mar 29, 2024
dbb3b7b
Merge pull request #209106 from microsoft/tyriar/208655
Tyriar Mar 29, 2024
84d8f1b
Merge pull request #209105 from microsoft/tyriar/204167_3
Tyriar Mar 29, 2024
1a2b9b5
Merge pull request #209103 from microsoft/tyriar/208572
Tyriar Mar 29, 2024
cea6ec5
Merge pull request #209107 from microsoft/tyriar/git_bash
Tyriar Mar 29, 2024
9d98da3
Remove notebook view from focus order & accessibility tree when hidde…
kycutler Mar 29, 2024
f7fb22d
Use IconSelectBox to change terminal icon, remove dupes
Tyriar Mar 29, 2024
e553c6b
testing: fix resolveHandler not called on item replacement (#209121)
connor4312 Mar 29, 2024
3648e8f
remove experimental setting (#209126)
amunger Mar 29, 2024
a00e2b9
Remove terminal change icon tests as they required quick pick
Tyriar Mar 29, 2024
e483d84
chore: bump katex (#209141)
rzhao271 Mar 29, 2024
c3bd42e
get request to show up in chat view
meganrogge Mar 29, 2024
9cc4e15
Update src/vs/workbench/contrib/terminalContrib/chat/browser/terminal…
meganrogge Mar 29, 2024
2af438e
Update src/vs/workbench/contrib/terminalContrib/chat/browser/terminal…
meganrogge Mar 29, 2024
b4f1a54
Also fire an event when focus & selection goes to empty (#209145)
TylerLeonhardt Mar 29, 2024
e4595ad
Merge pull request #209147 from microsoft/merogge/request
meganrogge Mar 29, 2024
904d030
Port followups candidate to main (#209203)
roblourens Mar 31, 2024
5bb0f37
Remove 'session' from transfer API (#209204)
roblourens Mar 31, 2024
dcfb696
Fix typo in editor.action.startDebugTextMate title (#209160)
grgar Apr 1, 2024
af3e721
Merge branch 'main' into tyriar/199964
Tyriar Apr 1, 2024
511929f
Remove other icon smoke tests
Tyriar Apr 1, 2024
7d788e7
Limit drop disablement to just http(s) uris (#209240)
mjbvz Apr 1, 2024
eb10cea
Introduce ITerminalConfigurationService
Tyriar Apr 1, 2024
714d939
Docs
Tyriar Apr 1, 2024
8317e8a
Adopt terminal config service in terminalActions
Tyriar Apr 1, 2024
53e5c75
Adopt terminal config service in terminalEditor
Tyriar Apr 1, 2024
2edf458
Adopt terminal config service in more files
Tyriar Apr 1, 2024
868b8ef
Move more to terminal config service
Tyriar Apr 1, 2024
f7937cc
Remove ITerminalConfigHelper.config completely
Tyriar Apr 1, 2024
73d8189
Init TerminalConfigurationService
Tyriar Apr 1, 2024
343c37d
Test for TerminalConfigurationService
Tyriar Apr 1, 2024
ade21d7
Pick up editor action command descriptions (#209259)
TylerLeonhardt Apr 1, 2024
a73b0e7
Fix leak in terminalConfigHelper.test
Tyriar Apr 1, 2024
bf9f038
Merge pull request #209118 from microsoft/tyriar/199964
Tyriar Apr 1, 2024
6394792
Include Command Description in `_getAllCommands` (#209260)
TylerLeonhardt Apr 1, 2024
4e62462
Move wsl recommendations out of config helper and into contribution
Tyriar Apr 1, 2024
63d95c1
Fix tests
Tyriar Apr 1, 2024
24d832b
Fix XtermTerminal.test
Tyriar Apr 1, 2024
e441414
Merge branch 'tyriar/181900' into tyriar/181900_2
Tyriar Apr 1, 2024
57847a5
fix #209167
meganrogge Apr 1, 2024
8460b73
Enable dnd in chat references list (#209263)
mjbvz Apr 1, 2024
8a1fc77
Fix tests for reals this time
Tyriar Apr 1, 2024
9d6ef1b
Merge branch 'tyriar/181900' into tyriar/181900_2
Tyriar Apr 1, 2024
be1efcc
Pick up latest TS for building VS Code (#209265)
mjbvz Apr 1, 2024
fd5ac01
Merge pull request #209258 from microsoft/tyriar/181900
Tyriar Apr 1, 2024
9223965
fix #207946
meganrogge Apr 1, 2024
e349ecf
move a line
meganrogge Apr 1, 2024
ee037b3
Merge branch 'main' into tyriar/181900_2
Tyriar Apr 1, 2024
3dc6e72
clean up
meganrogge Apr 1, 2024
156db3e
Remove xterm triggerDataEvent private API usage
Tyriar Apr 1, 2024
34bc7d4
Make types more correct
Tyriar Apr 1, 2024
28d47a5
Remove _onData access
Tyriar Apr 1, 2024
cb83e0b
Don't use stateful regex (#209268)
mjbvz Apr 1, 2024
b6afddd
Remove _onKey access
Tyriar Apr 1, 2024
cdbe485
Remove _charSizeService access
Tyriar Apr 1, 2024
081be73
Merge branch 'main' into merogge/alpha-sounds
meganrogge Apr 1, 2024
ad545a1
Remove unneeded lint suppression
Tyriar Apr 1, 2024
64aa2c3
Remove unused event emitter type
Tyriar Apr 1, 2024
7733a6a
Merge pull request #209261 from microsoft/tyriar/181900_2
Tyriar Apr 1, 2024
ee7fe25
Remove hack for canvas to force a refresh
Tyriar Apr 1, 2024
e4f949b
Merge pull request #209270 from microsoft/merogge/qp-bug
meganrogge Apr 1, 2024
b85a659
Merge pull request #209266 from microsoft/merogge/alpha-sounds
meganrogge Apr 1, 2024
e169401
testing: fix testing-coverage-lineHeight being marked as a color (#20…
connor4312 Apr 1, 2024
16a39cb
De-select output for `focus cell container` commands (#209269)
amunger Apr 1, 2024
596ee31
Remove xterm canvas renderer from fallback logic
Tyriar Apr 1, 2024
8bdc74c
Merge pull request #209277 from microsoft/tyriar/209275
Tyriar Apr 1, 2024
aac8155
Merge pull request #209271 from microsoft/tyriar/xterm_private
Tyriar Apr 1, 2024
79b01c4
get insert kb to work in input editor
meganrogge Apr 1, 2024
87780c0
eng: fix CSS tooling crashes watch task (#209278)
connor4312 Apr 1, 2024
563b84c
just add as secondary
meganrogge Apr 1, 2024
d50528e
Update src/vs/workbench/contrib/terminalContrib/chat/browser/terminal…
meganrogge Apr 1, 2024
7b73cfd
Update src/vs/workbench/contrib/terminalContrib/chat/browser/terminal…
meganrogge Apr 1, 2024
af1d328
Remove isMeasurement (#209287)
lramos15 Apr 1, 2024
ae2fe7d
fix #146972
meganrogge Apr 1, 2024
a8bd133
Migrate rest of TerminalConfigHelper to TerminalConfigurationService
Tyriar Apr 1, 2024
68e5b46
Replace label computer ctor in test
Tyriar Apr 1, 2024
79f5671
Remove safari check to use webgl
Tyriar Apr 1, 2024
f533074
Merge pull request #209298 from microsoft/tyriar/safari
Tyriar Apr 1, 2024
20b0d08
remove extra width from aiButton (#209295)
andreamah Apr 1, 2024
76b2bf2
Fix hygiene
Tyriar Apr 1, 2024
ed8a695
Merge pull request #209283 from microsoft/merogge/kb-term
meganrogge Apr 1, 2024
7b2d027
use disposableStore
meganrogge Apr 1, 2024
68746b0
Merge pull request #209294 from microsoft/tyriar/181900_3
Tyriar Apr 1, 2024
2c3efed
Merge pull request #209292 from microsoft/merogge/tab-action-bar
meganrogge Apr 1, 2024
8f218ce
notebook output performance (#209282)
amunger Apr 1, 2024
093332e
Fix test failures due to private mangling
Tyriar Apr 1, 2024
b3d006c
Merge pull request #209306 from microsoft/tyriar/build
Tyriar Apr 1, 2024
f69d220
Add `windowOptions` to xtermTerminal
mmastrac Apr 2, 2024
166a042
SCM - Add support for filtering history item changes (#209327)
lszomoru Apr 2, 2024
78cfeea
Support Shift+Up/Down keys in notebook outputs (#209314)
DonJayamanne Apr 2, 2024
a163748
Fixes #209324
hediet Apr 2, 2024
fba040a
Fix opening folders in file picker (#209330)
alexr00 Apr 2, 2024
8d1ecd7
SCM - 💄 API cleanup (#209339)
lszomoru Apr 2, 2024
3289aba
fix 208710 (#209343)
sandy081 Apr 2, 2024
1c26e87
Fixes #209251
hediet Apr 2, 2024
dd0b11c
add and use ChatInputPart#contentHeight (#209345)
jrieken Apr 2, 2024
6e62970
SCM - use custom hover for history item statistics (#209346)
lszomoru Apr 2, 2024
4830b7f
Merge branch 'main' into terminal-middle-paste
Tyriar Apr 2, 2024
4fe8f60
Move onto ITerminalConfigurationService
Tyriar Apr 2, 2024
6f989eb
Bring terminal editor's mousedown handling closer in line with tabbed…
Tyriar Apr 2, 2024
dc4e8af
Use switch, allow Linux to paste regular clipboard too
Tyriar Apr 2, 2024
bf235f6
Improve setting description
Tyriar Apr 2, 2024
bd05f05
Merge pull request #136633 from marvinthepa/terminal-middle-paste
Tyriar Apr 2, 2024
325e4c7
docs: categorize chat-list-background as other (#209303)
rzhao271 Apr 2, 2024
8ef2d1d
Merge pull request #209310 from mmastrac/main
Tyriar Apr 2, 2024
c532d61
Merge branch 'main' into merogge/signal-line
meganrogge Apr 2, 2024
998047c
Add experimental support for updating markdown links on copy/paste (#…
mjbvz Apr 2, 2024
ecf7466
use abstract class
meganrogge Apr 2, 2024
b41113d
swap lines
meganrogge Apr 2, 2024
5f95ec9
implement as classes
meganrogge Apr 2, 2024
b063b26
Logging navigible container events for debug
hsfzxjy Apr 2, 2024
309c199
make isPresent optional
meganrogge Apr 2, 2024
12f9694
Update src/vs/workbench/contrib/accessibilitySignals/browser/accessib…
meganrogge Apr 2, 2024
dd138b1
Log only when config is enabled
hsfzxjy Apr 2, 2024
3e49f23
Enable terminal smoke tests on desktop
Tyriar Apr 2, 2024
e2d3f25
Merge pull request #209357 from hsfzxjy/widget-navigation-tracing-200259
meganrogge Apr 2, 2024
7a523c2
exthost: fix profiling not working (#209142)
connor4312 Apr 2, 2024
32d5ad5
Inline completion refactoring (#209011)
hediet Apr 2, 2024
b695a62
Fix leaks in terminalTabsList
Tyriar Apr 2, 2024
5aa71eb
Fix leaks in terminalInstance dnd
Tyriar Apr 2, 2024
3501dd8
Fix leaks in hoverService
Tyriar Apr 2, 2024
eca9ac7
Support any OSC link scheme
Tyriar Apr 2, 2024
2d0c615
Merge pull request #209370 from microsoft/tyriar/207462
Tyriar Apr 2, 2024
c78ef14
Merge pull request #209371 from microsoft/tyriar/207459
Tyriar Apr 2, 2024
ac37049
Merge pull request #209372 from microsoft/tyriar/207454
Tyriar Apr 2, 2024
ea29ccb
SCM - add history item hover (#209373)
lszomoru Apr 2, 2024
225665b
allow input elements to handle keydown events (#209362)
amunger Apr 2, 2024
e02d142
Merge pull request #209359 from microsoft/tyriar/146811_smoke
Tyriar Apr 2, 2024
e4947ea
fix #191745
meganrogge Apr 2, 2024
8bd293e
move declaration near usage
meganrogge Apr 2, 2024
a86f13b
chore: increase timeout of Linux x64 job (#209387)
rzhao271 Apr 2, 2024
5e402a4
Allow via notification
Tyriar Apr 2, 2024
e153ed5
Fix search text input issues (#209365)
andreamah Apr 2, 2024
5e0acce
fix issue
meganrogge Apr 3, 2024
44fbf7f
Merge pull request #209376 from microsoft/tyriar/176812
Tyriar Apr 3, 2024
1813b35
Merge pull request #209385 from microsoft/merogge/glob-tasks
meganrogge Apr 3, 2024
9328959
api comment (#209410)
jrieken Apr 3, 2024
250ab2f
render inline chat change decoration also inside minimap (#209414)
jrieken Apr 3, 2024
a270992
Merge pull request #209066 from microsoft/merogge/signal-line
meganrogge Apr 3, 2024
62b5a4c
remove restore on profile item (#209416)
sandy081 Apr 3, 2024
e773c56
Engineering - update suppression file (#209419)
lszomoru Apr 3, 2024
03ef5ff
chore - add `IInstantiationService#dispose` (#209421)
jrieken Apr 3, 2024
5c00163
Support setting keyboard shortcut from Action Item Context Menu (#209…
benibenj Apr 3, 2024
d296f93
Introduce hoverDelegate2.ts
Tyriar Apr 3, 2024
506cc76
Set base delegate, fix imports
Tyriar Apr 3, 2024
bfb5b77
ICustomHover -> IUpdatableHover
Tyriar Apr 3, 2024
9906083
Remove duplicate/deprecated IHoverAction
Tyriar Apr 3, 2024
c6a7ca7
Move updatable hover interfaces to hover.ts
Tyriar Apr 3, 2024
85fb8cb
Create IHoverDelegate2.setUpdatableHover
Tyriar Apr 3, 2024
815dcf0
Add deprecated annotations to old functions
Tyriar Apr 3, 2024
f93eb1c
Move statusBarItem onto new hoverService.setupUpdatableHover
Tyriar Apr 3, 2024
21cf21e
More adoption, improve deprecated messages
Tyriar Apr 3, 2024
89e578d
Remove all usage of setupCustomHover from base/
Tyriar Apr 3, 2024
c1169fb
Update majority of workbench references to setupCustomHover
Tyriar Apr 3, 2024
fc5dd80
Remove all remaining usages of setupCustomHover
Tyriar Apr 3, 2024
947bb16
Remove updatableHoverWidget.ts
Tyriar Apr 3, 2024
b127f77
Stub null hover service in some tests
Tyriar Apr 3, 2024
b5f97ae
Fix null access (#209449)
mjbvz Apr 3, 2024
de571f4
Update tab bar colors (#209451)
benibenj Apr 3, 2024
ba3e5f9
Fix output vsbuffer transfer via workspace edit. (#209358)
rebornix Apr 3, 2024
e8e027a
fix #209091 (#209454)
sandy081 Apr 3, 2024
cf00384
support `vscode.ChatResponseTextEditPart` and support rendering of te…
jrieken Apr 3, 2024
31c538e
chore: add new colours (#209457)
rzhao271 Apr 3, 2024
6b91b70
use disposableStore
meganrogge Apr 3, 2024
80a9d24
Add CLI cleaning regex (#209462)
lramos15 Apr 3, 2024
69193b5
fix #152476
meganrogge Apr 3, 2024
9efebbe
Enable copy paste api in scm input (#209466)
mjbvz Apr 3, 2024
fb7f833
fix: trim end of matched link (#209469)
rzhao271 Apr 3, 2024
23860e9
dispose saved text model with wrong view type (#209461)
amunger Apr 3, 2024
5d92626
Merge branch 'main' into tyriar/204965
Tyriar Apr 3, 2024
b3bbaec
fix #184454
meganrogge Apr 3, 2024
81cfeac
rm empty line
meganrogge Apr 3, 2024
feb823c
Merge pull request #209442 from microsoft/tyriar/204965
Tyriar Apr 3, 2024
efee188
web: add didResolveRemoteAuthority function for embedders (#209480)
connor4312 Apr 3, 2024
f756507
Merge pull request #209477 from microsoft/merogge/default-task
meganrogge Apr 3, 2024
9c892db
Merge pull request #209467 from microsoft/merogge/splits
meganrogge Apr 3, 2024
0f13661
Merge pull request #209464 from microsoft/merogge/disposable-store
meganrogge Apr 3, 2024
4ad77cc
Clean up some tests, fix some leaks
Tyriar Apr 3, 2024
8558da1
cli: allow public port forwarding via tunnels (#209489)
connor4312 Apr 3, 2024
7a71cd1
fix #209487
meganrogge Apr 3, 2024
34dc36c
Merge pull request #209495 from microsoft/merogge/speech-signal
meganrogge Apr 3, 2024
951c1b7
chore: increase compile job timeout (#209497)
rzhao271 Apr 3, 2024
26edf9c
cli: add progress for extraction (#209499)
connor4312 Apr 4, 2024
98ce5b3
Convert Workspace Cell Edit dto to renderer types (#209498)
rebornix Apr 4, 2024
641eb4c
Hide notebook chat actions from f1. (#209501)
rebornix Apr 4, 2024
1e765ad
Fix injected services becoming public by mistake (#209513)
mjbvz Apr 4, 2024
c71d1c0
Merge branch 'main' into joh/overseas-cougar
jrieken Apr 4, 2024
5b1b744
- extract `IChatListItemRendererOptions`
jrieken Apr 4, 2024
87050ca
Add descriptions for commands #209511 (#209524)
benibenj Apr 4, 2024
c91cf1b
fix https://github.com/microsoft/vscode/issues/209441 (#209526)
jrieken Apr 4, 2024
8012a40
Add color item for sidebar title background (#209528)
benibenj Apr 4, 2024
ae1a6d6
Count replies, not comments (#209527)
alexr00 Apr 4, 2024
76301af
:lipstick:
jrieken Apr 4, 2024
15528c7
Fix tab indicator size when tab action left and tab sizing fixed/shri…
benibenj Apr 4, 2024
140f3b2
removing issue reporter API (#209125)
justschen Apr 4, 2024
a52d0d9
Merge pull request #209529 from microsoft/joh/overseas-cougar
jrieken Apr 4, 2024
4c71a4e
fix #207101
meganrogge Apr 4, 2024
2b010cf
move audio cue config to new file
meganrogge Apr 4, 2024
3f0dbfe
Merge pull request #209544 from microsoft/merogge/cue-fix
meganrogge Apr 4, 2024
68257f6
rename, move things around
meganrogge Apr 4, 2024
9713bb3
add accessibility signals to l8n
meganrogge Apr 4, 2024
50b145a
Merge branch 'main' into merogge/accessibility-cleanup
meganrogge Apr 4, 2024
32b2476
add scope
meganrogge Apr 4, 2024
86c3607
accessibility signals
meganrogge Apr 4, 2024
7ac8152
more descriptions
meganrogge Apr 4, 2024
8cf1fbe
Merge pull request #209546 from microsoft/merogge/accessibility-cleanup
meganrogge Apr 4, 2024
e16e41e
Add todos for shellIntegration API from API sync
Tyriar Apr 4, 2024
77fdf27
add discard description
meganrogge Apr 4, 2024
f4806a2
Update src/vs/workbench/contrib/terminalContrib/chat/browser/terminal…
meganrogge Apr 4, 2024
cb6942b
Merge pull request #209548 from microsoft/tyriar/api_todos
Tyriar Apr 4, 2024
a32d57b
Merge pull request #209550 from microsoft/merogge/descrs
meganrogge Apr 4, 2024
b4378df
fix #207813 (#209553)
sandy081 Apr 4, 2024
ae91138
Add eslint rule for potentially unsafe disposable patterns (#209555)
mjbvz Apr 4, 2024
125e308
Bump @typescript-eslint versions (#209516)
mjbvz Apr 4, 2024
7a623b3
Fix frontmatter line map (#209556)
mjbvz Apr 4, 2024
10b819f
Fix typo from old code (#209557)
Yoyokrazy Apr 4, 2024
0203900
Add command description (#209558)
mjbvz Apr 4, 2024
3c28146
testing: remove back compat shims for coverage API (#209559)
connor4312 Apr 4, 2024
6813d7c
chore: update to rust 1.77 (#209563)
connor4312 Apr 4, 2024
180710a
debug: add some command descriptions (#209570)
connor4312 Apr 4, 2024
74fff91
Pick up latest md language service (#209574)
mjbvz Apr 4, 2024
9ccaf9d
Merge pull request #209490 from microsoft/tyriar/test_leak
Tyriar Apr 4, 2024
95885d7
feat. add a menu item 'expand-select' to expand subtree in search vie…
pagict Apr 4, 2024
a64b518
Strongly typed instead of `any` for nb config (#209493)
DonJayamanne Apr 4, 2024
07e1e8b
Update borders on template reuse. (#209577)
rebornix Apr 4, 2024
0da22a2
fix: deprecate unity-launch flag (#209471)
rzhao271 Apr 4, 2024
8098a78
Clean up chat submit actions (#209578)
roblourens Apr 4, 2024
09c9ded
Make all remote chat agents sticky (#209579)
roblourens Apr 4, 2024
8a4163d
fix: add open user settings JSON description (#209583)
rzhao271 Apr 4, 2024
d6eba9b
Fix leak (#209588)
roblourens Apr 5, 2024
884c8a6
Set role on lightbulb widget (#209592)
mjbvz Apr 5, 2024
ab4e8b5
Add tree sticky scroll colors based on view location fixes #205441
benibenj Apr 5, 2024
2fa8d0c
Merge pull request #209604 from microsoft/benibenj/governing-caterpillar
benibenj Apr 5, 2024
8cae0f0
Expose comments input as text document (#209512)
mjbvz Apr 5, 2024
ed4edd6
Adding command descriptions for TF-IDF search (#209612)
aiday-mar Apr 5, 2024
dce0137
debt - `arrays.ts#tail` can return `undefined` (#209631)
jrieken Apr 5, 2024
344682b
Fixing typo in description (#209630)
aiday-mar Apr 5, 2024
927ff5b
Bump distro (#209636)
alexr00 Apr 5, 2024
47fc35d
add `StableEditorBottomScrollState` so that inline chat moves lines o…
jrieken Apr 5, 2024
2ae11b1
chore - remove arrays#tail, use `array.at(-1)` instead
jrieken Apr 5, 2024
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
  •  
  •  
  •  
37 changes: 37 additions & 0 deletions .eslintplugin/code-no-potentially-unsafe-disposables.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import * as eslint from 'eslint';

/**
* Checks for potentially unsafe usage of `DisposableStore` / `MutableDisposable`.
*
* These have been the source of leaks in the past.
*/
export = new class implements eslint.Rule.RuleModule {

create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
function checkVariableDeclaration(inNode: any) {
context.report({
node: inNode,
message: `Use const for 'DisposableStore' to avoid leaks by accidental reassignment.`
});
}

function checkProperty(inNode: any) {
context.report({
node: inNode,
message: `Use readonly for DisposableStore/MutableDisposable to avoid leaks through accidental reassignment.`
});
}

return {
'VariableDeclaration[kind!="const"] NewExpression[callee.name="DisposableStore"]': checkVariableDeclaration,

'PropertyDefinition[readonly!=true][typeAnnotation.typeAnnotation.typeName.name=/DisposableStore|MutableDisposable/]': checkProperty,
'PropertyDefinition[readonly!=true] NewExpression[callee.name=/DisposableStore|MutableDisposable/]': checkProperty,
};
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import * as eslint from 'eslint';
import { TSESTree } from '@typescript-eslint/experimental-utils';

/**
* Enforces that all parameter properties have an explicit access modifier (public, protected, private).
*
* This catches a common bug where a service is accidentally made public by simply writing: `readonly prop: Foo`
*/
export = new class implements eslint.Rule.RuleModule {

create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener {
function check(inNode: any) {
const node: TSESTree.TSParameterProperty = inNode;

// For now, only apply to injected services
const firstDecorator = node.decorators?.at(0);
if (
firstDecorator?.expression.type !== 'Identifier'
|| !firstDecorator.expression.name.endsWith('Service')
) {
return;
}

if (!node.accessibility) {
context.report({
node: inNode,
message: 'Parameter properties must have an explicit access modifier.'
});
}
}

return {
['TSParameterProperty']: check,
};
}
};
11 changes: 7 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@
],
"local/code-translation-remind": "warn",
"local/code-no-native-private": "warn",
"local/code-parameter-properties-must-have-explicit-accessibility": "warn",
"local/code-no-nls-in-standalone-editor": "warn",
"local/code-no-potentially-unsafe-disposables": "warn",
"local/code-no-standalone-editor": "warn",
"local/code-no-unexternalized-strings": "warn",
"local/code-must-use-super-dispose": "warn",
Expand Down Expand Up @@ -154,14 +156,11 @@
"src/vs/editor/contrib/codeAction/test/browser/codeActionModel.test.ts",
"src/vs/editor/test/common/services/languageService.test.ts",
"src/vs/editor/test/node/classification/typescript.test.ts",
"src/vs/editor/test/node/diffing/defaultLinesDiffComputer.test.ts",
"src/vs/editor/test/node/diffing/fixtures.test.ts",
"src/vs/platform/configuration/test/common/configuration.test.ts",
"src/vs/platform/extensions/test/common/extensionValidator.test.ts",
"src/vs/platform/opener/test/common/opener.test.ts",
"src/vs/platform/registry/test/common/platform.test.ts",
"src/vs/platform/remote/test/common/remoteHosts.test.ts",
"src/vs/platform/telemetry/test/browser/1dsAppender.test.ts",
"src/vs/platform/workspace/test/common/workspace.test.ts",
"src/vs/platform/workspaces/test/electron-main/workspaces.test.ts",
"src/vs/workbench/api/test/browser/mainThreadConfiguration.test.ts",
Expand Down Expand Up @@ -859,7 +858,11 @@
}, // TODO@layers
"tas-client-umd", // node module allowed even in /common/
"vscode-textmate", // node module allowed even in /common/
"@vscode/vscode-languagedetection" // node module allowed even in /common/
"@vscode/vscode-languagedetection", // node module allowed even in /common/
{
"when": "hasBrowser",
"pattern": "@xterm/xterm"
} // node module allowed even in /browser/
]
},
{
Expand Down
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ensure the API police is aware of changes to the vscode-dts file
# this is only about the final API, not about proposed API changes
src/vscode-dts/vscode.d.ts @jrieken @mjbvz
15 changes: 11 additions & 4 deletions .github/workflows/deep-classifier-runner.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
name: "Deep Classifier: Runner"

permissions:
id-token: write
contents: read

on:
schedule:
- cron: 0 * * * *
Expand All @@ -9,7 +14,13 @@ on:
jobs:
main:
runs-on: ubuntu-latest
environment: main
steps:
- uses: azure/login@v2
with:
client-id: ${{ vars.AZURE_CLIENT_ID }}
tenant-id: ${{ vars.AZURE_TENANT_ID }}
allow-no-subscriptions: true
- name: Checkout Actions
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -47,8 +58,4 @@ jobs:
with:
configPath: classifier
allowLabels: "info-needed|new release|error-telemetry|*english-please|translation-required"
tenantId: ${{secrets.TOOLS_TENANT_ID}}
clientId: ${{secrets.TOOLS_CLIENT_ID}}
clientSecret: ${{secrets.TOOLS_CLIENT_SECRET}}
clientScope: ${{secrets.TOOLS_CLIENT_SCOPE}}
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ npm-debug.log
Thumbs.db
node_modules/
.build/
.vscode/extensions/**/out/
extensions/**/dist/
/out*/
/extensions/**/out/
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.17.1
18.19.0
1 change: 0 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"editorconfig.editorconfig",
"github.vscode-pull-request-github",
"ms-vscode.vscode-github-issue-notebooks",
"ms-vscode.vscode-selfhost-test-provider",
"ms-vscode.extension-test-runner",
"jrieken.vscode-pr-pinger"
]
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 78 additions & 0 deletions .vscode/extensions/vscode-selfhost-test-provider/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"name": "vscode-selfhost-test-provider",
"displayName": "VS Code Selfhost Test Provider",
"description": "Test provider for the VS Code project",
"enabledApiProposals": [
"testObserver"
],
"engines": {
"vscode": "^1.88.0"
},
"contributes": {
"commands": [
{
"command": "selfhost-test-provider.updateSnapshot",
"title": "Update Snapshot",
"icon": "$(merge)"
}
],
"menus": {
"commandPalette": [
{
"command": "selfhost-test-provider.updateSnapshot",
"when": "false"
}
],
"testing/message/context": [
{
"command": "selfhost-test-provider.updateSnapshot",
"group": "inline@1",
"when": "testMessage == isSelfhostSnapshotMessage && !testResultOutdated"
}
],
"testing/message/content": [
{
"command": "selfhost-test-provider.updateSnapshot",
"when": "testMessage == isSelfhostSnapshotMessage && !testResultOutdated"
}
]
}
},
"icon": "icon.png",
"version": "0.4.0",
"publisher": "ms-vscode",
"categories": [
"Other"
],
"activationEvents": [
"workspaceContains:src/vs/loader.js"
],
"workspaceTrust": {
"request": "onDemand",
"description": "Trust is required to execute tests in the workspace."
},
"main": "./out/extension.js",
"prettier": {
"printWidth": 100,
"singleQuote": true,
"tabWidth": 2,
"arrowParens": "avoid"
},
"repository": {
"type": "git",
"url": "https://github.com/microsoft/vscode.git"
},
"license": "MIT",
"scripts": {
"compile": "gulp compile-extension:vscode-selfhost-test-provider",
"watch": "gulp watch-extension:vscode-selfhost-test-provider"
},
"devDependencies": {
"@types/node": "18.x"
},
"dependencies": {
"@jridgewell/trace-mapping": "^0.3.25",
"ansi-styles": "^5.2.0",
"istanbul-to-vscode": "^2.0.1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/

import { IstanbulCoverageContext } from 'istanbul-to-vscode';

export const coverageContext = new IstanbulCoverageContext();
29 changes: 29 additions & 0 deletions .vscode/extensions/vscode-selfhost-test-provider/src/debounce.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/

/**
* Debounces the function call for an interval.
*/
export function debounce(duration: number, fn: () => void): (() => void) & { clear: () => void } {
let timeout: NodeJS.Timeout | void;
const debounced = () => {
if (timeout !== undefined) {
clearTimeout(timeout);
}

timeout = setTimeout(() => {
timeout = undefined;
fn();
}, duration);
};

debounced.clear = () => {
if (timeout) {
clearTimeout(timeout);
timeout = undefined;
}
};

return debounced;
}
Loading
Loading