Skip to content

Commit c39ce2f

Browse files
author
Jackson Kearl
committed
Add when conditions. Closes microsoft#96600.
Fixup outdated saved search.
1 parent 151c443 commit c39ce2f

2 files changed

Lines changed: 19 additions & 9 deletions

File tree

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1-
# Query: \\w+\\?\\..+![(.[]
1+
# Query: \\w+\\?\\.\\w+![(.[]
22
# Flags: RegExp
33
# ContextLines: 2
4+
5+
2 results - 2 files
6+
47
src/vs/base/browser/ui/tree/asyncDataTree.ts:
5-
270 } : undefined,
6-
271 isChecked: options.ariaProvider!.isChecked ? (e) => {
7-
272: return options.ariaProvider?.isChecked!(e.element as T);
8-
273 } : undefined
9-
274 },
8+
243 } : () => 'treeitem',
9+
244 isChecked: options.accessibilityProvider!.isChecked ? (e) => {
10+
245: return !!(options.accessibilityProvider?.isChecked!(e.element as T));
11+
246 } : undefined,
12+
247 getAriaLabel(e) {
13+
14+
src/vs/workbench/contrib/debug/browser/debugConfigurationManager.ts:
15+
254
16+
255 return debugDynamicExtensions.map(e => {
17+
256: const type = e.contributes?.debuggers![0].type!;
18+
257 return {
19+
258 label: this.getDebuggerLabel(type)!,

src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { URI } from 'vs/base/common/uri';
1010
import { ServicesAccessor } from 'vs/editor/browser/editorExtensions';
1111
import { ToggleCaseSensitiveKeybinding, ToggleRegexKeybinding, ToggleWholeWordKeybinding } from 'vs/editor/contrib/find/findModel';
1212
import { localize } from 'vs/nls';
13-
import { MenuId, MenuRegistry, SyncActionDescriptor } from 'vs/platform/actions/common/actions';
13+
import { MenuId, MenuRegistry, SyncActionDescriptor, registerAction2, Action2 } from 'vs/platform/actions/common/actions';
1414
import { CommandsRegistry } from 'vs/platform/commands/common/commands';
1515
import { ContextKeyExpr, IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
1616
import { SyncDescriptor } from 'vs/platform/instantiation/common/descriptors';
@@ -209,11 +209,11 @@ registry.registerWorkbenchAction(
209209

210210
registry.registerWorkbenchAction(SyncActionDescriptor.from(RerunSearchEditorSearchAction,
211211
{ mac: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KEY_R } }, ContextKeyExpr.and(SearchEditorConstants.InSearchEditor)),
212-
'Search Editor: Search Again', category);
212+
'Search Editor: Search Again', category, SearchEditorConstants.InSearchEditor);
213213

214214
registry.registerWorkbenchAction(SyncActionDescriptor.from(FocusQueryEditorWidgetAction,
215215
{ primary: KeyCode.Escape }, ContextKeyExpr.and(SearchEditorConstants.InSearchEditor)),
216-
'Search Editor: Focus Query Editor Widget', category);
216+
'Search Editor: Focus Query Editor Widget', category, SearchEditorConstants.InSearchEditor);
217217
//#endregion
218218

219219

0 commit comments

Comments
 (0)