Uploaded image for project: 'SR Platform'
  1. SR Platform
  2. SRPLAT-1205

compile context not settable in script editor

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Done
    • Priority: L3
    • Resolution: Done
    • Affects Version/s: 6.14.0
    • Fix Version/s: 6.20.0
    • Component/s: Script Editor
    • Labels:
      None
    • Critical Points:
      2.1

      Description

      It just uses the basic "console context", so if for instance you are writing a post-function, you don't have issue available.

      As you are aware, scripts for different extension points have different compile contexts. The problem is that a) there are quite a lot, and b) worse, several of them are dynamic. For instance if you are adding an event listener, the type of event varies depending on what events you are listening for, and the compile context for script fields has different expected return types depending on the indexer you use.

      So the way I see this working, is that there would be a link from the place where the file is used to the script editor, and using that link would set the correct compile context.

      If you opened it a different way then you would get the vanilla context.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jechlin Jamie Echlin
              Reporter:
              jechlin Jamie Echlin
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: