Skip to content

Commit 525985d

Browse files
author
Kumar Harsh
committed
fix(status-bar): fix colours for different states
1 parent df16a1c commit 525985d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/client/extension.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ const statusBarText = 'GQL';
3434
const statusBarUIElements = {
3535
[Status.init]: {
3636
icon: 'sync',
37-
color: 'white',
37+
color: 'yellow',
3838
tooltip: 'Graphql language server is initializing',
3939
},
4040
[Status.ok]: {
4141
icon: 'plug',
42-
color: 'while',
42+
color: 'white',
4343
tooltip: 'Graphql language server is running',
4444
},
4545
[Status.error]: {
@@ -129,17 +129,16 @@ function initializeStatusBar(context, client) {
129129
serverRunning = true;
130130
} else {
131131
extensionStatus = Status.error;
132-
client.info('The graphql server has stopped running');
132+
client.info('The graphql server has stopped');
133133
serverRunning = false;
134134
}
135135
updateStatusBar(window.activeTextEditor);
136136
});
137-
updateStatusBar(window.activeTextEditor);
138-
139137
window.onDidChangeActiveTextEditor((editor: TextEditor) => {
140138
// update the status if the server is running
141139
updateStatusBar(editor);
142140
});
141+
updateStatusBar(window.activeTextEditor);
143142
}
144143

145144
function updateStatusBar(editor: TextEditor) {

0 commit comments

Comments
 (0)