Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 2 KB

File metadata and controls

31 lines (22 loc) · 2 KB

FScript Specifications

Normative behavior for the language, runtime surface, hosting model, and editor/LSP semantics.

Language and type system

Standard library and extern model

Hosting and security

Editor/LSP behavior

  • LSP inlay hints: lsp-inlay-hints.md
  • LSP uses runtime extern schemes for typing/signatures and resolves navigation to included-file declarations.
  • LSP inlay hints and hover hints are configurable through initialization options (and mirrored VS Code settings).
  • LSP injected stdlib functions show named-argument signatures when available and resolve definition to readonly virtual stdlib sources (fscript-stdlib:///...).
  • LSP go-to-definition resolves local variable usages to their nearest in-scope local declaration by lexical AST binding identity (including function parameters and local let bindings), with boundary-tolerant cursor positions.
  • LSP definition/references follow-up suppression returns a single declaration location for immediate references requests after definition on usage sites, while declaration-identifier clicks keep normal references enumeration.
  • Definition/type-definition from record field labels in function return record literals resolves to the declared return type (including import-provided types).