Skip to content

Latest commit

 

History

History
69 lines (52 loc) · 2.32 KB

README.md

File metadata and controls

69 lines (52 loc) · 2.32 KB

vscode-epics, EYE (Enlight Your Epics)

This VS Code extension provides syntax highlighting for EPICS database, template, substitutions and startup files, and streamdevice prototype files.

Features

  • Syntax highlighting for:
    • database and template files (.db, .dbd and .template)
    • substitutions files (.substitutions, .sub, and .subs)
    • startup files (.cmd and .iocsh)
    • streamdevice prototype files (.proto)
    • SNL files (.st extensions are considered as .c extension and some keywords are highlighted)

Syntax highlighting

  • Snippets for:
    • database and template files (.db and .template)
    • substitutions files (.substitutions, .sub, and .subs)
    • startup files (.cmd and .iocsh)
    • C source code
    • streamdevice prototype files (.proto)
    • SNL files (over charge of your .c extension)
    • we-test (scenario and suite)
Tips: to see all the available snippets per file type, write "epics." and a list will show up (file has to have a known extension).
  • Compilation facilities

  • Linter for:

    • database and template files
    • substitutions files
    • startup files
    • streamdevice prototype files
    • SNL files

Requirements

VS Code 1.5 or newer version.

Extension Settings

None yet!

Known Issues

Every field types are not recognized yet, only the more commons.

Credits

Snippets are mainly coming from language-epics Atom plugin, agaget and vnadot.

to do

  • issues
  • weTest:
    • new scheme
    • add field value to snippet test
  • mbbi: add alarm?
  • add CP or PP by default ?
  • field to add: OROC, OOPT ...?
  • dbLoadTemplate(char ⋆subfile, char ⋆substitutions): dbLoadTemplate("../../db/iocTest.substitutions", "ASYN_RFFI_PORT=${ASYN_RFFI_PORT}")
  • dbLoadRecords() ...
  • dtyp: asy32..
  • ao: egul eguf prec drvl hopr...
  • ai ao: add alarms
  • mbbi alarms
  • raw soft channel vs soft channel
  • add epicsRegisterFunction(myFunction);
  • add conversion field: LINR, RVAL, ROFF, EGUF, EGUL, AOFF, ASLO, ESLO, EOFF