Skip to content

Commit b68e0f3

Browse files
Apply suggestions from code review
Co-authored-by: John Murray <[email protected]>
1 parent 595c8c0 commit b68e0f3

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@
514514
"properties": {
515515
"active": {
516516
"type": "boolean",
517-
"description": "This connection is active",
517+
"description": "This connection is active.",
518518
"default": false
519519
},
520520
"server": {
@@ -545,7 +545,7 @@
545545
"maximum": 65535
546546
},
547547
"ns": {
548-
"description": "Server Namespace",
548+
"description": "Server namespace.",
549549
"type": "string",
550550
"default": "USER"
551551
},
@@ -558,29 +558,29 @@
558558
"description": "Password of username. If not set here it must be provided when connecting."
559559
},
560560
"https": {
561-
"description": "Use SSL to access to API",
561+
"description": "Use SSL to access to API.",
562562
"type": "boolean",
563563
"default": false
564564
},
565565
"links": {
566-
"description": "Extra links for the server",
566+
"description": "Extra links for the server.",
567567
"type": "object"
568568
},
569569
"docker-compose": {
570570
"type": "object",
571-
"description": "Connect to server running in docker-compose",
571+
"description": "Connect to server running in docker-compose.",
572572
"additionalProperties": false,
573573
"properties": {
574574
"service": {
575-
"description": "Name of service in docker-compose",
575+
"description": "Name of service in docker-compose.",
576576
"type": "string"
577577
},
578578
"internalPort": {
579-
"description": "Target port inside the service in docker-compose",
579+
"description": "Target port inside the service in docker-compose.",
580580
"type": "number"
581581
},
582582
"file": {
583-
"description": "docker-compose file",
583+
"description": "Name of docker-compose file.",
584584
"type": "string"
585585
}
586586
}
@@ -589,7 +589,7 @@
589589
},
590590
"objectscript.export": {
591591
"type": "object",
592-
"description": "Export only the necessary stuff",
592+
"description": "Export only the necessary stuff.",
593593
"scope": "resource"
594594
},
595595
"objectscript.export.folder": {

src/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export class AtelierAPI {
193193
return Promise.reject();
194194
}
195195
if (!username || !username.length || !password || !password.length) {
196-
outputChannel.appendLine("username and password fields in settinds are mandatory");
196+
outputChannel.appendLine("username and password fields in settings are mandatory.");
197197
return Promise.reject();
198198
}
199199
if (minVersion > apiVersion) {

src/commands/serverActions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ export async function serverActions(): Promise<void> {
1515
actions.push({
1616
detail: "Enable/Disable current connection",
1717
id: "toggleConnection",
18-
label: "Toggle connection",
18+
label: "Toggle Connection",
1919
});
2020
}
2121
if (active) {
2222
actions.push({
2323
id: "refreshConnection",
24-
label: "Refresh connection",
24+
label: "Refresh Connection",
2525
detail: "Force attempt to connect to the server",
2626
});
2727
}
@@ -94,7 +94,7 @@ export async function serverActions(): Promise<void> {
9494
actions.push({
9595
detail: classRef,
9696
id: "openClassReference",
97-
label: "Open class reference",
97+
label: "Open Class Reference",
9898
});
9999
if (!vscode.window.activeTextEditor || vscode.window.activeTextEditor.document.uri.scheme === FILESYSTEM_SCHEMA) {
100100
actions.push({

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export const checkConnection = (clearCookies = false): void => {
168168
if (withDocker) {
169169
if (!dockerPort) {
170170
outputChannel.appendLine(
171-
`Something wrong with your docker-compose connection settings. Or your service not running.`
171+
`Something is wrong with your docker-compose connection settings, or your service is not running.`
172172
);
173173
panel.text = `${packageJson.displayName} - ERROR`;
174174
return;
@@ -190,7 +190,7 @@ export const checkConnection = (clearCookies = false): void => {
190190
}
191191
api = new AtelierAPI(workspaceFolder);
192192
if (!api.config.host || !api.config.port || !api.config.ns) {
193-
outputChannel.appendLine("host, port and ns should be specified");
193+
outputChannel.appendLine("host, port and ns must be specified.");
194194
panel.text = `${packageJson.displayName} - ERROR`;
195195
return;
196196
}

0 commit comments

Comments
 (0)