Skip to main content

Module ModelOpen

Module ModelOpen 

Source
Expand description

Open a text model: read content from disk, derive language ID from the extension, register the resulting DocumentStateDTO in ApplicationState.Feature.Documents, and return { uri, content, version, languageId } to Wind.

Version starts at 1 for fresh opens; an existing entry increments instead of resetting so concurrent re-opens don’t desync VS Code’s TextDocument observers.

Functions§

ModelOpen