Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-28070

TiAPI: Add vscode json files to app templates

    Details

    • Story Points:
      1

      Description

      Summary:
      We should add .vscode/ JSON configuration files to our Titanium app templates which hide the generated folders (like the "build" folder) and suggest VS Code users to use our extension.

      Classic App Folder Exclusion:
      For Classic apps, we only need to hide the ./build folder from the editor and exclude it from file monitoring/search.

      .vscode/settings.json

      {
      	"files.exclude": {
      		"build/": true
      	},
      	"search.exclude": {
      		"build/": true
      	},
      	"files.watcherExclude": {
      		"build/": true
      	},
      }
      

      Alloy/Angular App Folder Exclusion:
      For all other app templates, the project's root ./i18n, ./platform, and ./Resources folders are generated from the project's ./app folder. So, these folders need to be excluded as well.

      .vscode/settings.json

      {
      	"files.exclude": {
      		"build/": true,
      		"i18n/": true,
      		"platform/": true,
      		"Resources/": true
      	},
      	"search.exclude": {
      		"build/": true,
      		"i18n/": true,
      		"platform/": true,
      		"Resources/": true
      	},
      	"files.watcherExclude": {
      		"build/": true,
      		"i18n/": true,
      		"platform/": true,
      		"Resources/": true
      	}
      }
      

      Promoting Titanium's Extension:
      When opening the app project folder in VS Code, we can have the editor recommend the end-user to use our Titanium extension by adding the following JSON file.

      .vscode/extensions.json

      {
      	"recommendations": [
      		"axway.vscode-titanium"
      	]
      }
      

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              jquick Joshua Quick
              Reviewer:
              Ewan Harris
              Tester:
              Samir Mohammed
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration