Skip to content

Commit 8950084

Browse files
committed
#refactor Rename helpers dir to utils and outsource UserManualUtil
1 parent 062e719 commit 8950084

16 files changed

+67
-49
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Please provide a reference to the issue or the bug that you filed for the issue
1616
Check item, if activities have been performed as part of this PR or delete, if not relevant.
1717
-->
1818

19-
* [ ] Extension was build and testes in the VSCode extension mode
19+
* [ ] Extension was build and testes in the Visual Studio Code extension mode
2020
* [ ] Additional packages in package.json are documented and tested
2121
* [ ] Created/updated tests, if necessary. Code Coverage percentage on new code shall be >= 70%.
2222
* [ ] Extended the documentation in README.md

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# How to Contribute to Leda App Deployer (LAD) – an Eclipse Leda Extension for VSCode
1+
# How to Contribute to Leda App Deployer (LAD) – an Eclipse Leda Extension for Visual Studio Code
22

33
First of all, thanks for considering to contribute to Eclipse Velocitas. We really
44
appreciate the time and effort you want to spend helping to improve things around here.
@@ -89,12 +89,12 @@ In this project, we have set up pre-commit hooks using Husky to ensure code qual
8989

9090
4. **Jest Tests:** Finally, the Jest tests are executed to validate the functionality of your code. If any tests fail, the commit process will be aborted.
9191

92-
## How to develop this VSCode-Extension
92+
## How to develop this Extension for Visual Studio Code
9393

9494
0. Clone this repository.
9595
1. Run ```npm install```.
96-
2. Run ```npm run watch``` to start Dev-Mode. This opens a separate Window with a VSCode-Environment running the Extension for development.
96+
2. Run ```npm run watch``` to start Dev-Mode. This opens a separate Window with a Visual Studio Code environment running the Extension for development.
9797
3. Refer to the User Manual (displayable in the plugin via info-button) or [README](README.md) to add target devices for testing.
9898

99-
*Hint:* Refer to the [official VSCode Plugin Development Documentation](https://code.visualstudio.com/api/get-started/your-first-extension) to get further information on how to develop using the VSCode extension API.
99+
*Hint:* Refer to the [official Visual Studio Code Plugin Development Documentation](https://code.visualstudio.com/api/get-started/your-first-extension) to get further information on how to develop using the Visual Studio Code Extension API.
100100

src/LedaAppDeployer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { StageOne } from './cmd/StageOne';
2121
import { StageTwo } from './cmd/StageTwo';
2222
import { StageThree } from './cmd/StageThree';
2323
import { Credentials } from './svc/Credentials';
24-
import { openUserManual } from './helpers/helpers';
24+
import { openUserManual } from './utils/openUserManual';
2525

2626
export default class LedaAppDeployer {
2727
private context: vscode.ExtensionContext;

src/cmd/DeviceCommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import * as vscode from 'vscode';
1818
import { DeviceDataProvider, LedaDeviceTreeItem } from '../provider/DeviceDataProvider';
19-
import { saveLedaDevice, removeLedaDevice, loadLedaDevices } from '../helpers/helpers';
19+
import { saveLedaDevice, removeLedaDevice, loadLedaDevices } from '../utils/helpers';
2020
import { LedaDevice } from '../interfaces/LedaDevice';
2121
import { LedaDeviceQuickPickItem } from '../interfaces/QuickPickItem';
2222

src/cmd/StageOne.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { PackageQuickPickItem } from '../interfaces/QuickPickItem';
2727

2828
// Import setup constants from properties file.
2929
import { CONTAINER_REGISTRY, TMP_KANTO_CONFIG_PATH, KANTO_CONFIG_REMOTE_REG_JSON_PATH, TEMPLATE_FILE_PATH, OUTPUT_FILE_PATH, MANIFEST_DIR, STAGE_ONE_CONSOLE_HEADER } from '../setup/cmdProperties';
30-
import { getExtensionResourcePath } from '../helpers/helpers';
30+
import { getExtensionResourcePath } from '../utils/helpers';
3131

3232
/**
3333
* Implements Deployment Functionality for Stage 1:

src/cmd/StageThree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { DockerOperations } from '../svc/DockerOperations';
2424

2525
// Import setup constants from properties file.
2626
import { CONTAINER_REGISTRY, TMP_KANTO_CONFIG_PATH, KANTO_CONFIG_LOCAL_REG_JSON_PATH, TEMPLATE_FILE_PATH, OUTPUT_FILE_PATH, MANIFEST_DIR, STAGE_THREE_CONSOLE_HEADER } from '../setup/cmdProperties';
27-
import { getExtensionResourcePath } from '../helpers/helpers';
27+
import { getExtensionResourcePath } from '../utils/helpers';
2828

2929
/**
3030
* Implements Deployment Functionality for Stage 3:

src/cmd/StageTwo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { chooseDeviceFromListOrContext } from './DeviceCommands';
2020
import { ManifestGeneratorJson } from '../svc/ManifestGeneratorJson';
2121
import { ServiceSsh } from '../svc/ServiceSsh';
2222
import { TopConfig } from '../provider/TopConfig';
23-
import { checkAndHandleTarSource, getExtensionResourcePath } from '../helpers/helpers';
23+
import { checkAndHandleTarSource, getExtensionResourcePath } from '../utils/helpers';
2424

2525
// Import setup constants from properties file.
2626
import { TMP_KANTO_CONFIG_PATH, KANTO_CONFIG_LOCAL_REG_JSON_PATH, TEMPLATE_FILE_PATH, OUTPUT_FILE_PATH, MANIFEST_DIR, STAGE_TWO_CONSOLE_HEADER } from '../setup/cmdProperties';

src/provider/DeviceDataProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import * as vscode from 'vscode';
1818
import { LedaDevice } from '../interfaces/LedaDevice';
19-
import { loadLedaDevices } from '../helpers/helpers';
19+
import { loadLedaDevices } from '../utils/helpers';
2020

2121
/**
2222
* Data provider for the device tree view.

src/svc/DockerOperations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import * as vscode from 'vscode';
1818
import * as fs from 'fs';
1919
import path from 'path';
2020
import { TopConfig } from '../provider/TopConfig';
21-
import { executeShellCmd, getExtensionResourcePath } from '../helpers/helpers';
21+
import { executeShellCmd, getExtensionResourcePath } from '../utils/helpers';
2222
import { CONTAINER_REGISTRY, TARBALL_OUTPUT_PATH, TARGET_CONTAINER_PLATFORM } from '../setup/cmdProperties';
2323
import { DockerBuildFailedError, DockerExportImageError, DockerfileNotFoundError, GenericInternalError, logToChannelAndErrorConsole } from '../error/customErrors';
2424

src/svc/GitHubOperations/ConfigStringExtractor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import * as fs from 'fs';
1818
import { RemoteOriginNotFoundError, InvalidRemoteOriginError, GenericInternalError } from '../../error/customErrors';
19-
import { getExtensionResourcePath } from '../../helpers/helpers';
19+
import { getExtensionResourcePath } from '../../utils/helpers';
2020

2121
/**
2222
* Helper to get the organization and repository name out of the current Git working context.

0 commit comments

Comments
 (0)