microsoft / microsoft/TypeScript

FEATURE REQUEST: For TypeScript / JS add new refactor feature: if class method can be static add tooltip "make method static"

Open
#58,588 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Awaiting More Feedback Domain: LS: Refactorings Suggestion
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
1d 19h
Merged PRs (30d)
117

Description

TypeScript new refactor feature

If class method can be static (doesnt use this in code body) - add tooltip menu make method static with refactor all usages to call this method with static call (Class.Method)

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 files, tests, or entry points are named. Start by locating the TypeScript language-service refactoring implementation for class methods and its tests, then verify the proposed static-method action, tooltip, and usage updates across relevant TypeScript and JavaScript cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.