idaholab / moose-language-support

MOOSE language support for VSCode
Other
5 stars 4 forks source link

Factor out MOOSE Syntax class and provide unit tests #4

Closed dschwen closed 2 years ago

dschwen commented 2 years ago

The syntax for a single input file path (or app executable path) should be wrapped in a class. This class could handle automatic regeneration of its syntax (through file system watches? we'd need to figure out how to watch other method executables - e.g. if the current syntax is based of -opt and a new -dbg gets built).

Extracting the syntax should be a method of this class.

Figure out how to best do this asynchronously (or don't, maybe we can just block the language server, as it is independent of the editor process).

dschwen commented 2 years ago

Done in c0a4a844710675798f25962477af69dfef486821 and d35b07205c6c00ce182258359db89791d4d3a951