File tree 5 files changed +14
-1
lines changed
5 files changed +14
-1
lines changed Original file line number Diff line number Diff line change
1
+ Added tooltip to indicate status of server connection
Original file line number Diff line number Diff line change 179
179
"DataScience.connectingToJupyter" : " Connecting to Jupyter server" ,
180
180
"DataScience.connectingToIPyKernel" : " Connecting to IPython kernel" ,
181
181
"DataScience.connectedToIPyKernel" : " Connected." ,
182
+ "DataScience.connected" : " Connected" ,
183
+ "DataScience.disconnected" : " Disconnected" ,
182
184
"Experiments.inGroup" : " User belongs to experiment group '{0}'" ,
183
185
"Interpreters.RefreshingInterpreters" : " Refreshing Python Interpreters" ,
184
186
"Interpreters.entireWorkspace" : " Entire workspace" ,
Original file line number Diff line number Diff line change @@ -1106,6 +1106,8 @@ export namespace DataScience {
1106
1106
'DataScience.previewNotebookOnlySupportedInVSCInsiders' ,
1107
1107
'The Preview Notebook Editor is supported only in the Insiders version of Visual Studio Code.'
1108
1108
) ;
1109
+ export const connected = localize ( 'DataScience.connected' , 'Connected' ) ;
1110
+ export const disconnected = localize ( 'DataScience.disconnected' , 'Disconnected' ) ;
1109
1111
}
1110
1112
1111
1113
export namespace StartPage {
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ export class JupyterInfo extends React.Component<IJupyterInfoProps> {
61
61
baseTheme = { this . props . baseTheme }
62
62
class = "image-button-image kernel-status-icon"
63
63
image = { this . getIcon ( ) }
64
+ title = { this . getStatus ( ) }
64
65
/>
65
66
</ div >
66
67
< div className = "kernel-status-divider" />
@@ -113,4 +114,10 @@ export class JupyterInfo extends React.Component<IJupyterInfoProps> {
113
114
? ImageName . JupyterServerDisconnected
114
115
: ImageName . JupyterServerConnected ;
115
116
}
117
+
118
+ private getStatus ( ) {
119
+ return this . props . kernel . jupyterServerStatus === ServerStatus . NotStarted
120
+ ? getLocString ( 'DataScience.disconnected' , 'Disconnected' )
121
+ : getLocString ( 'DataScience.connected' , 'Connected' ) ;
122
+ }
116
123
}
Original file line number Diff line number Diff line change @@ -238,6 +238,7 @@ interface IImageProps {
238
238
baseTheme : string ;
239
239
image : ImageName ;
240
240
class : string ;
241
+ title ?: string ;
241
242
}
242
243
243
244
export class Image extends React . Component < IImageProps > {
@@ -249,6 +250,6 @@ export class Image extends React.Component<IImageProps> {
249
250
const key = ImageName [ this . props . image ] . toString ( ) ;
250
251
const image = images . hasOwnProperty ( key ) ? images [ key ] : images . Cancel ; // Default is cancel.
251
252
const source = this . props . baseTheme . includes ( 'dark' ) ? image . dark : image . light ;
252
- return < InlineSVG className = { this . props . class } src = { source } /> ;
253
+ return < InlineSVG className = { this . props . class } src = { source } title = { this . props . title } /> ;
253
254
}
254
255
}
You can’t perform that action at this time.
0 commit comments