File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22
33import * as path from 'path' ;
4+ import * as os from 'os' ;
45import { isDeepStrictEqual } from 'util' ;
56
67import * as vscode from 'vscode' ;
@@ -130,7 +131,7 @@ export async function makeTerminalOptions(): Promise<vscode.TerminalOptions> {
130131 R_PROFILE_USER : newRprofile ,
131132 VSCODE_INIT_R : initR ,
132133 VSCODE_WATCHER_DIR : homeExtDir ( ) ,
133- VSCODE_ATTACH_HOST : incomingRequestServerAddressInfo ?. address ,
134+ VSCODE_ATTACH_HOST : os . hostname ( ) ,
134135 VSCODE_ATTACH_PORT : incomingRequestServerAddressInfo ?. port ?. toString ( ) ,
135136 } ;
136137 }
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export function attachActive(): void {
131131 if ( config ( ) . get < boolean > ( 'sessionWatcher' ) ) {
132132 console . info ( '[attachActive]' ) ;
133133 if ( incomingRequestServerAddressInfo ) {
134- void runTextInTerm ( `.vsc.attach(host=${ incomingRequestServerAddressInfo . address } , port=${ incomingRequestServerAddressInfo . port } L)` ) ;
134+ void runTextInTerm ( `.vsc.attach(host=${ JSON . stringify ( os . hostname ( ) ) } , port=${ incomingRequestServerAddressInfo . port } L)` ) ;
135135 } else {
136136 void runTextInTerm ( '.vsc.attach()' ) ;
137137 }
You can’t perform that action at this time.
0 commit comments