Файли
openidea/generators/odin.toml
T
Christer Söderlundтаchristerso 5cfd5157d0 feat(scaffold): add an Odin project to New Project, with Odin icons (#8096)
New Project gains an Odin entry. Odin has no init command, so the generator writes main.odin, an ols.json and a .gitignore, and checks that odin is installed. .odin files get a file icon (light and dark), and New Project uses the Odin logo from Simple Icons, credited in THIRD_PARTY_LICENSES.md.

Co-authored-by: christerso <[email protected]>
2026-12-05 01:45:16 +08:00

46 рядки
810 B
TOML

id = "odin"
name = "Odin"
group = "Odin"
icon = "project-odin"
description = "An Odin package with a main procedure, set up for OLS."
[[requires]]
program = "odin"
version-args = ["version"]
hint = "Install Odin: https://odin-lang.org/docs/install/"
[[files]]
path = "main.odin"
content = '''
package main
import "core:fmt"
main :: proc() {
fmt.println("Hellope!")
}
'''
[[files]]
path = "ols.json"
content = '''
{
"$schema": "https://raw.githubusercontent.com/DanielGavin/ols/master/misc/ols.schema.json",
"enable_semantic_tokens": true,
"enable_document_symbols": true,
"enable_hover": true,
"enable_snippets": true
}
'''
[[files]]
path = ".gitignore"
content = '''
# What `odin build .` and `odin run .` write: the program and, on Windows, its debug files.
/{{name}}
*.exe
*.pdb
*.ilk
*.rdi
'''