Git Product home page Git Product logo

Comments (4)

felixfbecker avatar felixfbecker commented on July 29, 2024

Please post a full code snippet to reproduce. This should be handled.

from vscode-php-intellisense.

dgadelha avatar dgadelha commented on July 29, 2024

He means that when you use an alias for a class:

use Extremely_Long_Class_Name as Name;

The Go to definition feature doesn't work when you use the alias:

Name::foo();

But works with the full class name:

Extremely_Long_Class_Name::foo();

from vscode-php-intellisense.

bfranklyn avatar bfranklyn commented on July 29, 2024

Sorry for the late reply.

Go to definition works fine for aliases created with use class as but not for aliases created with the class_alias function, see pic below.

php_intellisense

from vscode-php-intellisense.

SplicePHP avatar SplicePHP commented on July 29, 2024

Just had the same issue.
For anyone else who needs a quick fix.
There is a rather simple workaround though not ideal.

Create a dummy directory somewhere in your project
Create the file dummy/MyClass.php

class MyClass extends Extremely_Long_Class_Name_MyClass {

}

You do not need to include it anywhere in your project, its existence alone should fix your intellisense.

from vscode-php-intellisense.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.