language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

Can we make urls in tooltip clickable?

Open Jolg42 opened this issue 3 years ago • 3 comments

This is maybe a particular example where the warning text comes from prisma-fmt and includes a warning, the link is not clickable. (related)

in insiders v31.0.378 Screen Shot 2021-12-03 at 12 34 10

Not sure if we have other tooltips with links?

Example schema

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

generator client {
  provider        = "prisma-client-js"
}

type MyString = String @default("A")

model Code {
  id  String   @id
}

Jolg42 avatar Dec 03 '21 11:12 Jolg42

First approach might be trying to return a markdown link - would not be surprising if that was picked up.

janpio avatar Dec 03 '21 18:12 janpio

Indeed, could be the solution here!

Jolg42 avatar Dec 06 '21 09:12 Jolg42