From 669939ff6ebf214b74afb3d664b519b9840b4d5c Mon Sep 17 00:00:00 2001 From: Kampfkarren Date: Thu, 4 Jan 2024 15:20:10 -0800 Subject: [PATCH] Fix extension to work with luau --- selene-vscode/CHANGELOG.md | 3 +++ selene-vscode/package.json | 3 ++- selene-vscode/src/extension.ts | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/selene-vscode/CHANGELOG.md b/selene-vscode/CHANGELOG.md index 5970872c..19ee4704 100644 --- a/selene-vscode/CHANGELOG.md +++ b/selene-vscode/CHANGELOG.md @@ -6,6 +6,9 @@ If you want to stay up to date with selene itself, you can find the changelog in ## Unreleased +## [1.5.1] +- selene now works with the Luau language ID. + ## [1.5.0] - Added `update-roblox-std` and `generate-roblox-std` subcommands to vscode command palette - Added error reporting for configuration files, both for selene.toml and for YML standard libraries. diff --git a/selene-vscode/package.json b/selene-vscode/package.json index b286b448..b91b28af 100644 --- a/selene-vscode/package.json +++ b/selene-vscode/package.json @@ -13,6 +13,7 @@ ], "activationEvents": [ "onLanguage:lua", + "onLanguage:luau", "workspaceContains:selene.toml", "onCommand:selene.reinstall", "onCommand:selene.update-roblox-std", @@ -117,4 +118,4 @@ "semver": "^7.3.8", "unzipper": "^0.10.11" } -} +} \ No newline at end of file diff --git a/selene-vscode/src/extension.ts b/selene-vscode/src/extension.ts index 4edad143..2b8f1353 100644 --- a/selene-vscode/src/extension.ts +++ b/selene-vscode/src/extension.ts @@ -132,6 +132,7 @@ export async function activate( switch (document.languageId) { case "lua": + case "luau": break case "toml": case "yaml":