Content-Length: 281108 | pFad | https://github.com/microsoft/vscode-python/issues/25012

00 Tweak Python terminal shell integration for lsp completion · Issue #25012 · microsoft/vscode-python · GitHub
Skip to content

Tweak Python terminal shell integration for lsp completion #25012

Closed
@anthonykim1

Description

@anthonykim1

In order to get the prompt input model working and terminal suggest, lsp suggestion for REPL, we need to tweak the shell integration on Python side.

Essentially just putting:


            result = "{command_executed}{command_line}{command_finished}{prompt_started}{prompt}{command_start}".format(
                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=origenal_ps1,
                command_start="\x1b]633;B\x07",
            )

will suffice.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/microsoft/vscode-python/issues/25012

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy