Skip to content

Commit

Permalink
Change ordering of settings UI
Browse files Browse the repository at this point in the history
Signed-off-by: Liam Barry Allan <[email protected]>
  • Loading branch information
worksofliam committed Feb 11, 2023
1 parent dddf917 commit 3246ce3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/api/debug/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ export async function initialise(instance: Instance, context: ExtensionContext)
try {
copyFileSync(selectedFile[0].fsPath, certificates.getLocalCertPath(connection));
localCertsOk = true;
vscode.window.showInformationMessage(`Certificate imported.`);
} catch (e) {
vscode.window.showErrorMessage(`Failed to import local certificate.`);
}
Expand Down
10 changes: 5 additions & 5 deletions src/webviews/settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,6 @@ module.exports = class SettingsUI {
field.description = `Default secure port is <code>8005</code>. Tells the client which port the debug service is running on.`;
ui.addField(field);

field = new Field(`checkbox`, `debugIsSecure`, `Debug securely`);
field.default = (config.debugIsSecure ? `checked` : ``);
field.description = `Tells the debug service to authenticate by server and client certificate. Ensure that the client certificate is imported when enabled.`;
ui.addField(field);

field = new Field(`checkbox`, `debugUpdateProductionFiles`, `Update production files`);
field.default = (config.debugUpdateProductionFiles ? `checked` : ``);
field.description = `Determines whether the job being debugged can update objects in production (<code>*PROD</code>) libraries.`;
Expand All @@ -222,6 +217,11 @@ module.exports = class SettingsUI {
field.default = (config.debugEnableDebugTracing ? `checked` : ``);
field.description = `Tells the debug service to send more data to the client. Only useful for debugging issues in the service. Not recommended for general debugging.`;
ui.addField(field);

field = new Field(`checkbox`, `debugIsSecure`, `Debug securely`);
field.default = (config.debugIsSecure ? `checked` : ``);
field.description = `Tells the debug service to authenticate by server and client certificates. Ensure that the client certificate is imported when enabled.`;
ui.addField(field);
}

ui.addField(new Field(`hr`));
Expand Down

0 comments on commit 3246ce3

Please sign in to comment.