Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vscode extension not respecting exclude #578

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
1 change: 1 addition & 0 deletions selene-vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to the "selene-vscode" extension will be documented in this
If you want to stay up to date with selene itself, you can find the changelog in [selene's CHANGELOG.md](https://github.com/Kampfkarren/selene/blob/master/CHANGELOG.md).

## Unreleased
- Fixed an issue where the extension wouldn't respect the config file's exclude paths.

## [1.5.1]
- selene now works with the Luau language ID.
Expand Down
6 changes: 4 additions & 2 deletions selene-vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,12 @@ export async function activate(

const output = await selene.seleneCommand(
context.globalStorageUri,
"--display-style=json2 --no-summary -",
// Must use relative path for now due to https://github.com/Kampfkarren/selene/issues/593
`--display-style=json2 --no-summary ${vscode.workspace.asRelativePath(
document.uri.fsPath,
)}`,
selene.Expectation.Stderr,
vscode.workspace.getWorkspaceFolder(document.uri),
document.getText(),
)

if (!output) {
Expand Down
Loading