posit-dev / posit-dev/positron

Feature request: add more JSON prompts in the workbench settings to allow distinguishing of sent and received code and output

Open
#5,115 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: console area: ui enhancement
Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 11h
Merged PRs (30d)
206

Description

as discussed in: #5069

System details:

Positron and OS details:
Positron Version: 2024.11.0 (Universal) build 69
Code - OSS Version: 1.93.0
Commit: 4cde19a003d09cf75114ec8650020b132bbc5554
Date: 2024-10-21T02:48:15.195Z
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.0.0
Interpreter details:

R 4.4.1

Describe the issue:

Console does not color distinguish code prompts sent and received to the console.

Steps to reproduce the issue:

  1. First, install.packages("palmerpenguins") and install.packages("tidyverse") in Rstudio and Positron
  2. In positron and Rstudios, send to the console penguins_raw |> select(Species, Island, Region)
  3. Observe output in Console in both Rstudios and Positron

Rstudio output:
Image

Positron output:
Image

Expected or desired behavior:

Positron settings JSON file should have a bit more extensive customization of console output to mimic similar console output behavior to Rstudios. Similar to how you can currently call "positronConsole.foreground": "#dec5f0dc" in the settings JSON, to customize the console text color, there should be an option to call, or be able to customize the console output to better differentiate the different objects sent and returned on the console for streamline workflow similar to Rstudios behavior when sending and receiving from the console.

Image

Were there any error messages in the UI, Output panel, or Developer Tools console?

NA

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the workbench settings handling for the existing positronConsole.foreground option and trace how console text is styled. Define configurable distinctions for sent code, received code, and output, then verify that the settings produce separate console appearances comparable to the requested RStudio behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.