SSWConsulting / SSW.FireEmoji

🤖 Automate the selection of GitMojis using AI
https://fireemoji.io
8 stars 1 forks source link

✨Investigate VS 2022 / VS Code extensions #8

Closed tkapa closed 2 years ago

tkapa commented 2 years ago

Cc: @jernejk, @bradystroud, @adamcogan, @jaydenalchin

Hi @tkapa,

Pain

It's awesome that we have our website and application, however a way to access FireEmoji directly from Visual Studio or VSCode as application extensions would be awesome.

Suggested Solution

Investigate how to create Visual Studio and VSCode extensions, and implement FireEmoji's solution when typing commit messages.

Tasks

Thanks!

UPDATE: Added additional tasks.

bradystroud commented 2 years ago

cc: @jernejk After some investigation, it seems likely that it is possible to create a VSC extension that will add an emoji to the commit message field.

This line of code shows how it is possible to read and write to the commit message field https://github.com/seatonjiang/gitmoji-vscode/blob/6ccfb25489b2684ba1cda01187f51f2ff5e020ee/src/extension.ts#L94

JackDevAU commented 2 years ago

cc: @jernejk

Following your suggestion @bradystroud, I made a quick PoC using the node child_process to call a cli version of FireEmoji. Not sure if this is the best idea... but its a start.

FireEmoji Figure: GIF showcasing the current idea

jernejk commented 2 years ago

Can you add a pull request so that we can investigate if that is the right approach? It looks good to me but if it's not the best, we can iterate on it. 😊

Also, we should see if we can show other suggestions and a button to fix the suggestion. (Currently just link to a new GitHub issue)

jernejk commented 2 years ago

@matt-goldman

jernejk commented 2 years ago

Closing the issue and moving the conversation to #43, #44 and #45.