|
| 1 | +import { RawContextKey } from '../raw-context-key'; |
| 2 | + |
| 3 | +// https://github.com/microsoft/vscode/blob/9318bcc5183dbbc49cea8843859cbdeb59b94eaf/src/vs/workbench/contrib/search/common/constants.ts |
| 4 | +export const SearchViewFocusedKey = new RawContextKey<boolean>('searchViewletFocus', false); |
| 5 | +export const SearchInputBoxFocusedKey = new RawContextKey<boolean>('searchInputBoxFocus', false); |
| 6 | +export const ReplaceInputBoxFocusedKey = new RawContextKey<boolean>('replaceInputBoxFocus', false); |
| 7 | +export const HasSearchResults = new RawContextKey<boolean>('hasSearchResult', false); |
| 8 | + |
| 9 | +// not impliments |
| 10 | +export const SearchViewVisibleKey = new RawContextKey<boolean>('searchViewletVisible', true); |
| 11 | +export const InputBoxFocusedKey = new RawContextKey<boolean>('inputBoxFocus', false); |
| 12 | +export const PatternIncludesFocusedKey = new RawContextKey<boolean>('patternIncludesInputBoxFocus', false); |
| 13 | +export const PatternExcludesFocusedKey = new RawContextKey<boolean>('patternExcludesInputBoxFocus', false); |
| 14 | +export const ReplaceActiveKey = new RawContextKey<boolean>('replaceActive', false); |
| 15 | +export const FirstMatchFocusKey = new RawContextKey<boolean>('firstMatchFocus', false); |
| 16 | +export const FileMatchOrMatchFocusKey = new RawContextKey<boolean>('fileMatchOrMatchFocus', false); // This is actually, Match or File or Folder |
| 17 | +export const FileMatchOrFolderMatchFocusKey = new RawContextKey<boolean>('fileMatchOrFolderMatchFocus', false); |
| 18 | +export const FileMatchOrFolderMatchWithResourceFocusKey = new RawContextKey<boolean>( |
| 19 | + 'fileMatchOrFolderMatchWithResourceFocus', |
| 20 | + false, |
| 21 | +); // Excludes "Other files" |
| 22 | +export const FileFocusKey = new RawContextKey<boolean>('fileMatchFocus', false); |
| 23 | +export const FolderFocusKey = new RawContextKey<boolean>('folderMatchFocus', false); |
| 24 | +export const ResourceFolderFocusKey = new RawContextKey<boolean>('folderMatchWithResourceFocus', false); |
| 25 | +export const MatchFocusKey = new RawContextKey<boolean>('matchFocus', false); |
| 26 | +export const ViewHasSearchPatternKey = new RawContextKey<boolean>('viewHasSearchPattern', false); |
| 27 | +export const ViewHasReplacePatternKey = new RawContextKey<boolean>('viewHasReplacePattern', false); |
| 28 | +export const ViewHasFilePatternKey = new RawContextKey<boolean>('viewHasFilePattern', false); |
| 29 | +export const ViewHasSomeCollapsibleKey = new RawContextKey<boolean>('viewHasSomeCollapsibleResult', false); |
| 30 | +export const InTreeViewKey = new RawContextKey<boolean>('inTreeView', false); |
0 commit comments