File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ All notable changes to the Laravel extension will be documented in this file.
6
6
7
7
- Improve file watcher performance ([ #327 ] ( https://github.com/laravel/vs-code-extension/pull/327 ) )
8
8
- Autocompletion, linking, and diagnostics for Storage Disks ([ #328 ] ( https://github.com/laravel/vs-code-extension/pull/328 ) )
9
+ - Fix relative path when path does not exist ([ #322 ] ( https://github.com/laravel/vs-code-extension/pull/322 ) )
9
10
10
11
## [ v1.0.3]
11
12
Original file line number Diff line number Diff line change 2
2
3
3
echo json_encode ([
4
4
...config ('inertia.testing ' , []),
5
- 'page_paths ' => collect (config ('inertia.testing.page_paths ' , []))->map (fn ($ path ) => LaravelVsCode::relativePath ($ path ))->toArray (),
5
+ 'page_paths ' => collect (config ('inertia.testing.page_paths ' , []))->flatMap (function ($ path ) {
6
+ $ relativePath = LaravelVsCode::relativePath ($ path );
7
+
8
+ return [$ relativePath , mb_strtolower ($ relativePath )];
9
+ })->unique ()->values (),
6
10
]);
Original file line number Diff line number Diff line change 2
2
export default `
3
3
echo json_encode([
4
4
...config('inertia.testing', []),
5
- 'page_paths' => collect(config('inertia.testing.page_paths', []))->map(fn($path) => LaravelVsCode::relativePath($path))->toArray(),
5
+ 'page_paths' => collect(config('inertia.testing.page_paths', []))->flatMap(function($path) {
6
+ $relativePath = LaravelVsCode::relativePath($path);
7
+
8
+ return [$relativePath, mb_strtolower($relativePath)];
9
+ })->unique()->values(),
6
10
]);
7
11
` ;
You can’t perform that action at this time.
0 commit comments