Skip to content

Commit a0b621f

Browse files
committed
suggested changes from code review
1 parent b68e0f3 commit a0b621f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,8 @@
519519
},
520520
"server": {
521521
"type": "string",
522-
"pattern": "^[A-Za-z0-9-._~]+$",
523-
"markdownDescription": "Server defined in `intersystems.servers`"
522+
"pattern": "^[a-z0-9-._~]+$",
523+
"markdownDescription": "Server defined in `#intersystems.servers#`"
524524
},
525525
"host": {
526526
"type": "string",

src/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ export class AtelierAPI {
455455
}
456456

457457
// v2+
458-
public getmacrollist(docname: string, includes: string[]): Promise<Atelier.Response> {
458+
public getmacrolist(docname: string, includes: string[]): Promise<Atelier.Response> {
459459
return this.request(2, "POST", `${this.ns}/action/getmacrolist`, {
460460
docname,
461461
includes,

src/commands/serverActions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function serverActions(): Promise<void> {
1313
const actions = [];
1414
if (!api.externalServer) {
1515
actions.push({
16-
detail: "Enable/Disable current connection",
16+
detail: (active ? "Disable" : "Enable") + " current connection",
1717
id: "toggleConnection",
1818
label: "Toggle Connection",
1919
});
@@ -82,7 +82,7 @@ export async function serverActions(): Promise<void> {
8282
if (workspaceState.get(workspaceFolder + ":docker", false)) {
8383
actions.push({
8484
id: "openDockerTerminal",
85-
label: "Open terminal in docker",
85+
label: "Open Terminal in Docker",
8686
detail: "Use docker-compose to start session inside configured service",
8787
});
8888
}

src/providers/ObjectScriptCompletionItemProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class ObjectScriptCompletionItemProvider implements vscode.CompletionItem
100100
const file = currentFile();
101101
const api = new AtelierAPI();
102102
return api
103-
.getmacrollist(file.name, [])
103+
.getmacrolist(file.name, [])
104104
.then((data) => data.result.content.macros)
105105
.then((list) => list.filter((el) => el.toLowerCase().startsWith(macro)))
106106
.then((list) => list.map((el) => "$$$" + el))

0 commit comments

Comments
 (0)