Skip to content

Commit 3ea45ed

Browse files
committed
fix merge problem
1 parent 30220e7 commit 3ea45ed

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

runners/wikiEclipse/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class WikiEclipse extends WikiRunner {
1717

1818
runCreateFile(runCommand: RunCommand): RunResult{
1919
let fileName = path.basename(runCommand.command.parameters[0]);
20-
let filePath = path.join(this.getVariable(this.workspaceDirectory), runCommand.command.parameters[0].replace(fileName, ""));
20+
let filePath = path.join(this.getVariable(this.WORKSPACE_DIRECTORY), runCommand.command.parameters[0].replace(fileName, ""));
2121
filePath = path.relative(this.getWorkingDirectory(), filePath).replace(/\\/g, "/");
2222
let fileType = this.fileTypeMap.get(fileName.substr(fileName.indexOf(".")));
2323
let parentFolder = path.basename(filePath);

runners/wikiEditor/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class WikiEditor extends WikiRunner {
1919

2020
runCreateFile(runCommand: RunCommand): RunResult{
2121
let fileName = path.basename(runCommand.command.parameters[0]);
22-
let filePath = path.join(this.getVariable(this.workspaceDirectory), runCommand.command.parameters[0].replace(fileName, ""));
22+
let filePath = path.join(this.getVariable(this.WORKSPACE_DIRECTORY), runCommand.command.parameters[0].replace(fileName, ""));
2323
filePath = path.relative(this.getWorkingDirectory(), filePath).replace(/\\/g, "/");
2424
let fileType = this.fileTypeMap.get(fileName.substr(fileName.indexOf(".")));
2525
let content = runCommand.command.parameters[1]
@@ -30,7 +30,7 @@ export class WikiEditor extends WikiRunner {
3030
}
3131

3232
runChangeFile(runCommand: RunCommand): RunResult{
33-
let workspacePath = this.getVariable(this.workspaceDirectory).replace(/\\/g, "/");
33+
let workspacePath = this.getVariable(this.WORKSPACE_DIRECTORY).replace(/\\/g, "/");
3434
let fileName = path.basename(runCommand.command.parameters[0]);
3535
let filePath = path.join(workspacePath,runCommand.command.parameters[0].replace(fileName, ""));
3636
let contentPath, contentFile, contentString;

runners/wikiVsCode/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class WikiVsCode extends WikiRunner {
1818

1919
runCreateFile(runCommand: RunCommand): RunResult{
2020
let fileName = path.basename(runCommand.command.parameters[0]);
21-
let filePath = path.join(this.getVariable(this.workspaceDirectory), runCommand.command.parameters[0].replace(fileName, ""));
21+
let filePath = path.join(this.getVariable(this.WORKSPACE_DIRECTORY), runCommand.command.parameters[0].replace(fileName, ""));
2222
filePath = path.relative(this.getWorkingDirectory(), filePath).replace(/\\/g, "/");
2323
let fileType = this.fileTypeMap.get(fileName.substr(fileName.indexOf(".")));
2424
let content = runCommand.command.parameters[1]
@@ -29,7 +29,7 @@ export class WikiVsCode extends WikiRunner {
2929
}
3030

3131
runChangeFile(runCommand: RunCommand): RunResult{
32-
let workspacePath = this.getVariable(this.workspaceDirectory).replace(/\\/g, "/");
32+
let workspacePath = this.getVariable(this.WORKSPACE_DIRECTORY).replace(/\\/g, "/");
3333
let fileName = path.basename(runCommand.command.parameters[0]);
3434
let filePath = path.join(workspacePath,runCommand.command.parameters[0].replace(fileName, ""));
3535
let contentPath, contentFile, contentString;

0 commit comments

Comments
 (0)