Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal settings per OS not alligned with rest of vscode #8346

Closed
isidorn opened this issue Jun 28, 2016 · 7 comments
Closed

Terminal settings per OS not alligned with rest of vscode #8346

isidorn opened this issue Jun 28, 2016 · 7 comments
Assignees
Labels
polish Cleanup and polish issue terminal General terminal issues that don't fall under another label

Comments

@isidorn
Copy link
Contributor

isidorn commented Jun 28, 2016

#8222

  1. Open settings.json and checkout terminal settings
  2. Notice how there are 3x some settings for each OS
  3. This is not alligned with rest of vscode (tasks.json, launch.json) where a user can specify an OS as field of a setting. By doing this we will not have so many settings for the terminal which will make it more compact and easier to read.

e.g

 "terminal.integrated.shell": {
  "osx": "lala",
  "linux": "asdasd"
}

screen shot 2016-06-28 at 14 52 00

@isidorn isidorn added the terminal General terminal issues that don't fall under another label label Jun 28, 2016
@Tyriar
Copy link
Member

Tyriar commented Jun 28, 2016

Requesting feedback @Microsoft/vscode

What is the ideal format for the settings? 👍 the comment you like if you can't be bothered talking 😃

@Tyriar
Copy link
Member

Tyriar commented Jun 28, 2016

Option 1

What is currently done:

{
  "terminal.integrated.shell.linux": "bash",
  "terminal.integrated.shellArgs.linux": ["-l"]
}

@Tyriar
Copy link
Member

Tyriar commented Jun 28, 2016

Option 2

"terminal.integrated.shell": {
  "linux": "bash"
}
"terminal.integrated.shellArgs": {
  "linux": ["-l"]
}

@Tyriar
Copy link
Member

Tyriar commented Jun 28, 2016

Option 3

Put both the shell executable and args into OS key:

"terminal.integrated.shell": {
  "linux": {
    "exec": "bash",
    "args": ["-l"],
  }
}

@Tyriar
Copy link
Member

Tyriar commented Jun 28, 2016

Option 4

Hybrid of Option 2 and 3, where the os key can take either a string (the executable), or an object (the executable and optionally the args array).

"terminal.integrated.shell": {
  "linux": {
    "shell": "bash",
    "args": ["-l"],
  },
  "osx": "bash"
}

@Tyriar Tyriar added this to the June 2016 milestone Jun 28, 2016
@Tyriar Tyriar added the polish Cleanup and polish issue label Jun 28, 2016
@egamma
Copy link
Member

egamma commented Jun 30, 2016

Settings are different from launch.json and task.json and we intentionally made them as flat as possible so Option 1 is consistent with the existing practice.

@Tyriar
Copy link
Member

Tyriar commented Jun 30, 2016

Closing as designed, we want to keep settings as flat as possible.

@Tyriar Tyriar closed this as completed Jun 30, 2016
@Tyriar Tyriar removed this from the June 2016 milestone Jun 30, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
polish Cleanup and polish issue terminal General terminal issues that don't fall under another label
Projects
None yet
Development

No branches or pull requests

3 participants