continue-custom/server/continuedev/plugins/steps/comment_code.py
Nate Sesti 279593a848
Strong typing (#533)
* refactor: ♻️ get rid of continuedev.src.continuedev structure

* refactor: ♻️ switching back to server folder

* feat: ✨ make config.py imports shorter

* feat: 🔖 publish as pre-release vscode extension

* refactor: ♻️ refactor and add more completion params to ui

* build: 🏗️ download from preview S3
2023-10-04 23:47:59 -07:00

16 lines
471 B
Python

from ...core.main import ContinueSDK, Models, Step
from .main import EditHighlightedCodeStep
class CommentCodeStep(Step):
hide: bool = True
async def describe(self, models: Models):
return "Writing comments"
async def run(self, sdk: ContinueSDK):
await sdk.run_step(
EditHighlightedCodeStep(
user_input="Write comprehensive comments in the canonical format for every class and function"
)
)