Skip to content

Commit b2397bb

Browse files
committed
fix check bug
1 parent 1581973 commit b2397bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "CreateVueClassComponent",
44
"description": "create vue class component",
55
"icon": "images/vue_logo.png",
6-
"version": "0.2.2",
6+
"version": "0.2.3",
77
"publisher": "pengfeiyuan",
88
"engines": {
99
"vscode": "^1.57.0"

src/checkDestinationVueFilename.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ function readFilesOfDest(uri: vscode.Uri) {
1717
const filename = arr.pop();
1818
if (_path.endsWith('.vue') && !ignoreFilenames.includes(filename!)) {
1919
const dir = arr.join('/');
20-
21-
return [handleFile(filename!, dir)];
20+
const res = handleFile(filename!, dir);
21+
return res ? [res] : [];
2222
}
2323

2424
return [];

0 commit comments

Comments
 (0)