Skip to content

Commit 700ffe5

Browse files
vrognasclaude
andcommitted
Fix snippet syntax warnings
- Fix extra brace in Surge model snippet - Use proper variable syntax for $TM_FILENAME_BASE in FOCEI snippet - Escape literal $TABLE in Xpose TABLEs comment Bump version to 0.2.15 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5fbc265 commit 700ffe5

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## [0.2.15] 3 Feb, 2026
2+
3+
### Fixed
4+
5+
* **Snippet Syntax**: Fixed VSCode warning about confusing snippet variables and placeholders
6+
- Corrected extra brace in Surge model snippet (`THETA({${3:...})``THETA(${3:...})`)
7+
- Fixed `$TM_FILENAME_BASE` variable syntax in FOCEI snippet
8+
- Escaped literal `$TABLE` in Xpose TABLEs snippet comment
9+
110
## [0.2.14] 3 Feb, 2026
211

312
### Fixed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nmtran",
3-
"version": "0.2.14",
3+
"version": "0.2.15",
44
"license": "MIT",
55
"displayName": "NMTRAN",
66
"publisher": "vrognas",

snippets/snippets.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
"Surge model": {
300300
"prefix": ["surge"],
301301
"body": [
302-
"x = THETA(${1:amplitude}) / (((TIME - THETA(${2:peak_time})) * THETA({${3:peak_width}}))**SHAPE + 1)",
302+
"x = THETA(${1:amplitude}) / (((TIME - THETA(${2:peak_time})) * THETA(${3:peak_width}))**SHAPE + 1)",
303303
"${0}"
304304
],
305305
"description": "Surge model\n"
@@ -529,7 +529,7 @@
529529
"body": [
530530
"\n",
531531
"\\$ESTIMATION METHOD=CONDITIONAL INTERACTION NOABORT MAXEVALS=99999 PRINT=1",
532-
" NSIG=3 MCETA=0 RANMETHOD=4P SEED=1337 MSFO=$TM_FILENAME_BASE.msf",
532+
" NSIG=3 MCETA=0 RANMETHOD=4P SEED=1337 MSFO=${TM_FILENAME_BASE}.msf",
533533
"${0}"
534534
],
535535
"description": "FOCEI with sane defaults"
@@ -671,7 +671,7 @@
671671
"prefix": ["$TABLE"],
672672
"body": [
673673
"; In addition to the requested items, NONMEM adds by default: DV, PRED, RES, WRES.",
674-
"; If you do not want these additional items, add NOAPPEND to the $TABLE record.",
674+
"; If you do not want these additional items, add NOAPPEND to the \\$TABLE record.",
675675
"; Strictly, only sdtab* is needed for basic goodness-of-fit functionality,",
676676
"; but patab*, cotab* and catab* are recommended to get full benefit from Xpose.",
677677
"; Other variables you might need to have available to Xpose can be output into:",

0 commit comments

Comments
 (0)