Skip to content

Project aware #213

@vanowm

Description

@vanowm

I'm trying to simplify my script by splitting it into multiple files.
Each file may access global variables/function from other files.
For example, main.au3 file:

Global $myVar = "foo"
#include "secondary.au3"

secondary.au3:

ConsoleWrite($myVar)

The code works fine when main.au3 executed, but when I edit secondary.au3 vscode complains that $myVar is not declared.

What could we do about this?

Possible solutions:

  • setting where we can specify "root" files
  • a comment inside included file with a name of the parent file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions