@@ -54,23 +54,23 @@ export interface IFindInFilesArgs {
54
54
registerAction2 ( class RestrictSearchToFolderAction extends Action2 {
55
55
constructor ( ) {
56
56
super ( {
57
- id : Constants . RestrictSearchToFolderId ,
57
+ id : Constants . SearchCommandIds . RestrictSearchToFolderId ,
58
58
title : {
59
59
value : nls . localize ( 'restrictResultsToFolder' , "Restrict Search to Folder" ) ,
60
60
original : 'Restrict Search to Folder'
61
61
} ,
62
62
category,
63
63
keybinding : {
64
64
weight : KeybindingWeight . WorkbenchContrib ,
65
- when : ContextKeyExpr . and ( Constants . SearchViewVisibleKey , Constants . ResourceFolderFocusKey ) ,
65
+ when : ContextKeyExpr . and ( Constants . SearchContext . SearchViewVisibleKey , Constants . SearchContext . ResourceFolderFocusKey ) ,
66
66
primary : KeyMod . Shift | KeyMod . Alt | KeyCode . KeyF ,
67
67
} ,
68
68
menu : [
69
69
{
70
70
id : MenuId . SearchContext ,
71
71
group : 'search' ,
72
72
order : 3 ,
73
- when : ContextKeyExpr . and ( Constants . ResourceFolderFocusKey )
73
+ when : ContextKeyExpr . and ( Constants . SearchContext . ResourceFolderFocusKey )
74
74
}
75
75
]
76
76
} ) ;
@@ -83,7 +83,7 @@ registerAction2(class RestrictSearchToFolderAction extends Action2 {
83
83
registerAction2 ( class ExcludeFolderFromSearchAction extends Action2 {
84
84
constructor ( ) {
85
85
super ( {
86
- id : Constants . ExcludeFolderFromSearchId ,
86
+ id : Constants . SearchCommandIds . ExcludeFolderFromSearchId ,
87
87
title : {
88
88
value : nls . localize ( 'excludeFolderFromSearch' , "Exclude Folder from Search" ) ,
89
89
original : 'Exclude Folder from Search'
@@ -94,7 +94,7 @@ registerAction2(class ExcludeFolderFromSearchAction extends Action2 {
94
94
id : MenuId . SearchContext ,
95
95
group : 'search' ,
96
96
order : 4 ,
97
- when : ContextKeyExpr . and ( Constants . ResourceFolderFocusKey )
97
+ when : ContextKeyExpr . and ( Constants . SearchContext . ResourceFolderFocusKey )
98
98
}
99
99
]
100
100
} ) ;
@@ -109,15 +109,15 @@ registerAction2(class RevealInSideBarForSearchResultsAction extends Action2 {
109
109
constructor (
110
110
) {
111
111
super ( {
112
- id : Constants . RevealInSideBarForSearchResults ,
112
+ id : Constants . SearchCommandIds . RevealInSideBarForSearchResults ,
113
113
title : {
114
114
value : nls . localize ( 'revealInSideBar' , "Reveal in Explorer View" ) ,
115
115
original : 'Reveal in Explorer View'
116
116
} ,
117
117
category,
118
118
menu : [ {
119
119
id : MenuId . SearchContext ,
120
- when : ContextKeyExpr . and ( Constants . FileFocusKey , Constants . HasSearchResults ) ,
120
+ when : ContextKeyExpr . and ( Constants . SearchContext . FileFocusKey , Constants . SearchContext . HasSearchResults ) ,
121
121
group : 'search_3' ,
122
122
order : 1
123
123
} ]
@@ -167,7 +167,7 @@ registerAction2(class FindInFilesAction extends Action2 {
167
167
constructor (
168
168
) {
169
169
super ( {
170
- id : Constants . FindInFilesActionId ,
170
+ id : Constants . SearchCommandIds . FindInFilesActionId ,
171
171
title : {
172
172
value : nls . localize ( 'findInFiles' , "Find in Files" ) ,
173
173
mnemonicTitle : nls . localize ( { key : 'miFindInFiles' , comment : [ '&& denotes a mnemonic' ] } , "Find &&in Files" ) ,
@@ -221,7 +221,7 @@ registerAction2(class FindInFolderAction extends Action2 {
221
221
// from explorer
222
222
constructor ( ) {
223
223
super ( {
224
- id : Constants . FindInFolderId ,
224
+ id : Constants . SearchCommandIds . FindInFolderId ,
225
225
title : {
226
226
value : nls . localize ( 'findInFolder' , "Find in Folder..." ) ,
227
227
original : 'Find in Folder...'
@@ -251,7 +251,7 @@ registerAction2(class FindInWorkspaceAction extends Action2 {
251
251
// from explorer
252
252
constructor ( ) {
253
253
super ( {
254
- id : Constants . FindInWorkspaceId ,
254
+ id : Constants . SearchCommandIds . FindInWorkspaceId ,
255
255
title : {
256
256
value : nls . localize ( 'findInWorkspace' , "Find in Workspace..." ) ,
257
257
original : 'Find in Workspace...'
0 commit comments