File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
5
5
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
6
6
7
+ ## [ Unreleased]
8
+
9
+ ### Fixed
10
+
11
+ - Fix Slang: when run at filelocation is disable, detecting warning. [ #460 ] ( https://github.com/mshr-h/vscode-verilog-hdl-support/issues/460 )
12
+
7
13
## [ 1.13.1] - 2024-01-15
8
14
9
15
### Fixed
Original file line number Diff line number Diff line change @@ -101,7 +101,17 @@ export default class SlangLinter extends BaseLinter {
101
101
102
102
let rex = line . match ( re ) ;
103
103
104
- if ( ! docUri . endsWith ( rex [ 1 ] ) ) {
104
+ let filePath = rex [ 1 ] ;
105
+ if ( isWindows ) {
106
+ if ( this . useWSL ) {
107
+ filePath = this . convertToWslPath ( filePath ) ;
108
+ this . logger . info ( `Rewrote filePath to ${ filePath } for WSL` ) ;
109
+ } else {
110
+ filePath = filePath . replace ( / \\ / g, '/' ) ;
111
+ }
112
+ }
113
+
114
+ if ( ! docUri . endsWith ( filePath ) ) {
105
115
return ;
106
116
}
107
117
You can’t perform that action at this time.
0 commit comments