дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 17:47:08 +02:00
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]>
46 рядки
810 B
TOML
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
|
|
'''
|