Advanced
You can now write FScript and choose how it runs. Use this section when your program needs capabilities beyond a simple script: application-specific APIs, concurrent work, or a deliberate security policy.
Choose a topic for the problem you have; these are not prerequisites for ordinary scripting.
| Goal | Start here | What you should know first |
|---|---|---|
| Call .NET libraries or expose domain APIs | Extend FScript | Functions, records, and your chosen execution mode. |
| Coordinate work and wait for results | Tasks and Concurrency | Functions, closures, and interpreter configuration. |
| Set an access policy | Permissions and Safety | Whether code runs through the CLI, a compiled program, or an application host. |
| Make configured APIs visible in VS Code | Extension Environments | A working provider and its manifest. |
| Debug callbacks, imports, or multiple tasks | Debugging Larger Programs | The basic VS Code debugger walkthrough. |
The detailed guides below cover typed extern registration, asynchronous libraries, host-managed values, import resolvers, task-sharing analysis, and sandbox boundaries. JavaScript hosts use their own extern registration surface; follow the JavaScript host guide for that environment.
After adding a capability, use Samples to see it in a complete program.