Skip to content

Commit 6885861

Browse files
author
Aleksey Okhrimenko
committed
fixing illigal character for Windows
1 parent 71a738e commit 6885861

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 0.1.3
4+
5+
- Fix: Illigal character on Windows
6+
37
## 0.1.2
48

59
- Fix: add typescript as dependency (since it required)

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "arrr",
33
"displayName": "arrr",
44
"description": "The extension provides refactoring tools for your Angular codebase",
5-
"version": "0.1.2",
5+
"version": "0.1.3",
66
"publisher": "obenjiro",
77
"engines": {
88
"vscode": "^1.47.0"

src/modules/extract-to-folder.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ export async function extractToFolder() {
4444
const folderPath = await showDirectoryPicker();
4545
const fileName = (await showFilePicker()) as string;
4646

47-
const fullPath = path.join(rootPath || '', folderPath, fileName);
47+
let fullPath;
48+
if (folderPath.indexOf(rootPath) > -1) {
49+
fullPath = path.join(folderPath, fileName);
50+
} else {
51+
fullPath = path.join(rootPath || '', folderPath, fileName);
52+
}
4853

4954
const htmlFilePath = `${fullPath}/${fileName}.component.html`;
5055
const cssFilePath = `${fullPath}/${fileName}.component.${sourceComponentConfig.styleExt}`;

0 commit comments

Comments
 (0)