Skip to content

Apps Script Manifest Autocompletion #280

Description

@grant

Expected Behavior

Creating an Apps Script manifest should be easy. Manifest editing should have these features:

  • Autocompletion
  • Syntax errors
  • Integration with clasp (clasp create --webapp)

Actual Behavior

  • You have to create this file by hand. No autocompletion on script.google.com or local IDEs.

Suggestion Solution

  • appsscript.ts
    • PRO: Simple setup (rename appscript.json to appsscript.ts, add type)
    • CON: A bit unnatural. May be reverse incompatible since ts allows comments, no quotes, etc.
  • VSCode Extension:
    • PRO: You don't need to rename your file to appsscript.ts or do any funky things.
    • CON: You must install an extension. The code is separate from clasp. A lot of maintainence work. Only works for VSCode.

Example

{
  timeZone: string,
  oauthScopes: [
    string
  ],
  dependencies: {
    enabledAdvancedServices: [
      {
        userSymbol: string,
        serviceId: string,
        version: string,
      }
    ],
    libraries: [
      {
        userSymbol: string,
        libraryId: string,
        version: string,
        developmentMode: boolean,
      }
    ]
  },
  exceptionLogging: string,
  webapp: {
    access: string,
    executeAs: string,
  },
  executionApi: {
    access: string,
  },
  urlFetchWhitelist: [
    string
  ]
}: GoogleAppsScript.Manifest

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions