File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments