Skip to content

Commit

Permalink
rename settings properties + update install location logic (#324)
Browse files Browse the repository at this point in the history
* update explore gens logic

* update node modules path logic

* improve global path logic

* fix updating bug

* add tests

* update tests

* update tests
  • Loading branch information
slavik-lvovsky authored Jul 19, 2020
1 parent 5a65f21 commit 1f19ffd
Show file tree
Hide file tree
Showing 9 changed files with 243 additions and 251 deletions.
14 changes: 7 additions & 7 deletions backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yeoman-ui",
"version": "1.1.3",
"version": "1.1.4",
"displayName": "Application Wizard",
"publisher": "SAPOS",
"author": {
Expand Down Expand Up @@ -75,7 +75,7 @@
"type": "object",
"title": "Application Wizard",
"properties": {
"loggingLevel": {
"ApplicationWizard.loggingLevel": {
"type": "string",
"enum": [
"off",
Expand All @@ -90,22 +90,22 @@
"description": "The verbosity of logging according to the following order: trace > debug > info > warn > error > fatal > off.",
"scope": "resource"
},
"sourceLocationTracking": {
"ApplicationWizard.sourceLocationTracking": {
"type": "boolean",
"default": false,
"description": "If chosen, the location of the source code is added to log entries. Warning – this action may slow your extension. We recommend you use it only for debugging.",
"scope": "resource"
},
"installationLocation": {
"ApplicationWizard.installationLocation": {
"type": "string",
"markdownDescription": "Install generators in a specified location. If not set, global location is used."
},
"autoUpdate": {
"ApplicationWizard.autoUpdate": {
"type": "boolean",
"default": true,
"description": "Auto update installed generators."
"description": "Automatically update installed generators."
},
"searchQuery": {
"ApplicationWizard.searchQuery": {
"type": "array",
"default": [
"SAP",
Expand Down
3 changes: 3 additions & 0 deletions backend/src/exploreGensMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ export default {
auto_update_finished: "Installed generators have been updated.",
failed_to_install: (genName: string) => `Could not install ${genName}`,
failed_to_uninstall: (genName: string) => `Could not uninstall ${genName}`,
failed_to_update: (genName: string) => `Could not update ${genName}`,
uninstalling: (genName: string) => `Uninstalling ${genName} ...`,
uninstalled: (genName: string) => `${genName} has been uninstalled.`,
installing: (genName: string) => `Installing the latest version of ${genName}...`,
installed: (genName: string) => `${genName} has been installed.`,
updating: (genName: string) => `Updating to the latest version of ${genName}...`,
updated: (genName: string) => `${genName} has been updated.`,
failed_to_get: (gensQueryUrl: string) => `Could not get generators with the queryUrl ${gensQueryUrl}`
};
Loading

0 comments on commit 1f19ffd

Please sign in to comment.