Skip to content

Completion Item tooltips contain backticks which are hard to read. #978

Closed

Description

@baronfel

Completion list tooltips:
image

This is coming from completionItem/resolve, here's a sample payload:

Copy completion item
{
    "label": "Copy",
    "kind": 2,
    "detail": "System.IO.`File`.Copy(sourceFileName: `string`, destFileName: `string`) : `unit`",
    "documentation": {
        "kind": "markdown",
        "value": "Copies an existing file to a new file. Overwriting a file of the same name is not allowed.\r\n\r\n`sourceFileName`: The file to copy.\r\n`destFileName`: The name of the destination file. This cannot be a directory or an existing file.\r\n\r\nExceptions:\r\n\t`System.UnauthorizedAccessException`: The caller does not have the required permission.\r\n\t`System.ArgumentException`: >    .NET Framework and .NET Core versions older than 2.1: `sourceFileName` or `destFileName` is a zero-length string, contains only white space, or contains one or more invalid characters. You can query for invalid characters by using the ``System.IO.Path.GetInvalidPathChars`` method.\r\n\r\n*or*\r\n\r\n>    `sourceFileName` or `destFileName` specifies a directory.\r\n\t`System.ArgumentNullException`: `sourceFileName` or `destFileName` is `null`.\r\n\t`System.IO.PathTooLongException`: The specified path, file name, or both exceed the system-defined maximum length.\r\n\t`System.IO.DirectoryNotFoundException`: The path specified in `sourceFileName` or `destFileName` is invalid (for example, it is on an unmapped drive).\r\n\t`System.IO.FileNotFoundException`: `sourceFileName` was not found.\r\n\t`System.IO.IOException`: >    `destFileName` exists.\r\n\r\n*or*\r\n\r\n>    An I/O error has occurred.\r\n\t`System.NotSupportedException`: `sourceFileName` or `destFileName` is in an invalid format."
    },
    "sortText": "000005",
    "filterText": "Copy",
    "insertText": "Copy",
    "insertTextFormat": 1
}

it appears that the details member of this payload is not rendered as markdown, and so shouldn't use the markdown syntax.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions