Skip to content

Commit 71de6a2

Browse files
committed
fix #51 add info notification when server is saved
1 parent 12c6a16 commit 71de6a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/api/addServer.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export async function addServer(
6767
["http", "https"],
6868
{
6969
placeHolder:
70-
"Confirm connection type, then definition will be stored in your User Settings. 'Escape' to cancel.",
70+
"Confirm connection type, then the definition will be stored in your User Settings. 'Escape' to cancel.",
7171
ignoreFocusOut: true
7272
}
7373
);
@@ -83,10 +83,11 @@ export async function addServer(
8383
config.inspect("servers")?.globalValue || {};
8484
servers[name] = spec;
8585
await config.update("servers", servers, true);
86+
vscode.window.showInformationMessage(`Server '${name}' stored in user-level settings.`);
8687
return name;
8788
} catch (error) {
8889
vscode.window.showErrorMessage(
89-
"Failed to store server definition"
90+
"Failed to store server '${name}' definition."
9091
);
9192
return undefined;
9293
}

0 commit comments

Comments
 (0)