Skip to content

File-based apps automatic discovery#82863

Draft
RikkiGibson wants to merge 1 commit intodotnet:mainfrom
RikkiGibson:entry-point-discovery
Draft

File-based apps automatic discovery#82863
RikkiGibson wants to merge 1 commit intodotnet:mainfrom
RikkiGibson:entry-point-discovery

Conversation

@RikkiGibson
Copy link
Member

@RikkiGibson RikkiGibson commented Mar 20, 2026

  • TODO: per discussion with @DamianEdwards, we want to try restricting automatic discovery to apps which start with #!. This is because soon, containing #: will no longer mean that the file is for sure an entry point. Non-entry-point files will be allowed to have them too. Still need to update impl and tests accordingly.
    • As part of this we want to emit a warning in files which use #:include, and use top-level statements, and do not use #!, that user should add #! in order for editor to treat the file consistently in the workspace.
  • TODO: it was suggested to use vscode workspace storage instead of temp directory for the cache file.
  • TODO: files which are loaded by discovery, should not be unloaded if we open+close the entry point file.
Microsoft Reviewers: Open in CodeFlow

@RikkiGibson RikkiGibson added Area-IDE Feature - Run File #: and #! directives and file-based C# programs and removed Area-Infrastructure VSCode labels Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE Feature - Run File #: and #! directives and file-based C# programs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant