Closed jfcherng closed 1 year ago
I'm thinking... deprecate current class method and introduce one that returns semantic version (can be a range).
@classmethod
def supported_node_version(cls) -> str:
return '16 - 18'
Then we'd need to also vendor https://python-semanticversion.readthedocs.io or https://github.com/FichteFoll/pysemver to handle semantic version matching.
Whatever works ;)
This feature request comes from https://github.com/TheSecEng/LSP-copilot/issues/51. The Copilot server files are compiled in WASM files, which freezes ST if the user uses Node v18. Having
minimum_node_version()
is not enough.I am imaging something like the following:
Or even better, deprecates
minimum_node_version()
and introducesOr