Skip to content

API returning host OS architecture #6871

@rchl

Description

@rchl

Problem description

It would be useful to have an API that returns architecture of the host OS. This would be especially useful on Windows where there is no ARM version of ST available so ST runs in x64 mode.

This would be useful for LSP where we want to start a server process in the architecture that matches the OS host and not the plugin host. Currently there doesn't seem to be an easy way to tell what's the host's architecture.

Preferred solution

An API like sublime.os_host_arch()

Alternatives

It's probably doable using ctypes and native Windows APIs.

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions