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

" slang: run at file location " seems not work correctly #460 #462

Merged
merged 4 commits into from
Feb 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)

## [Unreleased]

### Fixed

- Fix Slang: when run at filelocation is disable, detecting warning. [#460](https://github.com/mshr-h/vscode-verilog-hdl-support/issues/460)

## [1.13.1] - 2024-01-15

### Fixed
Expand Down
12 changes: 11 additions & 1 deletion src/linter/SlangLinter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,17 @@ export default class SlangLinter extends BaseLinter {

let rex = line.match(re);

if (!docUri.endsWith(rex[1])) {
let filePath = rex[1];
if (isWindows) {
if (this.useWSL) {
filePath = this.convertToWslPath(filePath);
this.logger.info(`Rewrote filePath to ${filePath} for WSL`);
} else {
filePath = filePath.replace(/\\/g, '/');
}
}

if (!docUri.endsWith(filePath)) {
return;
}

Expand Down
Loading