This Language Server works for .civet
files.
- Syntax Highlighting
- Go to definition
- Find all references
- Completions
- Comment/Uncomment
- Symbols outline
- Diagnostics
- Custom Transpiler Plugins
Custom transpilers can be added in your host project root folder under ${projectRoot}/.civet/name-plugin.mjs
.
Ex.
import Hera from "@danielx/hera"
const { compile: heraCompile } = Hera
export default {
transpilers: [{
extension: ".hera",
target: ".cjs",
compile: function (path, source) {
const code = heraCompile(source, {
filename: path,
})
return {
code
}
}
}],
}