PowerShell / PowerShell/vscode-powershell

Feature Request: Refactor - Extract Method

Open
#1,829 6 comments 42 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Symbols & References Issue-Enhancement Up for Grabs
Dominant language
TypeScript
Stars
1.9k
Forks
547
PR merge metrics
No merged PRs in 30d

Description

Summary of the new feature
'As a developer I want a script segment to be extracted out as a function so that function can be used in other scripts files as well.'

Proposed technical implementation details (optional)
This is common functionality provided in VS code
https://code.visualstudio.com/docs/editor/refactoring
https://refactoring.com/catalog/extractFunction.html

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository files, tests, or entry points are identified in the issue. Start by reviewing the VS Code refactoring documentation and the extension's existing architecture, then define the supported extraction cases and tests needed to demonstrate that a script segment becomes a reusable function.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, typescript, vscode
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.