-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: add quickpick strings (#79)
- Loading branch information
Showing
5 changed files
with
145 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from '@lvce-editor/i18n' |
77 changes: 77 additions & 0 deletions
77
packages/file-search-worker/src/parts/QuickPickStrings/QuickPickStrings.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
import * as I18NString from '../I18NString/I18NString.ts' | ||
|
||
/** | ||
* @enum {string} | ||
*/ | ||
const UiStrings = { | ||
Files: 'Files', | ||
GoToFile: 'Go to file', | ||
NoMatchingColorThemesFound: 'No matching color themes found', | ||
NoMatchingResults: 'No matching results', | ||
NoRecentlyOpenedFoldersFound: 'No recently opened folders found', | ||
NoResults: 'No Results', | ||
NoSymbolFound: 'No symbol found', | ||
NoWorkspaceSymbolsFound: 'no workspace symbols found', | ||
OpenRecent: 'Open Recent', | ||
SelectColorTheme: 'Select Color Theme', | ||
SelectToOpen: 'Select to open', | ||
ShowAndRunCommands: 'Show And Run Commands', | ||
TypeNameOfCommandToRun: 'Type the name of a command to run.', | ||
TypeTheNameOfAViewToOpen: 'Type the name of a view, output channel or terminal to open.', | ||
} | ||
|
||
export const noMatchingColorThemesFound = (): string => { | ||
return I18NString.i18nString(UiStrings.NoMatchingColorThemesFound) | ||
} | ||
|
||
export const selectColorTheme = (): string => { | ||
return I18NString.i18nString(UiStrings.SelectColorTheme) | ||
} | ||
|
||
export const typeNameofCommandToRun = (): string => { | ||
return I18NString.i18nString(UiStrings.TypeNameOfCommandToRun) | ||
} | ||
|
||
export const showAndRunCommands = (): string => { | ||
return I18NString.i18nString(UiStrings.ShowAndRunCommands) | ||
} | ||
|
||
export const noMatchingResults = (): string => { | ||
return I18NString.i18nString(UiStrings.NoMatchingResults) | ||
} | ||
|
||
export const files = (): string => { | ||
return I18NString.i18nString(UiStrings.Files) | ||
} | ||
|
||
export const goToFile = (): string => { | ||
return I18NString.i18nString(UiStrings.GoToFile) | ||
} | ||
|
||
export const noResults = (): string => { | ||
return I18NString.i18nString(UiStrings.NoResults) | ||
} | ||
|
||
export const selectToOpen = (): string => { | ||
return I18NString.i18nString(UiStrings.SelectToOpen) | ||
} | ||
|
||
export const openRecent = (): string => { | ||
return I18NString.i18nString(UiStrings.OpenRecent) | ||
} | ||
|
||
export const noRecentlyOpenedFoldersFound = (): string => { | ||
return I18NString.i18nString(UiStrings.NoRecentlyOpenedFoldersFound) | ||
} | ||
|
||
export const noSymbolFound = (): string => { | ||
return I18NString.i18nString(UiStrings.NoSymbolFound) | ||
} | ||
|
||
export const noWorkspaceSymbolsFound = (): string => { | ||
return I18NString.i18nString(UiStrings.NoWorkspaceSymbolsFound) | ||
} | ||
|
||
export const typeTheNameOfAViewToOpen = (): string => { | ||
return I18NString.i18nString(UiStrings.TypeTheNameOfAViewToOpen) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import { expect, test } from '@jest/globals' | ||
import * as QuickPickStrings from '../src/parts/QuickPickStrings/QuickPickStrings.ts' | ||
|
||
test('files returns string', () => { | ||
expect(QuickPickStrings.files()).toBe('Files') | ||
}) | ||
|
||
test('goToFile returns string', () => { | ||
expect(QuickPickStrings.goToFile()).toBe('Go to file') | ||
}) | ||
|
||
test('noMatchingColorThemesFound returns string', () => { | ||
expect(QuickPickStrings.noMatchingColorThemesFound()).toBe('No matching color themes found') | ||
}) | ||
|
||
test('noMatchingResults returns string', () => { | ||
expect(QuickPickStrings.noMatchingResults()).toBe('No matching results') | ||
}) | ||
|
||
test('noRecentlyOpenedFoldersFound returns string', () => { | ||
expect(QuickPickStrings.noRecentlyOpenedFoldersFound()).toBe('No recently opened folders found') | ||
}) | ||
|
||
test('noResults returns string', () => { | ||
expect(QuickPickStrings.noResults()).toBe('No Results') | ||
}) | ||
|
||
test('noSymbolFound returns string', () => { | ||
expect(QuickPickStrings.noSymbolFound()).toBe('No symbol found') | ||
}) | ||
|
||
test('noWorkspaceSymbolsFound returns string', () => { | ||
expect(QuickPickStrings.noWorkspaceSymbolsFound()).toBe('no workspace symbols found') | ||
}) | ||
|
||
test('openRecent returns string', () => { | ||
expect(QuickPickStrings.openRecent()).toBe('Open Recent') | ||
}) | ||
|
||
test('selectColorTheme returns string', () => { | ||
expect(QuickPickStrings.selectColorTheme()).toBe('Select Color Theme') | ||
}) | ||
|
||
test('selectToOpen returns string', () => { | ||
expect(QuickPickStrings.selectToOpen()).toBe('Select to open') | ||
}) | ||
|
||
test('showAndRunCommands returns string', () => { | ||
expect(QuickPickStrings.showAndRunCommands()).toBe('Show And Run Commands') | ||
}) | ||
|
||
test('typeNameofCommandToRun returns string', () => { | ||
expect(QuickPickStrings.typeNameofCommandToRun()).toBe('Type the name of a command to run.') | ||
}) | ||
|
||
test('typeTheNameOfAViewToOpen returns string', () => { | ||
expect(QuickPickStrings.typeTheNameOfAViewToOpen()).toBe('Type the name of a view, output channel or terminal to open.') | ||
}) |