@@ -1656,6 +1656,10 @@ export interface IEditorFindOptions {
1656
1656
* Controls whether the cursor should move to find matches while typing.
1657
1657
*/
1658
1658
cursorMoveOnType ?: boolean ;
1659
+ /**
1660
+ * Controls whether the find widget should search as you type.
1661
+ */
1662
+ findOnType ?: boolean ;
1659
1663
/**
1660
1664
* Controls if we seed search string in the Find Widget with editor selection.
1661
1665
*/
@@ -1699,6 +1703,7 @@ class EditorFind extends BaseEditorOption<EditorOption.find, IEditorFindOptions,
1699
1703
constructor ( ) {
1700
1704
const defaults : EditorFindOptions = {
1701
1705
cursorMoveOnType : true ,
1706
+ findOnType : true ,
1702
1707
seedSearchStringFromSelection : 'always' ,
1703
1708
autoFindInSelection : 'never' ,
1704
1709
globalFindClipboard : false ,
@@ -1772,7 +1777,12 @@ class EditorFind extends BaseEditorOption<EditorOption.find, IEditorFindOptions,
1772
1777
nls . localize ( 'editor.find.replaceHistory.workspace' , 'Store replace history across the active workspace' ) ,
1773
1778
] ,
1774
1779
description : nls . localize ( 'find.replaceHistory' , "Controls how the replace widget history should be stored" )
1775
- }
1780
+ } ,
1781
+ 'editor.find.findOnType' : {
1782
+ type : 'boolean' ,
1783
+ default : defaults . findOnType ,
1784
+ description : nls . localize ( 'find.findOnType' , "Controls whether the Find Widget should search as you type." )
1785
+ } ,
1776
1786
}
1777
1787
) ;
1778
1788
}
@@ -1784,6 +1794,7 @@ class EditorFind extends BaseEditorOption<EditorOption.find, IEditorFindOptions,
1784
1794
const input = _input as IEditorFindOptions ;
1785
1795
return {
1786
1796
cursorMoveOnType : boolean ( input . cursorMoveOnType , this . defaultValue . cursorMoveOnType ) ,
1797
+ findOnType : boolean ( input . findOnType , this . defaultValue . findOnType ) ,
1787
1798
seedSearchStringFromSelection : typeof _input . seedSearchStringFromSelection === 'boolean'
1788
1799
? ( _input . seedSearchStringFromSelection ? 'always' : 'never' )
1789
1800
: stringSet < 'never' | 'always' | 'selection' > ( input . seedSearchStringFromSelection , this . defaultValue . seedSearchStringFromSelection , [ 'never' , 'always' , 'selection' ] ) ,
0 commit comments