vscode-terminal-mcp 0.1.3 → 0.1.4
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/dist/extension.js +6 -1
- package/package.json +1 -1
package/dist/extension.js
CHANGED
|
@@ -5568,7 +5568,12 @@ async function handleTerminalRun(params, sessionManager2) {
|
|
|
5568
5568
|
timeoutMs,
|
|
5569
5569
|
waitForCompletion
|
|
5570
5570
|
);
|
|
5571
|
-
|
|
5571
|
+
let cleanOutput = result.output.replace(/\x1b\[[0-9;]*[a-zA-Z]/g, "").replace(/\x1b\][^\x07]*\x07/g, "").replace(/\r\n/g, "\n").replace(/\r/g, "").trim();
|
|
5572
|
+
const lines = cleanOutput.split("\n");
|
|
5573
|
+
if (lines.length > 0 && lines[0].trim() === input.command.trim()) {
|
|
5574
|
+
lines.shift();
|
|
5575
|
+
cleanOutput = lines.join("\n").trim();
|
|
5576
|
+
}
|
|
5572
5577
|
const statusParts = [
|
|
5573
5578
|
`exit: ${result.exitCode ?? "n/a"}`,
|
|
5574
5579
|
`${result.durationMs}ms`,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "vscode-terminal-mcp",
|
|
3
3
|
"displayName": "Terminal MCP Server",
|
|
4
4
|
"description": "MCP server that provides visible terminal sessions in VSCode for Claude Code and subagents",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.4",
|
|
6
6
|
"publisher": "sirlordt",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "sirlordt",
|