Frederisk / Wikitext-VSCode-Extension

A Visual Studio Code Extension that provides language support for Wikitext.
MIT License
89 stars 14 forks source link

Better edit summaries? #87

Open TechnoSquirrel69 opened 11 months ago

TechnoSquirrel69 commented 11 months ago

image

Hey there! The "ad" appended to edit summaries using this extension is a bit long, and tends to clog up revision histories with repetitive text. I think a better solution would be to make the edit summary super short, like "(VSCode)", and have that link to an information page on Meta. In addition to having cleaner edit summaries, this'll also give other editors a useful thing to click on when they see edits made with the extension and are curious to know more about it.

Frederisk commented 11 months ago

Good advice! I will consider this option.

Frederisk commented 10 months ago

During the implementation, I found some problems. Because the site where the user is using the extension may not be a Wikimedia project, the link established in the summary may not point to the meta page as expected.

As an alternative, I may later provide an option to allow users to change to a shorter version of the summary suffix.

TechnoSquirrel69 commented 10 months ago

The link appearing could be made conditional based on whether the URL entered in the "host" setting is a WMF wiki. Check if the URL contains "wikipedia.org", "wikimedia.org", etc. Non-WMF wikis could also be added later if they support the [[m:]] interwiki prefix. (Or [[mw:]] if you'd prefer the page on mediawiki.org.) That would already be beneficial to a good chunk of this extension's users, and it'll give other editors an easier way to find this extension, like I mentioned earlier.