File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -248,13 +248,26 @@ class PowerShellNotebookContentProvider implements vscode.NotebookContentProvide
248
248
}
249
249
250
250
class PowerShellNotebookKernel implements vscode . NotebookKernel , vscode . NotebookKernelProvider {
251
+ private static informationMessage = "PowerShell extension has not finished starting up yet. Please try again in a few moments." ;
252
+
251
253
public id ?: string ;
252
254
public label : string = "PowerShell" ;
253
255
public description ?: string = "The PowerShell Notebook Mode kernel that runs commands in the PowerShell Integrated Console." ;
254
256
public isPreferred ?: boolean ;
255
257
public preloads ?: vscode . Uri [ ] ;
256
258
257
- private languageClient : LanguageClient ;
259
+ private _languageClient : LanguageClient ;
260
+ private get languageClient ( ) : LanguageClient {
261
+ if ( ! this . _languageClient ) {
262
+ vscode . window . showInformationMessage (
263
+ PowerShellNotebookKernel . informationMessage ) ;
264
+ }
265
+ return this . _languageClient ;
266
+ }
267
+
268
+ private set languageClient ( value : LanguageClient ) {
269
+ this . _languageClient = value ;
270
+ }
258
271
259
272
public async executeAllCells ( document : vscode . NotebookDocument ) : Promise < void > {
260
273
for ( const cell of document . cells ) {
You can’t perform that action at this time.
0 commit comments