Skip to content

Commit

Permalink
disabled redundant languageClient websocket close, moved cursor to on…
Browse files Browse the repository at this point in the history
…e column right after terminal restore
  • Loading branch information
srieger1 committed Jul 7, 2024
1 parent e7540e9 commit 1d91e24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/FileEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ export default class FileEditor extends Component<FileEditorProps> {
// if languageClient connection was closed, this.languageClient will be undefined
void this.languageClient?.dispose();
clearInterval(this.languageClientWSTimerId);
this.languageClientWebSocket.close()
//this.languageClientWebSocket.close()
}

findCommonPathPrefix(strings: string[]): string {
Expand Down
5 changes: 4 additions & 1 deletion frontend/src/components/Terminal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ export default function XTerminal(props: TerminalProps): JSX.Element {

// restore terminal state
terminalRef.write(terminalState ?? "");
terminalRef.write("\x1B[0m");
// ESC[0m resets all styles and colors
//terminalRef.write("\x1B[0m");
// ESC[1C moves cursor one position to the right
terminalRef.write("\x1B[1C");

// resize terminal
fitAddon.fit();
Expand Down

0 comments on commit 1d91e24

Please sign in to comment.