Add `Parameter` type in csharp model pack editor for sourceModel.

Open
#4,054 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
50/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp, typescript
Domain
devtools

Research direction

No file or test is named. Start by locating the C# model pack editor code that defines sourceModel options, then trace how it generates model-pack data. Done means the editor offers Parameter and produces Parameter[0] in the generated data without manual replacement.

Written by the indexing model from the issue text.

Description

enhancement VSCode

Is your feature request related to a problem? Please describe.
The CodeQL model editor for csharp does not allow to add a Parameter for a sourceModel:

Image

Describe the solution you'd like
It would be nice to add the Parameter option to generate things like this:

extensions:
  - addsTo:
      pack: codeql/csharp-all
      extensible: sourceModel
    data:
      - ["Abp.Web.Models", "AjaxResponseBase", False, "set_TargetUrl", "(System.String)", "", "Parameter[0]", "remote", "manual"]

Describe alternatives you've considered
For now I need to open the generated model pack and replace manually Argument[0] by Parameter[0].

Dominant language
TypeScript
Stars
539
Forks
240
Avg merge
2d 6h
Merged PRs (30d)
29

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.

More from github/vscode-codeql

All issues in github/vscode-codeql

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.