Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeSnap support #98

Open
Kinjalrk2k opened this issue Aug 19, 2022 · 1 comment
Open

CodeSnap support #98

Kinjalrk2k opened this issue Aug 19, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@Kinjalrk2k
Copy link

Is it possible to extend this extension to support other extensions like CodeSnap? Here in the following example, I've added a regex-based syntax highlighting to dim the @Api* stuffs that comes up as a part of @nestjs/swagger module.

  • How it comes up in my VSCode

image

  • How it comes up in CodeSnap (actually the default highlighting from the base theme)

image

Additional debug information:

  • Highlight settings
{
  "highlight.regexes": {
      "(@Api.*\\(((?:.*?|\n)*?)\\))": {
        "regexFlags": "g",
        "decorations": [{ "color": "#6f737a", "fontWeight": "bold" }]
      }
    }
}
  • Code in the example
  @ApiOperation({
    summary: 'Get a list of files',
    description:
      'List down all the files stored in the database. Also attaches an extra \
    field `minioLink` with the PreSignedUrl of the file object. Use the `page` and `limit` \
    query parameters to control the amount of data required in the client. A pagination object \
    defines the current pagination status of the client.',
  })
  @Get()
  @UsePipes(new ValidationPipe({ transform: true }))
  async getAll(@Query() query: GetAllFilesQuery): Promise<GetAllFilesResponse> {
    return this.fileService.listAllFiles(query);
  }
@fabiospampinato
Copy link
Owner

I've no idea if this is implementable, I would have to look into how CodeSnap works. If I had to guess I would say this is not implementable.

@fabiospampinato fabiospampinato added the enhancement New feature or request label Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants