This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import * as pty from "node-pty"; | |
import * as rpc from "vscode-jsonrpc"; | |
const is32ProcessOn64Windows = process.env.hasOwnProperty('PROCESSOR_ARCHITEW6432'); | |
const powerShellPath = `${process.env.windir}\\${is32ProcessOn64Windows ? 'Sysnative' : 'System32'}\\WindowsPowerShell\\v1.0\\powershell.exe`; | |
const cmdPath = `${process.env.windir}\\${is32ProcessOn64Windows ? 'Sysnative' : 'System32'}\\cmd.exe`; | |
const bashPath = `${process.env.windir}\\${is32ProcessOn64Windows ? 'Sysnative' : 'System32'}\\bash.exe`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"code": "0x00030200", | |
"name": "STG_S_CONVERTED", | |
"desc": "The underlying file was converted to compound file format." | |
}, | |
{ | |
"code": "0x00030201", | |
"name": "STG_S_BLOCK", | |
"desc": "The storage operation should block until more data is available." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::mem; | |
#[no_mangle] | |
pub extern "C" fn alloc(size: usize) -> *mut u8 { | |
let mut buf = Vec::with_capacity(size); | |
let ptr = buf.as_mut_ptr(); | |
mem::forget(buf); // This is JS' responsibility now | |
return ptr as *mut u8; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.terminal .xterm-color-0 { | |
color: #000000; | |
} | |
.terminal .xterm-bg-color-0 { | |
background-color: #000000; | |
} | |
.terminal .xterm-color-1 { | |
color: #cd3131; |