Remove duplicated code for unchanged parts of different extension API versions (#10218)

Release Notes:

- N/A

---------

Co-authored-by: Marshall <marshall@zed.dev>
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
Max Brunsfeld 2024-04-08 07:16:12 -07:00 committed by GitHub
parent 4ce5b22989
commit 4bdfc12b79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 311 additions and 334 deletions

View file

@ -0,0 +1,24 @@
interface platform {
/// An operating system.
enum os {
/// macOS.
mac,
/// Linux.
linux,
/// Windows.
windows,
}
/// A platform architecture.
enum architecture {
/// AArch64 (e.g., Apple Silicon).
aarch64,
/// x86.
x86,
/// x86-64.
x8664,
}
/// Gets the current operating system and architecture.
current-platform: func() -> tuple<os, architecture>;
}