| | 42 | |
| | 43 | === isDate is not a function error === |
| | 44 | Starting from VSCode v1.123.0, the util.isDate function has been removed, causing RemoteFS v0.0.16 to stop working. A temporary workaround is to modify the sftp.js file within the extension directory. For example, you can edit: |
| | 45 | /home/user/.vscode-server/extensions/liximomo.remotefs-0.0.16/node_modules/ssh2-streams/lib/sftp.js |
| | 46 | |
| | 47 | (Refer to the error log for the exact path.) Apply the necessary changes as shown below. |
| | 48 | 1. Commented out the line |
| | 49 | {{{ |
| | 50 | //var isDate = util.isDate; |
| | 51 | }}} |
| | 52 | 2. Add a function |
| | 53 | {{{ |
| | 54 | function isDate(value) { |
| | 55 | return value instanceof Date; |
| | 56 | } |
| | 57 | }}} |