Skip to content

Commit 96817a6

Browse files
Do not output connection password to output
1 parent bd93e5e commit 96817a6

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
node_modules/
1+
node_modules/
2+
.idea
3+
*.iml

cos.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,15 @@ const activate = context => {
3131

3232
api.headServer( ( err ) => {
3333

34-
if ( !!err ) return log( 'connect FAIL' )
35-
log( 'connected ' + JSON.stringify( conn ) )
34+
const connectionParameters = JSON.stringify(
35+
Object.assign({}, conn, {
36+
password: "***"
37+
}),
38+
null,
39+
4
40+
);
41+
if ( !!err ) return log( 'Connection FAILED: ' + connectionParameters )
42+
log( 'Connected ' + connectionParameters )
3643
bar.set( conn )
3744

3845
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-cos",
33
"displayName": "Caché ObjectScript",
44
"description": "Caché ObjectScript language support for Visual Studio Code",
5-
"version": "0.0.4",
5+
"version": "0.0.5",
66
"icon": "images/logo.png",
77
"categories": [
88
"Languages",

0 commit comments

Comments
 (0)