Skip to content

Commit

Permalink
fix: fix hide expolorer arrow validation
Browse files Browse the repository at this point in the history
  • Loading branch information
azat-io committed Sep 2, 2024
1 parent 94f4570 commit 8f744f6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion extension/build/get-hide-explorer-arrow-value.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { workspace } from 'vscode'

export let getHideExplorerArrowValue = (): boolean =>
workspace.getConfiguration('eyecons').get<boolean>('hideExplorerArrows') ??
workspace.getConfiguration('eyecons').get<boolean>('hidesExplorerArrows') ??
true
2 changes: 1 addition & 1 deletion extension/build/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export let validate = async (): Promise<boolean> => {
let schemaJson = JSON.parse(schemaValue)
let fileNames: string[] = []

if (schemaJson.hideExplorerArrows !== getHideExplorerArrowValue()) {
if (schemaJson.hidesExplorerArrows !== getHideExplorerArrowValue()) {
return false
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@
"purple"
]
},
"eyecons.hideExplorerArrows": {
"eyecons.hidesExplorerArrows": {
"type": "boolean",
"default": true,
"description": "%configuration.hideExplorerArrows%"
"description": "%configuration.hidesExplorerArrows%"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"configuration.folderColor.green": "Green",
"configuration.folderColor.blue": "Blue",
"configuration.folderColor.purple": "Purple",
"configuration.hideExplorerArrows": "Hide explorer arrows",
"configuration.hidesExplorerArrows": "Hide explorer arrows",
"configuration.theme": "Select color theme",
"configuration.theme.inherit": "Use the color theme of the current VS Code theme"
}
2 changes: 1 addition & 1 deletion package.nls.ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"configuration.folderColor.green": "Зелёный",
"configuration.folderColor.blue": "Синий",
"configuration.folderColor.purple": "Фиолетовый",
"configuration.hideExplorerArrows": "Скрыть стрелки проводника",
"configuration.hidesExplorerArrows": "Скрыть стрелки проводника",
"configuration.theme": "Выберите цветовую тему",
"configuration.theme.inherit": "Использовать цветовую тему текущей темы VS Code"
}

0 comments on commit 8f744f6

Please sign in to comment.