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
Fix spelling discrepancies #51
Fix spelling discrepancies #51
Conversation
Hi @k-kuroguro , This kind of typo (on settings) are the worst, because fixing it will make those settings stop to work 😞 . I'm not sure how widely used are, so I don't know it worth a migration routine, but I'll see. Thank you |
Hi @alefragnani, thanks for reviewing. You're right, we must be cautious about updates. {
"fileAccess.hideWhenWritable": {
"type": "boolean",
"default": false,
"description": "Hide the Status Bar indicator when the file is Writable",
"markdownDeprecationMessage": "**Deprecated**: Please use `#fileAccess.hideWhenWriteable#` instead.",
"deprecationMessage": "Deprecated: Please use fileAccess.hideWhenWriteable instead."
},
"fileAccess.hideWhenWriteable": {
"type": "boolean",
"default": false,
"description": "Hide the Status Bar indicator when the file is Writeable"
}
} |
Hi @k-kuroguro , I think deprecating is a good alternative. 👍 But, you could simplify the message, removing the Deprecated: prefix. Simply use Thank you |
Hi @alefragnani , thanks for replying. I have a little problem about deprecated settings.
const config = typeof workspace.getConfiguration("fileAccess").get('hideWhenWriteable') === 'undefined'
? workspace.getConfiguration("fileAccess").get("hideWhenWritable", false)
: workspace.getConfiguration("fileAccess").get("hideWhenWriteable", false);
I'll change as following
Both will remove the existing code. Is there a better way to do this? |
Hi @k-kuroguro , Well, I didn’t notice Simply update the setting. No need to check for old values or anything like that. The old value will be ignored, the user will open |
…ly-indicator into fix-spellingDiscrepancies
@alefragnani, thanks for answering! I add deprecated msg only |
I found mixing 'writable' and 'writeable' in your code, fix 'writable' to 'writeable', because 'writeable' was there from the initial commit, and 'writable' seemed to have been added later.