Update Fedora state: 2026-04-29 11:50
This commit is contained in:
parent
42ca768584
commit
10f0d5de1d
338 changed files with 18983 additions and 32 deletions
|
|
@ -0,0 +1,3 @@
|
|||
{"kind":0,"v":{"version":3,"creationDate":1771726602463,"initialLocation":"panel","responderUsername":"","sessionId":"15f13b33-3dc7-40aa-8a44-bc553620d024","hasPendingEdits":false,"requests":[],"pendingRequests":[],"inputState":{"attachments":[],"mode":{"id":"agent","kind":"agent"},"inputText":"","selections":[{"startLineNumber":1,"startColumn":1,"endLineNumber":1,"endColumn":1,"selectionStartLineNumber":1,"selectionStartColumn":1,"positionLineNumber":1,"positionColumn":1}],"contrib":{"chatDynamicVariableModel":[]}}}}
|
||||
{"kind":1,"k":["responderUsername"],"v":"GitHub Copilot"}
|
||||
{"kind":1,"k":["inputState","selectedModel"],"v":{"identifier":"copilot/gpt-5-mini","metadata":{"extension":{"value":"GitHub.copilot-chat","_lower":"github.copilot-chat"},"id":"gpt-5-mini","vendor":"copilot","name":"GPT-5 mini","family":"gpt-5-mini","tooltip":"Rate is counted at 0x.","version":"gpt-5-mini","multiplier":"0x","maxInputTokens":127805,"maxOutputTokens":64000,"auth":{"providerLabel":"GitHub Copilot Chat","accountLabel":"Breadway"},"isDefaultForLocation":{"panel":true,"terminal":true,"notebook":true,"editor":false},"isUserSelectable":true,"modelPickerCategory":{"label":"Standard Models","order":0},"capabilities":{"vision":true,"toolCalling":true,"agentMode":true}}}}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"kind":0,"v":{"version":3,"creationDate":1774939316365,"customTitle":"Connection error diagnosis request","initialLocation":"panel","responderUsername":"GitHub Copilot","sessionId":"5ac4e9c8-7d0c-4bfc-99ab-f2186f80b5f1","hasPendingEdits":false,"requests":[{"requestId":"request_c7830057-d8e9-42c9-aa1b-c368110ebef9","timestamp":1774939316703,"agent":{"extensionId":{"value":"ms-vscode-remote.remote-ssh","_lower":"ms-vscode-remote.remote-ssh"},"extensionVersion":"0.122.0","publisherDisplayName":"Microsoft","extensionPublisherId":"ms-vscode-remote","extensionDisplayName":"Remote - SSH","id":"remote-ssh","description":"Learn about Remote - SSH and diagnose connection issues","when":"config.remote.SSH.experimental.chat","metadata":{"isSticky":true,"themeIcon":{"id":"remote"},"hasFollowups":false},"name":"remote-ssh","fullName":"Remote - SSH","locations":["panel"],"modes":["agent","ask","edit"],"slashCommands":[],"disambiguation":[]},"modelId":"copilot/gpt-5.3-codex","responseId":"response_dcbb0c20-6bcb-41c7-adbd-63716ac3d0b6","modelState":{"value":0},"contentReferences":[],"codeCitations":[],"timeSpentWaiting":1774939316703,"response":[{"kind":"mcpServersStarting","didStartServerIds":[]}],"message":{"text":"@remote-ssh diagnose my last connection error","parts":[{"range":{"start":0,"endExclusive":11},"editorRange":{"startLineNumber":1,"startColumn":1,"endLineNumber":1,"endColumn":12},"agent":{"extensionId":{"value":"ms-vscode-remote.remote-ssh","_lower":"ms-vscode-remote.remote-ssh"},"extensionVersion":"0.122.0","publisherDisplayName":"Microsoft","extensionPublisherId":"ms-vscode-remote","extensionDisplayName":"Remote - SSH","id":"remote-ssh","description":"Learn about Remote - SSH and diagnose connection issues","when":"config.remote.SSH.experimental.chat","metadata":{"isSticky":true,"themeIcon":{"id":"remote"},"hasFollowups":false},"name":"remote-ssh","fullName":"Remote - SSH","locations":["panel"],"modes":["agent","ask","edit"],"slashCommands":[],"disambiguation":[]},"kind":"agent"},{"range":{"start":11,"endExclusive":45},"editorRange":{"startLineNumber":1,"startColumn":12,"endLineNumber":1,"endColumn":46},"text":" diagnose my last connection error","kind":"text"}]},"variableData":{"variables":[]}}],"pendingRequests":[],"inputState":{"attachments":[],"mode":{"id":"ask","kind":"ask"},"selectedModel":{"identifier":"copilot/gpt-5.3-codex","metadata":{"extension":{"value":"GitHub.copilot-chat","_lower":"github.copilot-chat"},"id":"gpt-5.3-codex","vendor":"copilot","name":"GPT-5.3-Codex","family":"gpt-5.3-codex","tooltip":"OpenAI Codex model specialized for code generation, debugging, and software development tasks. Rate is counted at 1x.","version":"gpt-5.3-codex","multiplier":"1x","maxInputTokens":271805,"maxOutputTokens":128000,"auth":{"providerLabel":"GitHub Copilot Chat","accountLabel":"Breadway"},"isDefaultForLocation":{"panel":false,"terminal":false,"notebook":false,"editor":false},"isUserSelectable":true,"modelPickerCategory":{"label":"Premium Models","order":1},"capabilities":{"vision":true,"toolCalling":true,"agentMode":true}}},"inputText":"@remote-ssh ","selections":[{"startLineNumber":1,"startColumn":13,"endLineNumber":1,"endColumn":13,"selectionStartLineNumber":1,"selectionStartColumn":13,"positionLineNumber":1,"positionColumn":13}],"contrib":{"chatDynamicVariableModel":[]}}}}
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,3 @@
|
|||
{"kind":0,"v":{"version":3,"creationDate":1775014837233,"initialLocation":"panel","responderUsername":"","sessionId":"93153c4c-abc7-42d0-a6c8-ddaf556cfb10","hasPendingEdits":false,"requests":[],"pendingRequests":[]}}
|
||||
{"kind":1,"k":["responderUsername"],"v":"GitHub Copilot"}
|
||||
{"kind":1,"k":["inputState"],"v":{"attachments":[],"mode":{"id":"agent","kind":"agent"},"selectedModel":{"identifier":"copilot/gpt-5.3-codex","metadata":{"extension":{"value":"GitHub.copilot-chat","_lower":"github.copilot-chat"},"id":"gpt-5.3-codex","vendor":"copilot","name":"GPT-5.3-Codex","family":"gpt-5.3-codex","tooltip":"GPT-5.3-Codex is currently experiencing degraded performance due to issues with the model upstream provider. We are actively working to resolve the issue. In the meantime, you might want to use Auto or a different model. Rate is counted at 1x.","version":"gpt-5.3-codex","multiplier":"1x","maxInputTokens":271805,"maxOutputTokens":128000,"auth":{"providerLabel":"GitHub Copilot Chat","accountLabel":"Breadway"},"isDefaultForLocation":{"panel":false,"terminal":false,"notebook":false,"editor":false},"isUserSelectable":true,"statusIcon":{"id":"warning"},"modelPickerCategory":{"label":"Premium Models","order":1},"capabilities":{"vision":true,"toolCalling":true,"agentMode":true}}},"inputText":"","selections":[{"startLineNumber":1,"startColumn":1,"endLineNumber":1,"endColumn":1,"selectionStartLineNumber":1,"selectionStartColumn":1,"positionLineNumber":1,"positionColumn":1}],"contrib":{"chatDynamicVariableModel":[]}}}
|
||||
|
|
@ -0,0 +1 @@
|
|||
11cce4da-1080-468f-b2b6-e1415670b45b
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,219 @@
|
|||
#---------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
#---------------------------------------------------------------------------------------------
|
||||
|
||||
# Windows GitHub Copilot CLI bootstrapper
|
||||
#
|
||||
# Responsibilities:
|
||||
# 1. Locate the real Copilot CLI binary (avoid recursion if this file shadows it).
|
||||
# 2. Offer to install if missing (npm -g @github/copilot).
|
||||
# 3. Enforce minimum version (>= REQUIRED_VERSION) with interactive update.
|
||||
# 4. Execute the real binary with original arguments and exit with its status.
|
||||
#
|
||||
# NOTE: This file intentionally keeps logic self‑contained (no external deps) so it can be dropped into PATH directly.
|
||||
|
||||
# Minimum required Copilot CLI version
|
||||
$RequiredVersion = "0.0.394"
|
||||
$PackageName = "@github/copilot"
|
||||
|
||||
function Invoke-NpmGlobalCommand {
|
||||
param(
|
||||
[Parameter(Mandatory = $true)][ValidateSet('install', 'update')][string]$Command,
|
||||
[Parameter(Mandatory = $true)][string]$Package
|
||||
)
|
||||
|
||||
$npmArgs = @($Command, '-g', $Package)
|
||||
|
||||
$npmCmd = Get-Command npm.cmd -ErrorAction SilentlyContinue
|
||||
if ($npmCmd) {
|
||||
& npm.cmd @npmArgs
|
||||
} else {
|
||||
& npm @npmArgs
|
||||
}
|
||||
}
|
||||
|
||||
function Find-RealCopilot {
|
||||
# Find the real copilot binary, avoiding this script if it's in PATH
|
||||
$CurrentScript = $MyInvocation.PSCommandPath
|
||||
if (-not $CurrentScript) { $CurrentScript = $PSCommandPath }
|
||||
$CopilotPath = (Get-Command copilot -ErrorAction SilentlyContinue).Source
|
||||
|
||||
# Check if the copilot command would point to this script
|
||||
$CurrentScriptResolved = if ($CurrentScript) { (Resolve-Path $CurrentScript -ErrorAction SilentlyContinue).Path } else { $null }
|
||||
$CopilotPathResolved = if ($CopilotPath) { (Resolve-Path $CopilotPath -ErrorAction SilentlyContinue).Path } else { $null }
|
||||
|
||||
if ($CurrentScript -eq $CopilotPath -or (Split-Path $CurrentScript -Parent) -eq (Split-Path $CopilotPath -Parent) -or ($CurrentScriptResolved -and $CopilotPathResolved -and $CurrentScriptResolved -eq $CopilotPathResolved)) {
|
||||
# The copilot in PATH is this script, find the real one by temporarily removing this script's directory from PATH
|
||||
$ScriptDir = Split-Path $CurrentScript -Parent
|
||||
$OldPath = $env:PATH
|
||||
# Use appropriate path delimiter based on OS
|
||||
$PathDelimiter = if ($IsWindows -or $env:OS -eq "Windows_NT") { ';' } else { ':' }
|
||||
$env:PATH = ($env:PATH -split $PathDelimiter | Where-Object { $_ -ne $ScriptDir }) -join $PathDelimiter
|
||||
$RealCopilot = (Get-Command copilot -ErrorAction SilentlyContinue).Source
|
||||
$env:PATH = $OldPath
|
||||
|
||||
if ($RealCopilot -and (Test-Path $RealCopilot)) {
|
||||
return $RealCopilot
|
||||
} else {
|
||||
return $null
|
||||
}
|
||||
} else {
|
||||
# The copilot in PATH is different from this script, use it
|
||||
if ($CopilotPath -and (Test-Path $CopilotPath)) {
|
||||
return $CopilotPath
|
||||
} else {
|
||||
return $null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function Test-VersionCompatibility {
|
||||
param([string]$Version)
|
||||
$cleanInstalled = $Version -replace '^v',''
|
||||
$cleanRequired = $RequiredVersion -replace '^v',''
|
||||
try {
|
||||
$installedVer = [version]$cleanInstalled
|
||||
$requiredVer = [version]$cleanRequired
|
||||
} catch {
|
||||
return $false
|
||||
}
|
||||
return ($installedVer -ge $requiredVer)
|
||||
}
|
||||
|
||||
function Test-AndLaunchCopilot {
|
||||
param([string[]]$Arguments)
|
||||
|
||||
# Check if real copilot command exists
|
||||
$realCopilot = Find-RealCopilot
|
||||
if (-not $realCopilot) {
|
||||
Write-Host "Cannot find GitHub Copilot CLI (https://docs.github.com/en/copilot/how-tos/set-up/install-copilot-cli)"
|
||||
$answer = Read-Host "Install GitHub Copilot CLI? (y/N)"
|
||||
if ($answer -eq "y" -or $answer -eq "Y") {
|
||||
try {
|
||||
Invoke-NpmGlobalCommand -Command 'install' -Package $PackageName
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
Test-AndLaunchCopilot $Arguments
|
||||
return
|
||||
} else {
|
||||
Read-Host "Installation failed. Please check your npm configuration and try again (or run: npm install -g @github/copilot)."
|
||||
return
|
||||
}
|
||||
} catch {
|
||||
Read-Host "Installation failed. Please check your npm configuration and try again (or run: npm install -g @github/copilot)."
|
||||
return
|
||||
}
|
||||
} else {
|
||||
exit 0
|
||||
}
|
||||
}
|
||||
|
||||
# Check version compatibility
|
||||
$realCopilot = Find-RealCopilot
|
||||
if (-not $realCopilot) {
|
||||
Write-Host "Error: Unable to find copilot binary."
|
||||
$answer = Read-Host "Would you like to reinstall GitHub Copilot CLI? (y/N)"
|
||||
if ($answer -eq "y" -or $answer -eq "Y") {
|
||||
Write-Host "Reinstalling GitHub Copilot CLI..."
|
||||
try {
|
||||
Invoke-NpmGlobalCommand -Command 'install' -Package $PackageName
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
Test-AndLaunchCopilot $Arguments
|
||||
return
|
||||
} else {
|
||||
Read-Host "Reinstallation failed. Please check your npm configuration and try again (or run: npm install -g @github/copilot)."
|
||||
return
|
||||
}
|
||||
} catch {
|
||||
Read-Host "Reinstallation failed. Please check your npm configuration and try again (or run: npm install -g @github/copilot)."
|
||||
return
|
||||
}
|
||||
} else {
|
||||
exit 0
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
$versionOutput = & $realCopilot --version 2>$null
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "Command failed"
|
||||
}
|
||||
} catch {
|
||||
# Write-Host "Error: Unable to check copilot version."
|
||||
$answer = Read-Host "Would you like to reinstall GitHub Copilot CLI? (y/N)"
|
||||
if ($answer -eq "y" -or $answer -eq "Y") {
|
||||
try {
|
||||
Invoke-NpmGlobalCommand -Command 'install' -Package $PackageName
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
Test-AndLaunchCopilot $Arguments
|
||||
return
|
||||
} else {
|
||||
Read-Host "Reinstallation failed. Please check your npm configuration and try again (or run: npm install -g @github/copilot)."
|
||||
return
|
||||
}
|
||||
} catch {
|
||||
Read-Host "Reinstallation failed. Please check your npm configuration and try again (or run: npm install -g @github/copilot)."
|
||||
return
|
||||
}
|
||||
} else {
|
||||
exit 0
|
||||
}
|
||||
}
|
||||
|
||||
# Extract version number from output (search through all lines)
|
||||
$version = $null
|
||||
if ($versionOutput) {
|
||||
foreach ($line in ($versionOutput -split "`n")) {
|
||||
$trimmedLine = $line.Trim()
|
||||
if ($trimmedLine -match '[0-9]+\.[0-9]+\.[0-9]+') {
|
||||
$version = $matches[0]
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Command succeeded - assume CLI is installed even if we can't parse the version
|
||||
|
||||
# Only check version compatibility if we have a valid version
|
||||
if ($version -and -not (Test-VersionCompatibility $version)) {
|
||||
Write-Host "GitHub Copilot CLI version $version is not compatible."
|
||||
Write-Host "Version $RequiredVersion or later is required."
|
||||
$answer = Read-Host "Update GitHub Copilot CLI? (y/N)"
|
||||
if ($answer -eq "y" -or $answer -eq "Y") {
|
||||
try {
|
||||
Invoke-NpmGlobalCommand -Command 'update' -Package $PackageName
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
Test-AndLaunchCopilot $Arguments
|
||||
return
|
||||
} else {
|
||||
Read-Host "Update failed. Please check your npm configuration and try again (or run: npm update -g @github/copilot)."
|
||||
return
|
||||
}
|
||||
} catch {
|
||||
Read-Host "Update failed. Please check your npm configuration and try again (or run: npm update -g @github/copilot)."
|
||||
return
|
||||
}
|
||||
} else {
|
||||
exit 0
|
||||
}
|
||||
}
|
||||
|
||||
# All checks passed, execute the real copilot binary
|
||||
$realCopilot = Find-RealCopilot
|
||||
if ($realCopilot -and (Test-Path $realCopilot)) {
|
||||
& $realCopilot @Arguments
|
||||
} else {
|
||||
Write-Host "Error: Could not find the real GitHub Copilot CLI binary"
|
||||
Read-Host "Please ensure it's properly installed with: npm install -g @github/copilot"
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
# Start the check and launch process
|
||||
$finalArgs = $args
|
||||
# Handle --clear argument
|
||||
if ($args.Length -gt 0 -and $args[0] -eq '--clear') {
|
||||
Clear-Host
|
||||
$finalArgs = $args[1..($args.Length - 1)]
|
||||
}
|
||||
|
||||
Test-AndLaunchCopilot $finalArgs
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
unset NODE_OPTIONS
|
||||
ELECTRON_RUN_AS_NODE=1 "/usr/share/code/code" "/home/breadway/.config/Code/User/globalStorage/github.copilot-chat/copilotCli/copilotCLIShim.js" "$@"
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
unset NODE_OPTIONS
|
||||
ELECTRON_RUN_AS_NODE=1 "/usr/share/code/code" "/home/breadway/.config/Code/User/globalStorage/github.copilot-chat/debugCommand/copilotDebugCommand.js" "vscode://github.copilot-chat" "" "$@"
|
||||
|
|
@ -0,0 +1,108 @@
|
|||
---
|
||||
name: Plan
|
||||
description: Researches and outlines multi-step plans
|
||||
argument-hint: Outline the goal or problem to research
|
||||
target: vscode
|
||||
disable-model-invocation: true
|
||||
tools: ['agent', 'search', 'read', 'execute/getTerminalOutput', 'execute/testFailure', 'web', 'github/issue_read', 'github.vscode-pull-request-github/issue_fetch', 'github.vscode-pull-request-github/activePullRequest', 'vscode/askQuestions']
|
||||
agents: []
|
||||
handoffs:
|
||||
- label: Start Implementation
|
||||
agent: agent
|
||||
prompt: 'Start implementation'
|
||||
send: true
|
||||
- label: Open in Editor
|
||||
agent: agent
|
||||
prompt: '#createFile the plan as is into an untitled file (`untitled:plan-${camelCaseName}.prompt.md` without frontmatter) for further refinement.'
|
||||
send: true
|
||||
showContinueOn: false
|
||||
---
|
||||
You are a PLANNING AGENT, pairing with the user to create a detailed, actionable plan.
|
||||
|
||||
Your job: research the codebase → clarify with the user → produce a comprehensive plan. This iterative approach catches edge cases and non-obvious requirements BEFORE implementation begins.
|
||||
|
||||
Your SOLE responsibility is planning. NEVER start implementation.
|
||||
|
||||
<rules>
|
||||
- STOP if you consider running file editing tools — plans are for others to execute
|
||||
- Use #tool:vscode/askQuestions freely to clarify requirements — don't make large assumptions
|
||||
- Present a well-researched plan with loose ends tied BEFORE implementation
|
||||
</rules>
|
||||
|
||||
<workflow>
|
||||
Cycle through these phases based on user input. This is iterative, not linear.
|
||||
|
||||
## 1. Discovery
|
||||
|
||||
Run #tool:agent/runSubagent to gather context and discover potential blockers or ambiguities.
|
||||
|
||||
MANDATORY: Instruct the subagent to work autonomously following <research_instructions>.
|
||||
|
||||
<research_instructions>
|
||||
- Research the user's task comprehensively using read-only tools.
|
||||
- Start with high-level code searches before reading specific files.
|
||||
- Pay special attention to instructions and skills made available by the developers to understand best practices and intended usage.
|
||||
- Identify missing information, conflicting requirements, or technical unknowns.
|
||||
- DO NOT draft a full plan yet — focus on discovery and feasibility.
|
||||
</research_instructions>
|
||||
|
||||
After the subagent returns, analyze the results.
|
||||
|
||||
## 2. Alignment
|
||||
|
||||
If research reveals major ambiguities or if you need to validate assumptions:
|
||||
- Use #tool:vscode/askQuestions to clarify intent with the user.
|
||||
- Surface discovered technical constraints or alternative approaches.
|
||||
- If answers significantly change the scope, loop back to **Discovery**.
|
||||
|
||||
## 3. Design
|
||||
|
||||
Once context is clear, draft a comprehensive implementation plan per <plan_style_guide>.
|
||||
|
||||
The plan should reflect:
|
||||
- Critical file paths discovered during research.
|
||||
- Code patterns and conventions found.
|
||||
- A step-by-step implementation approach.
|
||||
|
||||
Present the plan as a **DRAFT** for review.
|
||||
|
||||
## 4. Refinement
|
||||
|
||||
On user input after showing a draft:
|
||||
- Changes requested → revise and present updated plan.
|
||||
- Questions asked → clarify, or use #tool:vscode/askQuestions for follow-ups.
|
||||
- Alternatives wanted → loop back to **Discovery** with new subagent.
|
||||
- Approval given → acknowledge, the user can now use handoff buttons.
|
||||
|
||||
The final plan should:
|
||||
- Be scannable yet detailed enough to execute.
|
||||
- Include critical file paths and symbol references.
|
||||
- Reference decisions from the discussion.
|
||||
- Leave no ambiguity.
|
||||
|
||||
Keep iterating until explicit approval or handoff.
|
||||
</workflow>
|
||||
|
||||
<plan_style_guide>
|
||||
```markdown
|
||||
## Plan: {Title (2-10 words)}
|
||||
|
||||
{TL;DR — what, how, why. Reference key decisions. (30-200 words, depending on complexity)}
|
||||
|
||||
**Steps**
|
||||
1. {Action with [file](path) links and `symbol` refs}
|
||||
2. {Next step}
|
||||
3. {…}
|
||||
|
||||
**Verification**
|
||||
{How to test: commands, tests, manual checks}
|
||||
|
||||
**Decisions** (if applicable)
|
||||
- {Decision: chose X over Y}
|
||||
```
|
||||
|
||||
Rules:
|
||||
- NO code blocks — describe changes, link to files/symbols
|
||||
- NO questions at the end — ask during workflow via #tool:vscode/askQuestions
|
||||
- Keep scannable
|
||||
</plan_style_guide>
|
||||
Binary file not shown.
|
|
@ -0,0 +1,88 @@
|
|||
import platform
|
||||
import sys
|
||||
|
||||
if sys.platform != "win32":
|
||||
import readline
|
||||
|
||||
original_ps1 = ">>> "
|
||||
is_wsl = "microsoft-standard-WSL" in platform.release()
|
||||
|
||||
|
||||
class REPLHooks:
|
||||
def __init__(self):
|
||||
self.global_exit = None
|
||||
self.failure_flag = False
|
||||
self.original_excepthook = sys.excepthook
|
||||
self.original_displayhook = sys.displayhook
|
||||
sys.excepthook = self.my_excepthook
|
||||
sys.displayhook = self.my_displayhook
|
||||
|
||||
def my_displayhook(self, value):
|
||||
if value is None:
|
||||
self.failure_flag = False
|
||||
|
||||
self.original_displayhook(value)
|
||||
|
||||
def my_excepthook(self, type_, value, traceback):
|
||||
self.global_exit = value
|
||||
self.failure_flag = True
|
||||
|
||||
self.original_excepthook(type_, value, traceback)
|
||||
|
||||
|
||||
def get_last_command():
|
||||
# Get the last history item
|
||||
last_command = ""
|
||||
if sys.platform != "win32":
|
||||
last_command = readline.get_history_item(readline.get_current_history_length())
|
||||
|
||||
return last_command
|
||||
|
||||
|
||||
class PS1:
|
||||
hooks = REPLHooks()
|
||||
sys.excepthook = hooks.my_excepthook
|
||||
sys.displayhook = hooks.my_displayhook
|
||||
|
||||
# str will get called for every prompt with exit code to show success/failure
|
||||
def __str__(self):
|
||||
exit_code = int(bool(self.hooks.failure_flag))
|
||||
self.hooks.failure_flag = False
|
||||
# Guide following official VS Code doc for shell integration sequence:
|
||||
result = ""
|
||||
# For non-windows allow recent_command history.
|
||||
if sys.platform != "win32":
|
||||
result = "{soh}{command_executed}{command_line}{command_finished}{prompt_started}{stx}{prompt}{soh}{command_start}{stx}".format(
|
||||
soh="\001",
|
||||
stx="\002",
|
||||
command_executed="\x1b]633;C\x07",
|
||||
command_line="\x1b]633;E;" + str(get_last_command()) + "\x07",
|
||||
command_finished="\x1b]633;D;" + str(exit_code) + "\x07",
|
||||
prompt_started="\x1b]633;A\x07",
|
||||
prompt=original_ps1,
|
||||
command_start="\x1b]633;B\x07",
|
||||
)
|
||||
else:
|
||||
result = "{command_finished}{prompt_started}{prompt}{command_start}{command_executed}".format(
|
||||
command_finished="\x1b]633;D;" + str(exit_code) + "\x07",
|
||||
prompt_started="\x1b]633;A\x07",
|
||||
prompt=original_ps1,
|
||||
command_start="\x1b]633;B\x07",
|
||||
command_executed="\x1b]633;C\x07",
|
||||
)
|
||||
|
||||
# result = f"{chr(27)}]633;D;{exit_code}{chr(7)}{chr(27)}]633;A{chr(7)}{original_ps1}{chr(27)}]633;B{chr(7)}{chr(27)}]633;C{chr(7)}"
|
||||
|
||||
return result
|
||||
|
||||
def __repr__(self):
|
||||
return "<Custom PS1 for VS Code Python Shell Integration>"
|
||||
|
||||
|
||||
if sys.platform != "win32" and (not is_wsl):
|
||||
sys.ps1 = PS1()
|
||||
|
||||
if sys.platform == "darwin":
|
||||
print("Cmd click to launch VS Code Native REPL")
|
||||
else:
|
||||
print("Ctrl click to launch VS Code Native REPL")
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"environment": {
|
||||
"executable": "/usr/bin/python3",
|
||||
"prefix": "/usr",
|
||||
"version": "3.14.3.final.0",
|
||||
"is64Bit": true,
|
||||
"symlinks": [
|
||||
"/usr/bin/python3"
|
||||
]
|
||||
},
|
||||
"symlinks": [
|
||||
[
|
||||
"/usr/bin/python3",
|
||||
{
|
||||
"secs_since_epoch": 1774483200,
|
||||
"nanos_since_epoch": 0
|
||||
},
|
||||
null
|
||||
]
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
"environment": {
|
||||
"executable": "/usr/bin/python",
|
||||
"prefix": "/usr",
|
||||
"version": "3.14.3.final.0",
|
||||
"is64Bit": true,
|
||||
"symlinks": [
|
||||
"/usr/bin/python",
|
||||
"/usr/bin/python3",
|
||||
"/usr/bin/python3.14"
|
||||
]
|
||||
},
|
||||
"symlinks": [
|
||||
[
|
||||
"/usr/bin/python",
|
||||
{
|
||||
"secs_since_epoch": 1774483200,
|
||||
"nanos_since_epoch": 0
|
||||
},
|
||||
null
|
||||
],
|
||||
[
|
||||
"/usr/bin/python3",
|
||||
{
|
||||
"secs_since_epoch": 1774483200,
|
||||
"nanos_since_epoch": 0
|
||||
},
|
||||
null
|
||||
],
|
||||
[
|
||||
"/usr/bin/python3.14",
|
||||
{
|
||||
"secs_since_epoch": 1774483200,
|
||||
"nanos_since_epoch": 0
|
||||
},
|
||||
null
|
||||
]
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"environment": {
|
||||
"executable": "/usr/bin/python3.14",
|
||||
"prefix": "/usr",
|
||||
"version": "3.14.3.final.0",
|
||||
"is64Bit": true,
|
||||
"symlinks": [
|
||||
"/usr/bin/python3.14"
|
||||
]
|
||||
},
|
||||
"symlinks": [
|
||||
[
|
||||
"/usr/bin/python3.14",
|
||||
{
|
||||
"secs_since_epoch": 1774483200,
|
||||
"nanos_since_epoch": 0
|
||||
},
|
||||
null
|
||||
]
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"environment": {
|
||||
"executable": "/usr/bin/python3.11",
|
||||
"prefix": "/usr",
|
||||
"version": "3.11.15.final.0",
|
||||
"is64Bit": true,
|
||||
"symlinks": [
|
||||
"/usr/bin/python3.11"
|
||||
]
|
||||
},
|
||||
"symlinks": [
|
||||
[
|
||||
"/usr/bin/python3.11",
|
||||
{
|
||||
"secs_since_epoch": 1774483200,
|
||||
"nanos_since_epoch": 0
|
||||
},
|
||||
null
|
||||
]
|
||||
]
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"environment": {
|
||||
"executable": "/usr/bin/python3.12",
|
||||
"prefix": "/usr",
|
||||
"version": "3.12.13.final.0",
|
||||
"is64Bit": true,
|
||||
"symlinks": [
|
||||
"/usr/bin/python3.12"
|
||||
]
|
||||
},
|
||||
"symlinks": [
|
||||
[
|
||||
"/usr/bin/python3.12",
|
||||
{
|
||||
"secs_since_epoch": 1774483200,
|
||||
"nanos_since_epoch": 0
|
||||
},
|
||||
null
|
||||
]
|
||||
]
|
||||
}
|
||||
BIN
dot_config/private_Code/User/globalStorage/state.vscdb
Normal file
BIN
dot_config/private_Code/User/globalStorage/state.vscdb
Normal file
Binary file not shown.
BIN
dot_config/private_Code/User/globalStorage/state.vscdb.backup
Normal file
BIN
dot_config/private_Code/User/globalStorage/state.vscdb.backup
Normal file
Binary file not shown.
93
dot_config/private_Code/User/globalStorage/storage.json
Normal file
93
dot_config/private_Code/User/globalStorage/storage.json
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
{
|
||||
"telemetry.sqmId": "",
|
||||
"telemetry.machineId": "e94c72ff0387061b6a6c65df3c28c9219c0abbe46893e7ee6b1a47da0ef61c91",
|
||||
"telemetry.devDeviceId": "c4aa5a03-588b-44b5-88b4-1a481f4bf3ee",
|
||||
"backupWorkspaces": {
|
||||
"workspaces": [],
|
||||
"folders": [],
|
||||
"emptyWindows": [
|
||||
{
|
||||
"backupFolder": "1775815287792"
|
||||
}
|
||||
]
|
||||
},
|
||||
"windowControlHeight": 35,
|
||||
"profileAssociations": {
|
||||
"workspaces": {
|
||||
"file:///home/breadway/Documents/Year%2010/Year%2010/Psychology": "__default__profile__",
|
||||
"file:///home/breadway/Documents/Hazard%20Pay": "__default__profile__",
|
||||
"file:///home/breadway/Documents/Laser%20Tag": "__default__profile__",
|
||||
"vscode-remote://ssh-remote%2Batlas.tail4806cb.ts.net/home/riley": "__default__profile__"
|
||||
},
|
||||
"emptyWindows": {
|
||||
"1775815287792": "__default__profile__"
|
||||
}
|
||||
},
|
||||
"theme": "vs-dark",
|
||||
"themeBackground": "#1f1f1f",
|
||||
"windowSplash": {
|
||||
"zoomLevel": 0,
|
||||
"baseTheme": "vs-dark",
|
||||
"colorInfo": {
|
||||
"foreground": "#cccccc",
|
||||
"background": "#1f1f1f",
|
||||
"editorBackground": "#1f1f1f",
|
||||
"titleBarBackground": "#181818",
|
||||
"titleBarBorder": "#2b2b2b",
|
||||
"activityBarBackground": "#181818",
|
||||
"activityBarBorder": "#2b2b2b",
|
||||
"sideBarBackground": "#181818",
|
||||
"sideBarBorder": "#2b2b2b",
|
||||
"statusBarBackground": "#181818",
|
||||
"statusBarBorder": "#2b2b2b",
|
||||
"statusBarNoFolderBackground": "#1f1f1f"
|
||||
},
|
||||
"layoutInfo": {
|
||||
"sideBarSide": "left",
|
||||
"editorPartMinWidth": 220,
|
||||
"titleBarHeight": 35,
|
||||
"activityBarWidth": 48,
|
||||
"sideBarWidth": 300,
|
||||
"auxiliaryBarWidth": 0,
|
||||
"statusBarHeight": 22,
|
||||
"windowBorder": false
|
||||
}
|
||||
},
|
||||
"windowsState": {
|
||||
"lastActiveWindow": {
|
||||
"backupPath": "/home/breadway/.config/Code/Backups/1775815287792",
|
||||
"uiState": {
|
||||
"mode": 0,
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"width": 1200,
|
||||
"height": 800
|
||||
}
|
||||
},
|
||||
"openedWindows": []
|
||||
},
|
||||
"windowSplashWorkspaceOverride": {
|
||||
"layoutInfo": {
|
||||
"sideBarWidth": 300,
|
||||
"auxiliaryBarWidth": 300,
|
||||
"workspaces": {
|
||||
"e387457d3a4ae35149094541b5b1bc98": {
|
||||
"sideBarVisible": true,
|
||||
"auxiliaryBarVisible": true
|
||||
},
|
||||
"d58507d32a163bf14f1020a325e9617c": {
|
||||
"sideBarVisible": true,
|
||||
"auxiliaryBarVisible": true
|
||||
},
|
||||
"9781d15abb972bcb41fa234c3afe65ff": {
|
||||
"sideBarVisible": true,
|
||||
"auxiliaryBarVisible": true
|
||||
},
|
||||
"c3bfe6a4e3ea522f0530724fa39111f1": {
|
||||
"sideBarVisible": true,
|
||||
"auxiliaryBarVisible": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"hosts": {
|
||||
"atlas.tail4806cb.ts.net": {
|
||||
"persistToSSHConfig": true,
|
||||
"differentUserFromSSHConfig": false,
|
||||
"user": "riley"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue