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