@microsoft/inshellisense 0.0.1-rc.21 → 0.0.1-rc.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +11 -78
- package/CODE_OF_CONDUCT.md +0 -9
- package/LICENSE +0 -21
- package/README.md +0 -132
- package/SECURITY.md +0 -41
- package/SUPPORT.md +0 -13
- package/build/commands/complete.js +0 -16
- package/build/commands/doctor.js +0 -11
- package/build/commands/init.js +0 -24
- package/build/commands/root.js +0 -37
- package/build/commands/specs/list.js +0 -26
- package/build/commands/specs/root.js +0 -8
- package/build/commands/uninstall.js +0 -11
- package/build/index.js +0 -35
- package/build/isterm/commandManager.js +0 -184
- package/build/isterm/index.js +0 -4
- package/build/isterm/pty.js +0 -361
- package/build/runtime/alias.js +0 -66
- package/build/runtime/generator.js +0 -55
- package/build/runtime/model.js +0 -3
- package/build/runtime/parser.js +0 -133
- package/build/runtime/runtime.js +0 -282
- package/build/runtime/spec.js +0 -36
- package/build/runtime/suggestion.js +0 -232
- package/build/runtime/template.js +0 -50
- package/build/runtime/utils.js +0 -121
- package/build/ui/suggestionManager.js +0 -162
- package/build/ui/ui-doctor.js +0 -69
- package/build/ui/ui-root.js +0 -141
- package/build/ui/ui-uninstall.js +0 -9
- package/build/ui/utils.js +0 -57
- package/build/utils/ansi.js +0 -37
- package/build/utils/config.js +0 -99
- package/build/utils/log.js +0 -39
- package/build/utils/shell.js +0 -318
- package/build/utils/version.js +0 -13
- package/scripts/postinstall.js +0 -9
- package/shell/bash-preexec.sh +0 -380
- package/shell/shellIntegration-env.zsh +0 -12
- package/shell/shellIntegration-login.zsh +0 -9
- package/shell/shellIntegration-profile.zsh +0 -9
- package/shell/shellIntegration-rc.zsh +0 -66
- package/shell/shellIntegration.bash +0 -114
- package/shell/shellIntegration.fish +0 -27
- package/shell/shellIntegration.nu +0 -29
- package/shell/shellIntegration.ps1 +0 -26
- package/shell/shellIntegration.xsh +0 -31
- package/todo.md +0 -17
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
from xonsh.main import XSH
|
|
3
|
-
|
|
4
|
-
def __is_prompt_start() -> str:
|
|
5
|
-
return "\001" + "\x1b]6973;PS\x07"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
def __is_prompt_end() -> str:
|
|
9
|
-
return "\001" + "\x1b]6973;PE\x07" + "\002"
|
|
10
|
-
|
|
11
|
-
def __is_escape_value(value: str) -> str:
|
|
12
|
-
byte_list = [bytes([byte]).decode("utf-8") for byte in list(value.encode("utf-8"))]
|
|
13
|
-
return "".join(
|
|
14
|
-
[
|
|
15
|
-
"\\x3b" if byte == ";" else "\\\\" if byte == "\\" else "\\x1b" if byte == "\x1b" else "\x0a" if byte == "\n"else "\\x07" if byte == "\x07" else byte
|
|
16
|
-
for byte in byte_list
|
|
17
|
-
]
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
def __is_update_cwd() -> str:
|
|
21
|
-
return f"\x1b]6973;CWD;{__is_escape_value(os.getcwd())}\x07" + "\002"
|
|
22
|
-
|
|
23
|
-
__is_original_prompt = $PROMPT
|
|
24
|
-
|
|
25
|
-
$PROMPT_FIELDS['__is_prompt_start'] = __is_prompt_start
|
|
26
|
-
$PROMPT_FIELDS['__is_prompt_end'] = __is_prompt_end
|
|
27
|
-
$PROMPT_FIELDS['__is_update_cwd'] = __is_update_cwd
|
|
28
|
-
if 'ISTERM_TESTING' in ${...}:
|
|
29
|
-
$PROMPT = "> "
|
|
30
|
-
|
|
31
|
-
$PROMPT = "{__is_prompt_start}{__is_update_cwd}" + $PROMPT + "{__is_prompt_end}"
|
package/todo.md
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
- [x] convert source code to commonjs
|
|
2
|
-
- [x] convert deps to commonjs (fig/autocomplete is esm)
|
|
3
|
-
- [ ] convert requires to SEA requires
|
|
4
|
-
- [ ] swap over to node-pty
|
|
5
|
-
- [ ] build for SEA
|
|
6
|
-
|
|
7
|
-
esbuild build/index.js --bundle --platform=node --outdir=bundle --format=cjs --external:node-pty
|
|
8
|
-
node scripts/require.js
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
replace `../build/Debug/pty.node` with ``
|
|
12
|
-
|
|
13
|
-
node --experimental-sea-config sea-config.json
|
|
14
|
-
node -e "require('fs').copyFileSync(process.execPath, 'hello.exe')"
|
|
15
|
-
signtool remove /s hello.exe
|
|
16
|
-
npx postject hello.exe NODE_SEA_BLOB sea-prep.blob `
|
|
17
|
-
--sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
|