Code Monkey home page Code Monkey logo

remote-vscode's People

Contributors

aqtrans avatar domoritz avatar mattn avatar rafaelmaiolla avatar silvercory avatar tylerlong avatar whyisjacob avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

remote-vscode's Issues

Files open but are blank

This was working yesterday, so I'm not sure what is going on...but today after establishing my ssh tunnel with: ssh -R 52698:127.0.0.1:52698 root@ipaddress and the password, i am able to navigate and call the rmate index.php command, but the file that opens is BLANK. Happens with every file i try.
On the remote machine, when I pull up the files in a text editor, they have all of their content.
I tried resetting both machines on either side of the connection and uninstalling/reinstalling vscode.

This was such a great feature to have, please help me out!

hide errors when remote is not available

Hi,
I use vscode in situations where internet connection is not available or when when the remote server is offline. Is there away to deactivate all the annoying error messages and the terminal popping up?

Bye,
Carlo

Allow port number to be dynamic on start

Possible enhancement (I might devote some time to this later this month)

I think it would be useful to allow the extension to choose a port number on start up.

It could then populate an environment variable with the value (say maybe $VSCODE_REMOTE_EDIT_PORT) and/or display this in the status bar

This would allow environment variables to be used to setup port forwarding for ssh sessions like this:

$ ssh -R $VSCODE_REMOTE_EDIT_PORT:localhost:$VSCODE_REMOTE_EDIT_PORT user@remoteHost

This would allow different ssh sessions to quickly and easily target different vscode windows, which I think would be useful

Unable to install using cli

I am not sure if this is an issue of your extension or if it's something in vs code, i have this problem only with your extension so far, though: i am unable to install your extension using the cli:

code --install-extension rafaelmaiolla.remote-vscode

This results in the output below. Installing directly from vs code works, though. I've tried this with Linux and Mac OS X, so the problem doesn't seem to be platform specific.

Output of the above command:

Found 'rafaelmaiolla.remote-vscode' in the marketplace.
Installing...
WARNING: Promise with no error callback:19
{ exception: null,
error:
Error: Invalid package /Users/harald/.vscode/extensions/rafaelmaiolla.remote-vscode-0.1.8/.vscode-test/VSCode-linux-x64/resources/atom.asar
    at invalidArchiveError (ELECTRON_ASAR.js:149:19)
    at Object.module.(anonymous function) [as open] (ELECTRON_ASAR.js:205:16)
    at WriteStream.open (fs.js:2094:6)
    at new WriteStream (fs.js:2080:10)
    at Object.fs.createWriteStream (fs.js:2035:10)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/cliProcessMain.js:7:11353
    at new n.Class.derive._oncancel (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/cli.js:4:30926)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/cliProcessMain.js:7:11317
    at Object._ [as _notify] (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/cli.js:4:23742)
    at Object.enter (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/cli.js:4:27320),
promise:
{ _oncancel: null,
    _nextState: null,
    _state:
    { name: 'error',
        enter: [Function: enter],
        cancel: [Function: a],
        done: null,
        then: null,
        _completed: [Function: a],
        _error: [Function: a],
        _notify: [Function: m],
        _progress: [Function: a],
        _setCompleteValue: [Function: a],
        _setErrorValue: [Function: a] },
    _listeners: null,
    _value:
    Error: Invalid package /Users/harald/.vscode/extensions/rafaelmaiolla.remote-vscode-0.1.8/.vscode-test/VSCode-linux-x64/resources/atom.asar
        at invalidArchiveError (ELECTRON_ASAR.js:149:19)
        at Object.module.(anonymous function) [as open] (ELECTRON_ASAR.js:205:16)
        at WriteStream.open (fs.js:2094:6)
        at new WriteStream (fs.js:2080:10)
        at Object.fs.createWriteStream (fs.js:2035:10)
        at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/cliProcessMain.js:7:11353
        at new n.Class.derive._oncancel (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/cli.js:4:30926)
        at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/cliProcessMain.js:7:11317
        at Object._ [as _notify] (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/cli.js:4:23742)
        at Object.enter (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/cli.js:4:27320),
    _isException: false,
    _errorId: 19,
    done: [Function: done],
    then: [Function: then] },
handler: undefined,
id: 19,
parent: undefined }
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/cli.js:4
(function(){var e=["exports","require","vs/base/common/platform","vs/base/common/types","vs/base/common/uri","vs/base/common/winjs.base","vs/base/common/arrays","vs/base/common/errors","vs/nls!vs/platform/environment/node/argv","vs/base/common/objects","vs/platform/environment/node/argv","vs/platform/package","path","vs/platform/product","os","minimist","assert","vs/base/common/winjs.base.raw","vs/nls!vs/code/node/cli","child_process","vs/code/node/cli","vs/nls"],t=function(t){for(var n=[],r=0,o=t.length;r<o;r++)n[r]=e[t[r]];return n};define(e[6],t([1,0]),function(e,t){"use strict";function n(e,t){return void 0===t&&(t=0),e[e.length-(1+t)]}function r(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],function(){e.splice(n,1),n--,r--})}function o(e,t,n){if(void 0===n&&(n=function(e,t){return e===t}),e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r++)if(!n(e[r],t[r]))return!1;return!0}function i(e,t,n){for(var r=0,o=e.lengt

Error: Invalid package /Users/harald/.vscode/extensions/rafaelmaiolla.remote-vscode-0.1.8/.vscode-test/VSCode-linux-x64/resources/atom.asar

Error: Invalid package /Users/harald/.vscode/extensions/rafaelmaiolla.remote-vscode-0.1.8/.vscode-test/VSCode-linux-x64/resources/atom.asar
    at invalidArchiveError (ELECTRON_ASAR.js:149:19)
    at Object.module.(anonymous function) [as open] (ELECTRON_ASAR.js:205:16)
    at WriteStream.open (fs.js:2094:6)
    at new WriteStream (fs.js:2080:10)
    at Object.fs.createWriteStream (fs.js:2035:10)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/cliProcessMain.js:7:11353
    at new n.Class.derive._oncancel (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/cli.js:4:30926)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/cliProcessMain.js:7:11317
    at Object._ [as _notify] (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/cli.js:4:23742)
    at Object.enter (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/cli.js:4:27320)
    at Timeout._onTimeout (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/code/node/cli.js:4:7323)
    at tryOnTimeout (timers.js:232:11)
    at Timer.listOnTimeout (timers.js:202:5)

New tabs replacing existing tabs

Since just recently (starting with VS Code 1.15.0 I think) I'm having issues with remote-vscode. When I open a remote file while already having another file tab open in vscode, the first tab gets replaced by the new file tab. This gets really annoying when you don't think about it and haven't saved in a while. I'm open to suggestions on how to debug this behaviour.

Failed to start server, will try again in 10 seconds

Hey, thank you for this extremely useful plug-in!

I'm having problems though! This was working, but then broke on a re-save of the user settings file.

Getting this repeatedly:

"Failed to start server, will try again in 10 seconds}"

In dev console is see this:

[Extension Host] �[34m[2018-02-21 10:06:31.390] [TRACE] Server - �[39mstart true
console.ts:123 [Extension Host] �[34m[2018-02-21 10:06:31.390] [TRACE] Server - �[39misOnline
console.ts:123 [Extension Host] �[36m[2018-02-21 10:06:31.390] [DEBUG] Server - �[39misOnline? false
console.ts:123 [Extension Host] �[34m[2018-02-21 10:06:31.391] [TRACE] StatusBarItem - �[39monStarting
console.ts:123 [Extension Host] �[34m[2018-02-21 10:06:31.391] [TRACE] Server - �[39mgetPort 52698
console.ts:123 [Extension Host] �[34m[2018-02-21 10:06:31.391] [TRACE] Server - �[39mgetHost NaN
console.ts:123 [Extension Host] �[34m[2018-02-21 10:06:31.391] [TRACE] Server - �[39monServerError { Error: listen EADDRNOTAVAIL **MY-REMOTE-IP**:52698
	at Object.exports._errnoException (util.js:1050:11)
	at exports._exceptionWithHostPort (util.js:1073:20)
	at Server.setupListenHandle [as _listen2] (net.js:1247:19)
	at listenInCluster (net.js:1304:12)
	at doListen (net.js:1428:7)
	at _combinedTickCallback (internal/process/next_tick.js:83:11)
	at process._tickCallback (internal/process/next_tick.js:104:9)
  code: 'EADDRNOTAVAIL',
  errno: 'EADDRNOTAVAIL',
  syscall: 'listen',
  address: '**MY-REMOTE-IP**',
  port: 52698 }
console.ts:123 [Extension Host] �[34m[2018-02-21 10:06:31.392] [TRACE] StatusBarItem - �[39monError

Getting this repeated message. I know its not a machine-wide problem because Atom has a similar plug-in and this is working.

My settings are:

{
//-------- Remote VSCode configuration --------

// Port number to use for connection.
"remote.port": 52698,

// Launch the server on start up.
"remote.onstartup": true,

// Address to listen on.
"remote.host": "**MY-REMOTE-IP**",

// If set to true, error for remote.port already in use won't be shown anymore.
"remote.dontShowPortAlreadyInUseError": false,
}

btw, I note that equivalent for atom.io, https://atom.io/packages/remote-atom, doesn't require a host IP, thoughts? I'm not having any issue with the Atom implementation and rmate correctly brings up the remote file. I'm careful to close Atom before retrying VS Code (and in any case this occurred before I installed remote-atom in my copy of Atom).

TypeError: Cannot read property 'split' of undefined

I get an error when trying to open a remote javascript file. See developer console log below:

extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:16:46.723] [TRACE] extension - �[39mstartServer
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:16:46.723] [TRACE] Server - �[39msetPort 52698
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:16:46.723] [TRACE] Server - �[39msetHost 127.0.0.1
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:16:46.723] [TRACE] Server - �[39mstart false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:16:46.723] [TRACE] Server - �[39misOnline
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:16:46.723] [DEBUG] Server - �[39misOnline? true
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:16:46.723] [TRACE] Server - �[39mstop
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:16:46.724] [TRACE] Server - �[39misOnline
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:16:46.724] [DEBUG] Server - �[39misOnline? true
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:16:46.724] [TRACE] Server - �[39msetOnline false
extensionHost.ts:284 [Extension Host] �[32m[2017-04-13 02:16:46.724] [INFO] Server - �[39mRestarting server
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:16:46.724] [TRACE] Server - �[39mgetPort 52698
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:16:46.724] [TRACE] Server - �[39mgetHost NaN
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:16:46.724] [TRACE] Server - �[39monServerClose
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:16:46.725] [TRACE] Server - �[39monServerListening
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:16:46.726] [TRACE] Server - �[39msetOnline true
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:31.437] [TRACE] Server - �[39monServerConnection
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:31.437] [TRACE] Session - �[39mconstructor
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:31.437] [TRACE] Session - �[39msend VSCode 1
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:31.437] [TRACE] Session - �[39misOnline
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:31.437] [DEBUG] Session - �[39misOnline? true
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:31.752] [TRACE] Session - �[39monSocketData <Buffer 6f 70 65 6e>
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:31.752] [TRACE] Session - �[39mparseChunk <Buffer 6f 70 65 6e>
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:31.752] [TRACE] Command - �[39mconstructor open
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:31.752] [TRACE] Command - �[39msetName open
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:31.752] [TRACE] RemoteFile - �[39mconstructor
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:31.752] [TRACE] RemoteFile - �[39misEmpty
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:31.752] [DEBUG] RemoteFile - �[39misEmpty? true
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:31.752] [TRACE] RemoteFile - �[39misReady
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:31.752] [DEBUG] RemoteFile - �[39misReady? false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:31.752] [TRACE] Session - �[39monSocketData <Buffer 0a 64 69 73 70 6c 61 79 2d 6e 61 6d 65 3a 20 69 70 2d 31 37 32 2d 33 31 2d 33 31 2d 38 35 3a 73 75 62 73 63 72 69 62 65 2e 6a 73 0a 72 65 61 6c 2d 70 ... >
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:31.752] [TRACE] Session - �[39mparseChunk <Buffer 0a 64 69 73 70 6c 61 79 2d 6e 61 6d 65 3a 20 69 70 2d 31 37 32 2d 33 31 2d 33 31 2d 38 35 3a 73 75 62 73 63 72 69 62 65 2e 6a 73 0a 72 65 61 6c 2d 70 ... >
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:31.752] [TRACE] RemoteFile - �[39misReady
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:31.752] [DEBUG] RemoteFile - �[39misReady? false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:31.752] [TRACE] RemoteFile - �[39misEmpty
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:31.752] [DEBUG] RemoteFile - �[39misEmpty? true
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:31.752] [TRACE] RemoteFile - �[39misReady
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:31.752] [DEBUG] RemoteFile - �[39misReady? false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:32.076] [TRACE] Session - �[39monSocketData <Buffer 64 61 74 61 2d 6f 6e 2d 73 61 76 65 3a 20 79 65 73 0a 72 65 2d 61 63 74 69 76 61 74 65 3a 20 79 65 73 0a 74 6f 6b 65 6e 3a 20 73 75 62 73 63 72 69 62 ... >
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:32.076] [TRACE] Session - �[39mparseChunk <Buffer 64 61 74 61 2d 6f 6e 2d 73 61 76 65 3a 20 79 65 73 0a 72 65 2d 61 63 74 69 76 61 74 65 3a 20 79 65 73 0a 74 6f 6b 65 6e 3a 20 73 75 62 73 63 72 69 62 ... >
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:32.076] [TRACE] RemoteFile - �[39misReady
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:32.076] [DEBUG] RemoteFile - �[39misReady? false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:32.076] [TRACE] RemoteFile - �[39misEmpty
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:32.076] [DEBUG] RemoteFile - �[39misEmpty? true
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:32.076] [TRACE] Command - �[39maddVariable data-on-save yes
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:32.076] [TRACE] Command - �[39maddVariable re-activate yes
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:32.076] [TRACE] Command - �[39maddVariable token subscribe.js
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:32.076] [TRACE] RemoteFile - �[39msetDataSize 3988
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:32.076] [TRACE] Command - �[39mgetVariable token
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:32.076] [TRACE] Command - �[39mgetVariable display-name
extensionHost.ts:284 [Extension Host] Uncaught Exception:  TypeError: Cannot read property 'split' of undefinedd.logExtensionHostMessage @ extensionHost.ts:284(anonymous function) @ extensionHost.ts:139emitTwo @ events.js:106emit @ events.js:191process.nextTick @ internal/child_process.js:744_combinedTickCallback @ internal/process/next_tick.js:67_tickCallback @ internal/process/next_tick.js:98
extensionHost.ts:284 [Extension Host] TypeError: Cannot read property 'split' of undefined
    at RemoteFile.setDisplayName (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\out\src\lib\RemoteFile.js:23:46)
    at Session.parseChunk (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\out\src\lib\Session.js:53:37)
    at Session.onSocketData (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\out\src\lib\Session.js:23:18)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:543:20)d.logExtensionHostMessage @ extensionHost.ts:284(anonymous function) @ extensionHost.ts:139emitTwo @ events.js:106emit @ events.js:191process.nextTick @ internal/child_process.js:744_combinedTickCallback @ internal/process/next_tick.js:67_tickCallback @ internal/process/next_tick.js:98
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:32.095] [TRACE] Session - �[39monSocketData <Buffer 76 61 72 20 63 75 72 72 65 6e 74 5f 66 73 2c 20 6e 65 78 74 5f 66 73 2c 20 70 72 65 76 69 6f 75 73 5f 66 73 2c 0a 09 6c 65 66 74 2c 20 6f 70 61 63 69 ... >
shell.ts:475 Cannot read property 'split' of undefined: TypeError: Cannot read property 'split' of undefined
    at RemoteFile.setDisplayName (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\out\src\lib\RemoteFile.js:23:46)
    at Session.parseChunk (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\out\src\lib\Session.js:53:37)
    at Session.onSocketData (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\out\src\lib\Session.js:23:18)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:543:20)e.onUnexpectedError @ shell.ts:475(anonymous function) @ shell.ts:435e.onUnexpectedError @ errors.ts:68o @ errors.ts:88t.onUnexpectedExtHostError @ mainThreadErrors.ts:13e.handle @ abstractThreadService.ts:34s @ ipcRemoteCom.ts:275f @ ipcRemoteCom.ts:231_combinedTickCallback @ internal/process/next_tick.js:67_tickCallback @ internal/process/next_tick.js:98
shell.ts:475 fd must be a file descriptor: TypeError: fd must be a file descriptor
    at TypeError (native)
    at Object.fs.closeSync (fs.js:609:18)
    at Object.closeSync (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\node_modules\graceful-fs\graceful-fs.js:51:27)
    at RemoteFile.closeSync (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\out\src\lib\RemoteFile.js:65:12)
    at Session.parseChunk (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\out\src\lib\Session.js:67:29)
    at Session.onSocketData (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\out\src\lib\Session.js:23:18)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:543:20)e.onUnexpectedError @ shell.ts:475(anonymous function) @ shell.ts:435e.onUnexpectedError @ errors.ts:68o @ errors.ts:88t.onUnexpectedExtHostError @ mainThreadErrors.ts:13e.handle @ abstractThreadService.ts:34s @ ipcRemoteCom.ts:275f @ ipcRemoteCom.ts:231_combinedTickCallback @ internal/process/next_tick.js:67_tickCallback @ internal/process/next_tick.js:98
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:32.095] [TRACE] Session - �[39mparseChunk <Buffer 76 61 72 20 63 75 72 72 65 6e 74 5f 66 73 2c 20 6e 65 78 74 5f 66 73 2c 20 70 72 65 76 69 6f 75 73 5f 66 73 2c 0a 09 6c 65 66 74 2c 20 6f 70 61 63 69 ... >
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:32.095] [TRACE] RemoteFile - �[39misReady
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:32.096] [DEBUG] RemoteFile - �[39misReady? false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:32.096] [TRACE] RemoteFile - �[39misEmpty
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:32.096] [DEBUG] RemoteFile - �[39misEmpty? false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:32.097] [TRACE] RemoteFile - �[39mappendData 3991
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:32.097] [DEBUG] RemoteFile - �[39mwritenDataSize 3988
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:32.098] [TRACE] RemoteFile - �[39mwriteSycn
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:32.098] [TRACE] RemoteFile - �[39misReady
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:32.098] [DEBUG] RemoteFile - �[39misReady? true
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:32.098] [TRACE] RemoteFile - �[39mcloseSync
extensionHost.ts:284 [Extension Host] Uncaught Exception:  TypeError: fd must be a file descriptord.logExtensionHostMessage @ extensionHost.ts:284(anonymous function) @ extensionHost.ts:139emitTwo @ events.js:106emit @ events.js:191process.nextTick @ internal/child_process.js:744_combinedTickCallback @ internal/process/next_tick.js:67_tickCallback @ internal/process/next_tick.js:98
extensionHost.ts:284 [Extension Host] TypeError: fd must be a file descriptor
    at TypeError (native)
    at Object.fs.closeSync (fs.js:609:18)
    at Object.closeSync (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\node_modules\graceful-fs\graceful-fs.js:51:27)
    at RemoteFile.closeSync (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\out\src\lib\RemoteFile.js:65:12)
    at Session.parseChunk (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\out\src\lib\Session.js:67:29)
    at Session.onSocketData (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\out\src\lib\Session.js:23:18)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:543:20)d.logExtensionHostMessage @ extensionHost.ts:284(anonymous function) @ extensionHost.ts:139emitTwo @ events.js:106emit @ events.js:191process.nextTick @ internal/child_process.js:744_combinedTickCallback @ internal/process/next_tick.js:67_tickCallback @ internal/process/next_tick.js:98
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:51.350] [TRACE] Server - �[39monServerConnection
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:51.350] [TRACE] Session - �[39mconstructor
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:51.350] [TRACE] Session - �[39msend VSCode 1
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:51.350] [TRACE] Session - �[39misOnline
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:51.350] [DEBUG] Session - �[39misOnline? true
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:51.679] [TRACE] Session - �[39monSocketData <Buffer 6f 70 65 6e 0a>
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:51.679] [TRACE] Session - �[39mparseChunk <Buffer 6f 70 65 6e 0a>
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:51.679] [TRACE] Command - �[39mconstructor open
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:51.680] [TRACE] Command - �[39msetName open
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:51.680] [TRACE] RemoteFile - �[39mconstructor
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:51.680] [TRACE] RemoteFile - �[39misEmpty
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:51.680] [DEBUG] RemoteFile - �[39misEmpty? true
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:51.680] [TRACE] RemoteFile - �[39misReady
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:51.681] [DEBUG] RemoteFile - �[39misReady? false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:51.681] [TRACE] Session - �[39monSocketData <Buffer 64 69 73 70 6c 61 79 2d 6e 61 6d 65 3a 20 69 70 2d 31 37 32 2d 33 31 2d 33 31 2d 38 35 3a 73 75 62 73 63 72 69 62 65 2e 6a 73 0a 72 65 61 6c 2d 70 61 ... >
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:51.681] [TRACE] Session - �[39mparseChunk <Buffer 64 69 73 70 6c 61 79 2d 6e 61 6d 65 3a 20 69 70 2d 31 37 32 2d 33 31 2d 33 31 2d 38 35 3a 73 75 62 73 63 72 69 62 65 2e 6a 73 0a 72 65 61 6c 2d 70 61 ... >
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:51.681] [TRACE] RemoteFile - �[39misReady
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:51.681] [DEBUG] RemoteFile - �[39misReady? false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:51.681] [TRACE] RemoteFile - �[39misEmpty
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:51.682] [DEBUG] RemoteFile - �[39misEmpty? true
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:51.682] [TRACE] Command - �[39maddVariable display-name ip-XX-XX-XX-XX:subscribe.js
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:51.682] [TRACE] Command - �[39maddVariable real-path /opt/pay/public/js/subscribe.js
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:51.682] [TRACE] Command - �[39maddVariable data-on-save yes
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:51.682] [TRACE] RemoteFile - �[39misReady
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:51.682] [DEBUG] RemoteFile - �[39misReady? false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:52.000] [TRACE] Session - �[39monSocketData <Buffer 0a 72 65 2d 61 63 74 69 76 61 74 65 3a 20 79 65 73 0a 74 6f 6b 65 6e 3a 20 73 75 62 73 63 72 69 62 65 2e 6a 73 0a 64 61 74 61 3a 20 33 39 38 38 0a>
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:52.000] [TRACE] Session - �[39mparseChunk <Buffer 0a 72 65 2d 61 63 74 69 76 61 74 65 3a 20 79 65 73 0a 74 6f 6b 65 6e 3a 20 73 75 62 73 63 72 69 62 65 2e 6a 73 0a 64 61 74 61 3a 20 33 39 38 38 0a>
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:52.001] [TRACE] RemoteFile - �[39misReady
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:52.001] [DEBUG] RemoteFile - �[39misReady? false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:52.001] [TRACE] RemoteFile - �[39misEmpty
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:52.001] [DEBUG] RemoteFile - �[39misEmpty? true
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:52.001] [TRACE] RemoteFile - �[39misReady
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:52.001] [DEBUG] RemoteFile - �[39misReady? false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:52.001] [TRACE] Session - �[39monSocketData <Buffer 76 61 72 20 63 75 72 72 65 6e 74 5f 66 73 2c 20 6e 65 78 74 5f 66 73 2c 20 70 72 65 76 69 6f 75 73 5f 66 73 2c 0a 09 6c 65 66 74 2c 20 6f 70 61 63 69 ... >
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:52.001] [TRACE] Session - �[39mparseChunk <Buffer 76 61 72 20 63 75 72 72 65 6e 74 5f 66 73 2c 20 6e 65 78 74 5f 66 73 2c 20 70 72 65 76 69 6f 75 73 5f 66 73 2c 0a 09 6c 65 66 74 2c 20 6f 70 61 63 69 ... >
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:52.002] [TRACE] RemoteFile - �[39misReady
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:52.002] [DEBUG] RemoteFile - �[39misReady? false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:52.002] [TRACE] RemoteFile - �[39misEmpty
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:52.002] [DEBUG] RemoteFile - �[39misEmpty? true
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:52.002] [TRACE] Command - �[39maddVariable var current_fs, next_fs, previous_fs, 
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:52.002] [TRACE] Command - �[39maddVariable left, opacity, scale, 
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:52.002] [TRACE] Command - �[39maddVariable animating; 
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:17:52.002] [TRACE] RemoteFile - �[39misReady
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:17:52.002] [DEBUG] RemoteFile - �[39misReady? false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:53.790] [TRACE] Server - �[39monServerConnection
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:53.790] [TRACE] Session - �[39mconstructor
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:53.790] [TRACE] Session - �[39msend VSCode 1
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:53.790] [TRACE] Session - �[39misOnline
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:18:53.790] [DEBUG] Session - �[39misOnline? true
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.098] [TRACE] Session - �[39monSocketData <Buffer 6f 70 65 6e>
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.098] [TRACE] Session - �[39mparseChunk <Buffer 6f 70 65 6e>
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.098] [TRACE] Command - �[39mconstructor open
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.098] [TRACE] Command - �[39msetName open
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.098] [TRACE] RemoteFile - �[39mconstructor
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.114] [TRACE] RemoteFile - �[39misEmpty
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:18:54.114] [DEBUG] RemoteFile - �[39misEmpty? true
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.114] [TRACE] RemoteFile - �[39misReady
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:18:54.114] [DEBUG] RemoteFile - �[39misReady? false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.114] [TRACE] Session - �[39monSocketData <Buffer 0a 64 69 73 70 6c 61 79 2d 6e 61 6d 65 3a 20 48 0a 72 65 61 6c 2d 70 61 74 68 3a 20 2f 6f 70 74 2f 70 61 79 2f 70 75 62 6c 69 63 2f 6a 73 2f 73 75 62 ... >
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.114] [TRACE] Session - �[39mparseChunk <Buffer 0a 64 69 73 70 6c 61 79 2d 6e 61 6d 65 3a 20 48 0a 72 65 61 6c 2d 70 61 74 68 3a 20 2f 6f 70 74 2f 70 61 79 2f 70 75 62 6c 69 63 2f 6a 73 2f 73 75 62 ... >
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.114] [TRACE] RemoteFile - �[39misReady
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:18:54.114] [DEBUG] RemoteFile - �[39misReady? false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.114] [TRACE] RemoteFile - �[39misEmpty
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:18:54.114] [DEBUG] RemoteFile - �[39misEmpty? true
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.114] [TRACE] RemoteFile - �[39misReady
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:18:54.114] [DEBUG] RemoteFile - �[39misReady? false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.114] [TRACE] Session - �[39monSocketData <Buffer 0a 64 61 74 61 2d 6f 6e 2d 73 61 76 65 3a 20 79 65 73 0a>
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.114] [TRACE] Session - �[39mparseChunk <Buffer 0a 64 61 74 61 2d 6f 6e 2d 73 61 76 65 3a 20 79 65 73 0a>
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.114] [TRACE] RemoteFile - �[39misReady
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:18:54.114] [DEBUG] RemoteFile - �[39misReady? false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.114] [TRACE] RemoteFile - �[39misEmpty
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:18:54.114] [DEBUG] RemoteFile - �[39misEmpty? true
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.114] [TRACE] RemoteFile - �[39misReady
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:18:54.114] [DEBUG] RemoteFile - �[39misReady? false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.438] [TRACE] Session - �[39monSocketData <Buffer 72 65 2d 61 63 74 69 76 61 74 65 3a 20 79 65 73 0a 74 6f 6b 65 6e 3a 20 73 75 62 73 63 72 69 62 65 2e 6a 73 0a 64 61 74 61 3a 20 33 39 38 38 0a>
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.438] [TRACE] Session - �[39mparseChunk <Buffer 72 65 2d 61 63 74 69 76 61 74 65 3a 20 79 65 73 0a 74 6f 6b 65 6e 3a 20 73 75 62 73 63 72 69 62 65 2e 6a 73 0a 64 61 74 61 3a 20 33 39 38 38 0a>
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.438] [TRACE] RemoteFile - �[39misReady
extensionHost.ts:284 [Extension Host] �[36m[2017-04-13 02:18:54.438] [DEBUG] RemoteFile - �[39misReady? false
extensionHost.ts:284 [Extension Host] �[34m[2017-04-13 02:18:54.438] [TRACE] RemoteFile - �[39misEmpty
shell.ts:475 Cannot read property 'split' of undefined: TypeError: Cannot read property 'split' of undefined
    at RemoteFile.setDisplayName (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\out\src\lib\RemoteFile.js:23:46)
    at Session.parseChunk (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\out\src\lib\Session.js:53:37)
    at Session.onSocketData (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\out\src\lib\Session.js:23:18)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:543:20)e.onUnexpectedError @ shell.ts:475(anonymous function) @ shell.ts:435e.onUnexpectedError @ errors.ts:68o @ errors.ts:88t.onUnexpectedExtHostError @ mainThreadErrors.ts:13e.handle @ abstractThreadService.ts:34s @ ipcRemoteCom.ts:275f @ ipcRemoteCom.ts:231_combinedTickCallback @ internal/process/next_tick.js:67_tickCallback @ internal/process/next_tick.js:98
shell.ts:475 fd must be a file descriptor: TypeError: fd must be a file descriptor
    at TypeError (native)
    at Object.fs.closeSync (fs.js:609:18)
    at Object.closeSync (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\node_modules\graceful-fs\graceful-fs.js:51:27)
    at RemoteFile.closeSync (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\out\src\lib\RemoteFile.js:65:12)
    at Session.parseChunk (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\out\src\lib\Session.js:67:29)
    at Session.onSocketData (C:\Users\Dell\.vscode\extensions\rafaelmaiolla.remote-vscode-1.0.1\out\src\lib\Session.js:23:18)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:543:20)

VSCode version: 1.11.1
Remote VSCode extension: 1.0.1
Remote rmate version: 1.5.9
Remote OS: Ubuntu 14.04.3 LTS

Specify host:filename or filename@host in editor tab

I love the ability to edit remote files - I've done this for years in emacs w/ the built-in ssh support. I also tend to frequently have multiple files open on multiple hosts. Would it be difficult to change the tab title to include the hostname the source file resides upon? Perhaps a tooltip that shows the full hostname and path would be great as well.

Thanks,
Lance Capser

P.S. Although this should probably be a separate request, is there any work being done to provide a way to open remote files from the vscode window itself (i.e. open file on remote host . . .), rather than logging into the remote host and running 'rcode '?

Watch for settings change

Currently, it is required to restart the server if the port was changed. So we need a mechanism that will watch for settings changes.

Can I use Putty for tunneling?

Hi,

I'm working under Win 10, and totally new to vs code.
I have Ubuntu VM running as a guess os, and I want to edit my app that deployed there.
What I have done:

  1. Your plugin installed in my vscode
  2. I installed rmate in my Ubuntu
  3. I configured my User Settings in my vscode

but I confused with:

ssh -R 52698:127.0.0.1:52698 [email protected]

Should I install ssh in windows in order to make tunneling command works? I have Putty installed already.
Can I just use Putty tunneling instead?

Thanks

P.S. Nice work :)

Cannot create new files on server

This is not so much a bug that needs to be fixed, but some clarification needed on the documentation. (I can pull and add myself, if desired, but this seemed easier since the change is so small.)

When installing, I thought I made a mistake and couldn't get things to work, but then I finally figured out that you cannot add new files via this workflow.

For instance, in the documentation, there is an example which says:


  • Go to the remote system and run

    rmate -p 52698 file
    

In this case, be sure that file is the name of a file that actually exists!! For example, if your server already has a file at ~/src/index.sh, be sure to run:

rmate -p 52698 ~/src/index.sh

If the file does not exist, first make it on the server.

I am not sure if I am actually doing anything wrong, but I noticed that I can indeed edit the file and it is saved properly on the remote server as long as it already existed.

Error: Cannot find module 'vscode'

It seems that extension does not work on latest (1.9.1 VSCode) version.

I tried to start it in debugger (I am not an expert) and got an error message:

Error: Cannot find module 'vscode'

I tried loading dependencies with

npm install

and it did not help. I passed one missing vscode error, but got another one that's similar:

"Error: Cannot find module 'vscode'    at Function.Module._resolveFilename (module.js:469:15)    at Function.Module._load (module.js:417:25)    at Module.require (module.js:497:17)    at require (internal/module.js:20:19)    at Object.<anonymous> (c:Userssgnezdov.vscodeextensionsafaelmaiolla.remote-vscode-1.0.0outsrcextension.js:2:16)    at Module._compile (module.js:570:32)    at Object.Module._extensions..js (module.js:579:10)    at Module.load (module.js:487:32)    at tryModuleLoad (module.js:446:12)    at Function.Module._load (module.js:438:3)"

The machine is not a real development box. I had to install node on it prior to testing it.

My launch.json looks like this:

{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
    {
        "type": "node",
        "request": "launch",
        "name": "Launch Program",
        "program": "${workspaceRoot}\\out\\src\\extension.js",
        "cwd": "${workspaceRoot}"
    },
    {
        "type": "node",
        "request": "attach",
        "name": "Attach to Process",
        "port": 5858
    }
]
}

Remote command was not working, so I started the debugging process and run into this error. It seems to make sense as I see no log messages when I try to start remote.

rmate dosent run post installation.

I am trying to access the remote file through remote VS Code extension. however post installation, i am receiving the following error :

dj@hyperledger:/Cert/mook-cert/lib$ rmate -p 52698 ./logic.js
-bash: /usr/local/bin/rmate: Permission denied
dj@hyperledger:
/Cert/mook-cert/lib$ sudo rmate -p 52698 ./logic.js
sudo: rmate: command not found

Add configuration to Default Settings

    //-------- Remote Visual Studio Code configuration --------

    // The port to listen for connections.
    "remote.port": 52689,

    // Control whether it will initiate in the startup.
    "remote.onStartup": true,

[email protected]

Funny it is not mentioned. I guess you just need to know.

Create an ssh tunnel
ssh -R 52698:127.0.0.1:52698 [email protected]

[email protected] is not an email address but actually needs to be an external facing Internet address contactable remotely on port 22.

So you will not get this working unless that [email protected] is a dns registered address that forwards port 22 to your development machine through NAT.

This is definitely the hard part and in many cases not possible to do at all.

I think a warning should be visible on this so poor schlubs don't waste precious time trying to figure out what '[email protected]' needs to be so this works.

README instruction not clear

Hi could you please specify in the instructions which steps are performed on the local machine and which are performed on the remote server?

Feature request

It would be nice to change focus to the window of the file when the command is invoked on the remote host. Also bring the focus back to the terminal when the file is closed.

I don't get the installation guide.

Hey,

Could you help me with the installation part? It makes no sense to me. Where should I add my username and password?
What should

Go to the remote system and run
rmate -p 52698 file

even mean? What is it for?

Thank you!

Status bar says "Starting server" and then nothing happens

I have tried with several versions of VSCode, most recently Version 1.12.2, running on OSX 10.11.6.

Occasionally it says "Server started" but there is never any ports opened, my configuration is as follows:

"remote.port": 52689,
"remote.onstartup": true,
"remote.host": "127.0.0.1",

Also trying to restart from inside the editor only gives the status bar text but no server is ever started/port 52689 remains closed and unbound.

Is there some part of the instructions missing to get this working? I have looked through all output windows and logs I can find without discovering any debug/error info.

Opens files in sublime not VS Code

So I had the textmate setup for Sublime and after following the directions above, when I type rcode [filemane] it opens the file in sublime over VS code

Is it possible to have both sublime and VS Code as an option or is it one or the other?

Else How would I be able to convert it to open VS Code instead of Sublime Text?

Closing file do not work anymore.

Hi,

First fo all, thanks for this extension!

Since the april update (not completely sure about the date), I need to close the window to end properly the rmate process.
Previously, it was working when closing the file (which is more convenient than closing and reopening VSC every time).
Any idea ?

VSC version 1.12.2
MacOS Sierra 10.12.5
rmate 1.5.9 (2017-02-10) on linux

Thanks

Nothing happens when opening a large file

Hi, glad to see there's finally a remote extension for vscode!

I just tried out your extension and ran into this issue while trying to open up a 16MB file from a remote server. The rmate command loads for a while (2.663 s) and then exists (without error) but nothing opens up in vscode. Works fine with smaller files.

I would like to make a suggestion as a terminal-only user

I do not know VSCode at all, and the only reason I am trying it is because of this plugin, to be able to remotely edit over SSH.

Having said that, my suggestion/question is simple - Can you make the instructions a little more clear to people who have absolutely no idea what VSCode is or how to use it?

The first thing under "Usage Settings" it tells you how to configure the User Settings. Here's the catch - you don't explain what "User Settings" are or where it's located. I don't know if I should be looking at user settings in the vscode extension, or within the main settings of VSCode itself. I now find myself needing to google "VSCode User Settings" to try and figure out where these settings are located.

For example, if it's VSCode main app User Settings I need to check out, maybe you could provide a link to the documentation for it.

Allow listening on multiple ports?

Wondering how hard would it be to allow for multiple ports to be listened to?

For example when you might need to connect more than one remote ssh server.

Error saving files after reconnecting to server

When working on files, if the SSH connection ever dies, then once it is reestablished, I should still be able to save files. Current behavior gives an error saying "Error saving to <remote_name>"

There are two ways I've hit this scenario:

  1. I'm working on files, and at the end of the day, I sleep my computer to go home. The next morning, I re-initiate the SSH connection to the server, but now I have to close and reopen all files in order for them to save.

  2. I'm working on files, and for whatever reason I need to reboot the remote machine. Once the reboot is done, and I re-initiate the SSH connection to the server, I still have to close and reopen all files in order for them to save.

create new workspace for each server

Right now the files are opened in current window/workspace. It would be great to create a new workspace when opening a remote file. and each subsequent remote file from same server should open in that same workspace.

What needs to be changed to make this happen? maintain a map of remote-host>vscode-workspace somewhere. Create a folder named with server name in TEMP and place all files from that server in that folder. Open that folder in vscode.

Does it work on Windows 10?

I keep getting the Connection refused error.

$ rmate file.txt 
connect to localhost port 52698 failed: Connection refused

But I'm able to do it if I run the command with Sublime. Am I missing something (and yes the server has been started)?

open several files at once

Hallo,

with remote atom it's posible to write into my remote bash something like
rmate file1.txt file2.txt
or even
rmate file*
and it opens multiple files at once.

I thought this doesn't work in VSCode because of the preview mode in vscode so I deactivated it through
"workbench.editor.enablePreview": false
in my user settings.

However it doesnt work. It still opens just one file in VSCode.

I would love to see above feature in remote vscode. Do you think this is something doable?

Thanks a lot!

Error: Failed to start server, port 52698 already in use

When configured with
"remote.onstartup": true,

Then when open a new window, or restart vscode with multiple windows, the message is given. It seems every window will start a server so it get the message. It should be started only once.

Enhancement: prevent preview for remotely edited files

When editing files using this extension, the files are opened as preview editors, meaning they're re-used (this is assuming that preview is turned on via workbench.editor.enablePreview). This occurs even when workbench.editor.enablePreviewFromQuickOpen is set to false (I've no expectation that that setting would affect remote-vscode, but I tried it nonetheless).

It would be nice if this were configurable somehow, either globally for all remote edits, or on a per-file basis via a command-line option. Ideally we could have a global setting and then toggle it via the command-line.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.