Skip to content

Commit 438b713

Browse files
committed
fixed #20
1 parent 5e78766 commit 438b713

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Change Log
22

3+
## 1.3.1
4+
- Fixed #20
5+
36
## 1.3.0
47
- Fix vendor resolveing
58
- Add a way to stop the extension from search big files

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "laravel-goto-view",
33
"displayName": "Laravel goto view",
44
"description": "Quick jump to view",
5-
"version": "1.3.0",
5+
"version": "1.3.1",
66
"publisher": "codingyu",
77
"engines": {
88
"vscode": "^1.19.0"

src/util.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
import { workspace, TextDocument, Uri } from 'vscode';
3+
import { workspace, TextDocument, Uri, ExtensionContext} from 'vscode';
44
import * as fs from "fs";
55
import * as path from "path";
66

@@ -55,6 +55,16 @@ function scanViewPaths(workspaceFolder, config) {
5555
}
5656
});
5757
}
58+
// vendor
59+
let vendorPath = path.join(workspaceFolder, 'resources/views/vendor');
60+
if (fs.existsSync(vendorPath)) {
61+
fs.readdirSync(vendorPath).forEach(element => {
62+
let file = path.join(vendorPath, element);
63+
if (fs.statSync(file).isDirectory()) {
64+
folders[element.toLocaleLowerCase()] = "/resources/views/vendor/" + element;
65+
}
66+
});
67+
}
5868

5969
return folders;
6070
}

0 commit comments

Comments
 (0)