Add user settings in issue template#16492
Conversation
7ef6de1 to
802dadf
Compare
|
@paulacamargo25 Are you working on this? I assume you are handing the string setting cases? |
Yes, now its done :D |
karrtikr
left a comment
There was a problem hiding this comment.
I am unclear on what false and "placeholder" means in the JSON file, seems like we're handling that in the same way.
| "Flake8Args": true, | ||
| "flake8CategorySeverity": false, | ||
| "flake8Enabled": true, | ||
| "flake8Path": false, |
There was a problem hiding this comment.
Not clear on why we have marked this as false, but marked banditPath or like as "placeholder". They both seem similar to me.
| "linting": { | ||
| "enabled": true, | ||
| "cwd": true, | ||
| "Flake8Args": true, |
There was a problem hiding this comment.
| "Flake8Args": true, | |
| "flake8Args": "placeholder", |
Should be lowercased.
brettcannon
left a comment
There was a problem hiding this comment.
I realized we can't take any arguments to tools directly as they may contain file paths.
| "initialize": false, | ||
| "pythonPath": false, | ||
| "onDidChange": false, | ||
| "defaultInterpreterPath": false, |
There was a problem hiding this comment.
| "defaultInterpreterPath": false, | |
| "defaultInterpreterPath": "placeholder", |
| "downloadLanguageServer": true, | ||
| "jediPath": false, | ||
| "jediMemoryLimit": false, | ||
| "envFile": false, |
There was a problem hiding this comment.
| "envFile": false, | |
| "envFile": "placeholder", |
| "envFile": false, | ||
| "venvPath": "placeholder", | ||
| "venvFolders": false, | ||
| "condaPath": false, |
There was a problem hiding this comment.
| "condaPath": false, | |
| "condaPath": "placeholder", |
| "venvPath": "placeholder", | ||
| "venvFolders": false, | ||
| "condaPath": false, | ||
| "pipenvPath": false, |
There was a problem hiding this comment.
| "pipenvPath": false, | |
| "pipenvPath": "placeholder", |
| "venvFolders": false, | ||
| "condaPath": false, | ||
| "pipenvPath": false, | ||
| "poetryPath": false, |
There was a problem hiding this comment.
| "poetryPath": false, | |
| "poetryPath": "placeholder", |
| "testing": { | ||
| "cwd": true, | ||
| "debugPort": true, | ||
| "nosetestArgs": true, |
There was a problem hiding this comment.
| "nosetestArgs": true, | |
| "nosetestArgs": "placeholder", |
| "nosetestsEnabled": true, | ||
| "nosetestPath": "placeholder", | ||
| "promptToConfigure": true, | ||
| "pytestArgs": true, |
There was a problem hiding this comment.
| "pytestArgs": true, | |
| "pytestArgs": "placeholder", |
| "pytestArgs": true, | ||
| "pytestEnabled": true, | ||
| "pytestPath": "placeholder", | ||
| "unittestArgs": true, |
There was a problem hiding this comment.
| "unittestArgs": true, | |
| "unittestArgs": "placeholder", |
| "autoTestDiscoverOnSaveEnabled": true | ||
| }, | ||
| "terminal": true, | ||
| "tensorBoard": true, |
There was a problem hiding this comment.
The only setting related to this that I could find is "python.tensorBoard.logDirectory", which should be a placeholder.
| "unittestEnabled": true, | ||
| "autoTestDiscoverOnSaveEnabled": true | ||
| }, | ||
| "terminal": true, |
There was a problem hiding this comment.
There's a bunch of subcommands.
Lines 1746 to 1769 in 67590fb
There was a problem hiding this comment.
I guess python.terminal.launchArgs could also take file paths and should be marked as a placeholder, when the list is expanded.
|
Would it make sense to either have the allowlist only worry about non-enum strings and arrays from Line 1056 in 67590fb package.json and adds any missing fields with an appropriate marker (either "placeholder" to be safe or XXX to know what changed), and remove any settings that got removed from the "python" namespace?
|
| @@ -0,0 +1,126 @@ | |||
| { | |||
| "initialize": false, | |||
| "pythonPath": false, | |||
There was a problem hiding this comment.
| "pythonPath": false, | |
| "pythonPath": "placeholder", |
| "jediMemoryLimit": false, | ||
| "envFile": false, | ||
| "venvPath": "placeholder", | ||
| "venvFolders": false, |
There was a problem hiding this comment.
| "venvFolders": false, | |
| "venvFolders": "placeholder", |
| "workspaceRoot": false, | ||
| "linting": { | ||
| "enabled": true, | ||
| "cwd": true, |
There was a problem hiding this comment.
| "cwd": true, | |
| "cwd": "placeholder", |
| "defaultLS": { | ||
| "defaultLSType": true | ||
| }, |
There was a problem hiding this comment.
| "defaultLS": { | |
| "defaultLSType": true | |
| }, | |
| "defaultLS": true, |
If all subsettings are marked as true, this should work as well.
| "autoUpdateLanguageServer": false, | ||
| "languageServer": true, | ||
| "languageServerIsDefault": false, | ||
| "logging": false, |
There was a problem hiding this comment.
| "logging": false, | |
| "logging": true, |
| "flake8Path": false, | ||
| "ignorePatterns": false, | ||
| "lintOnSave": true, | ||
| "maxNumberOfProblems": false, |
There was a problem hiding this comment.
| "maxNumberOfProblems": false, | |
| "maxNumberOfProblems": true, |
I like this idea. All of the placeholder items are either non-enum strings or arrays. We could have an exception list instead, where we allow certain non-enum strings or arrays. For eg. |
Yep, I think we are saying the same thing with different terminology 😄: read |
a18484e to
47ca7fa
Compare
|
Is this held up on a positive review from @karrtikr at this point? |
karrtikr
left a comment
There was a problem hiding this comment.
@brettcannon I didn't get the memo I was not re-requested for review.
LGTM otherwise.
I guess we're not going with Brett's suggestion earlier #16492 (comment)?
| "flake8Path": false, | ||
| "ignorePatterns": false, | ||
| "lintOnSave": true, | ||
| "maxNumberOfProblems": false, |
|
@karrtikr I don't think there's a need to automate this right now since we don't mutate our settings often enough (i.e. potentially a premature optimization). |
Add user setting in issue template.
Closes #231.