File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
extensions/jupyter-adapter/src
src/vs/platform/terminal/node Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 549
549
" Attach to Main Process" ,
550
550
" Attach to Extension Host" ,
551
551
" Attach to Shared Process" ,
552
+ " Attach to Pty Host Process"
552
553
],
553
554
"preLaunchTask" : " Ensure Prelaunch Dependencies" ,
554
555
"presentation" : {
Original file line number Diff line number Diff line change @@ -409,7 +409,7 @@ export class JupyterKernel extends EventEmitter implements vscode.Disposable {
409
409
const command = args . join ( ' ' ) ;
410
410
411
411
// Create environment.
412
- const env = { } ;
412
+ const env = { POSITRON_VERSION : positron . version } ;
413
413
Object . assign ( env , process . env , this . _spec . env ) ;
414
414
415
415
// We are now starting the kernel
Original file line number Diff line number Diff line change @@ -134,6 +134,15 @@ export class PtyService extends Disposable implements IPtyService {
134
134
async serializeTerminalState ( ids : number [ ] ) : Promise < string > {
135
135
const promises : Promise < ISerializedTerminalState > [ ] = [ ] ;
136
136
for ( const [ persistentProcessId , persistentProcess ] of this . _ptys . entries ( ) ) {
137
+
138
+ // --- Start Positron ---
139
+ // Skip serializing Positron language runtime kernel processes
140
+ const positronLanguage = persistentProcess . shellLaunchConfig . env ?. POSITRON_VERSION ;
141
+ if ( positronLanguage ) {
142
+ continue ;
143
+ }
144
+ // --- End Positron ---
145
+
137
146
// Only serialize persistent processes that have had data written or performed a replay
138
147
if ( persistentProcess . hasWrittenData && ids . indexOf ( persistentProcessId ) !== - 1 ) {
139
148
promises . push ( Promises . withAsyncBody < ISerializedTerminalState > ( async r => {
You can’t perform that action at this time.
0 commit comments