Skip to content

IntelliSense-based Go to Definition failed #2981

@lh123

Description

@lh123

Type: LanguageService

To Reproduce

  1. create apue.h ( All files are in the top directory)
typedef int ssize_t;
typedef unsigned int size_t;

int test(int fd, ssize_t (*callback)(int, const void *, size_t));
int test2(int fd, int (*callback)(int, const void *, int));
  1. create apue.c
#include "apue.h"

int test(int fd, ssize_t (*callback)(int, const void *, size_t)) {

}

int test2(int fd, int (*callback)(int, const void *, int)) {

}
  1. create main.c
#include "apue.h"

ssize_t callback(int a, const void *b, size_t c) {
    return 0;
}

int callback2(int a, const void *b, int c) {
    return 0;
}

int main(void) {
    test(1, callback); // Go to Definition failed. (Only jumped to the Declaration)
    test2(1, callback2); // Go to Definition works fine.
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.quick fix

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions