@@ -1649,6 +1649,10 @@ export interface IEditorFindOptions {
1649
1649
* Controls whether the cursor should move to find matches while typing.
1650
1650
*/
1651
1651
cursorMoveOnType ?: boolean ;
1652
+ /**
1653
+ * Controls whether the find widget should search as you type.
1654
+ */
1655
+ findOnType ?: boolean ;
1652
1656
/**
1653
1657
* Controls if we seed search string in the Find Widget with editor selection.
1654
1658
*/
@@ -1692,6 +1696,7 @@ class EditorFind extends BaseEditorOption<EditorOption.find, IEditorFindOptions,
1692
1696
constructor ( ) {
1693
1697
const defaults : EditorFindOptions = {
1694
1698
cursorMoveOnType : true ,
1699
+ findOnType : true ,
1695
1700
seedSearchStringFromSelection : 'always' ,
1696
1701
autoFindInSelection : 'never' ,
1697
1702
globalFindClipboard : false ,
@@ -1765,7 +1770,12 @@ class EditorFind extends BaseEditorOption<EditorOption.find, IEditorFindOptions,
1765
1770
nls . localize ( 'editor.find.replaceHistory.workspace' , 'Store replace history across the active workspace' ) ,
1766
1771
] ,
1767
1772
description : nls . localize ( 'find.replaceHistory' , "Controls how the replace widget history should be stored" )
1768
- }
1773
+ } ,
1774
+ 'editor.find.findOnType' : {
1775
+ type : 'boolean' ,
1776
+ default : defaults . findOnType ,
1777
+ description : nls . localize ( 'find.findOnType' , "Controls whether the Find Widget should search as you type." )
1778
+ } ,
1769
1779
}
1770
1780
) ;
1771
1781
}
@@ -1777,6 +1787,7 @@ class EditorFind extends BaseEditorOption<EditorOption.find, IEditorFindOptions,
1777
1787
const input = _input as IEditorFindOptions ;
1778
1788
return {
1779
1789
cursorMoveOnType : boolean ( input . cursorMoveOnType , this . defaultValue . cursorMoveOnType ) ,
1790
+ findOnType : boolean ( input . findOnType , this . defaultValue . findOnType ) ,
1780
1791
seedSearchStringFromSelection : typeof _input . seedSearchStringFromSelection === 'boolean'
1781
1792
? ( _input . seedSearchStringFromSelection ? 'always' : 'never' )
1782
1793
: stringSet < 'never' | 'always' | 'selection' > ( input . seedSearchStringFromSelection , this . defaultValue . seedSearchStringFromSelection , [ 'never' , 'always' , 'selection' ] ) ,
0 commit comments