Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need completion? probably not. I think this just complicates the extension, as it is not meant to be used for writing .endf but just inspecting/reading them.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

All notable changes to this extension will be documented in this file.

## Unreleased

- Added manual-backed ENDF reference hovers for `NSUB`, `NLIB`, `INT`, `LR`, and
common record types such as `TAB1`, `CONT`, and `SEND`.
- Expanded `MF` and `MT` descriptions through a shared curated reference module.
- Added lightweight completions for common ENDF lookup codes.
- Added Node-based unit tests for reference lookup behavior and ENDF number
parsing.

## 0.0.2

- Updated the extension icon package asset to preserve transparent rounded corners.
Expand Down
28 changes: 25 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,22 @@ the status bar; hover shows the fuller explanation.
- common `MF` and `MT` numbers are expanded to their ENDF-6 descriptions
- textual references such as `MF=3`, `MF3`, `MF 12`, `MT=102`, `MT1`, and
`MT=52-82` are also explained
- manual-backed references for `NSUB`, `NLIB`, `INT`, `LR`, and ENDF record
types such as `TEXT`, `CONT`, `HEAD`, `LIST`, `TAB1`, `TAB2`, `INTG`,
`SEND`, `FEND`, `MEND`, and `TEND` are explained in hovers

## Reference Completions

The extension provides lightweight completions for common ENDF manual lookup
codes. In ENDF documents, type a supported key followed by `=` or a space to see
curated suggestions:

- `MF=` for file-type numbers
- `MT=` for common reaction type numbers and important ranges
- `NSUB=` for sublibrary numbers
- `NLIB=` for library identifiers
- `INT=` for interpolation laws
- `LR=` for residual breakup flags

Payload field meanings are often record-specific, so the hover reports the
reliable fixed-field role unless a standard `MF`/`MT` code description applies.
Expand Down Expand Up @@ -91,9 +107,15 @@ not included in the packaged extension.

## Development

The extension entry point is `extension.js`, the language contribution is
declared in `package.json`, and the TextMate grammar is in
`syntaxes/endf.tmLanguage.json`.
The extension entry point is `extension.js`, the manual-backed reference data is
curated in `endfReference.js`, the language contribution is declared in
`package.json`, and the TextMate grammar is in `syntaxes/endf.tmLanguage.json`.

Run the lightweight unit tests with:

```shell
npm test
```

To test changes, open the repository in VS Code and use the provided
`.vscode/launch.json` configuration. Reload the Extension Development Host
Expand Down
Loading