Skip to content

Latest commit

 

History

History
170 lines (101 loc) · 4.33 KB

File metadata and controls

170 lines (101 loc) · 4.33 KB

Change Log

All notable changes to the "php-namespace-resolver" extension will be documented in this file.

0.0.1

  • init

0.0.3

  • fix stupid issue in 002

0.0.4

  • fix incorrect ns for some files
  • ns resolve should work with external/vendor packages now too, any issues plz open a ticket

0.0.5

  • fix error msgs

0.0.7

  • fix double back slash in namespace

0.0.9

0.1.0

  • make sure the command panel entries only shows up in php files

0.1.2

  • fix import class before declare statements

0.1.3

  • cleanup
  • expose some functionality for other extensions to use

0.1.5

  • support getting file namespace from just the uri
  • fix giving error when file namespace if not pre-declared under composer.json

0.1.7

  • fix a regression in 0.1.6

0.2.0

  • use ts instead of js
  • better api

0.3.0

  • import all will now handle (traits, property promotions, interfaces)
  • better api using php-parser
  • remove class import when using expand command
  • show error when importing a class that has a name being used as an alias

0.3.1

  • fix not showing all available namespaces for selected class
  • use fs.readFile instead of vscode.openDocument

0.4.0

  • add new configs
  • configs are now separated into categories, plz update your settings
  • try to load php builtin namespaces dynamically & fall back to hardcoded classes when not possible
  • if use statement already exists, no changes will be made
  • support importing/expanding class FQN when its called with a partial FQN ex.Rules\Password + use Illuminate\Validation\Rules;
  • you will get an error msg if a use statement already exists with a similar class name of what u r trying to import ex.use Illuminate\Facade\Password; + importing ex.Rules\Password

0.4.2

  • fix not parsing of other types than class

0.4.3

  • fix giving error when opening invalid workspace
  • fix not generating namespace
  • add new option namespaceResolver.forceReplaceSimilarImports to replace similar class import instead of keeping both (old & new)

0.4.4

  • group menu items to submenu to save space in the context menu

0.4.5

  • add new configs namespaceResolver.removePath, namespaceResolver.useFolderTree, namespaceResolver.namespacePrefix
  • you we now generate namespaces based on folder hierarchy if project doesn't have a composer.json file & namespaceResolver.useFolderTree is true

0.4.7

  • fix incorrect check for already imported classes with similar name

0.4.9

  • fixes for importAll
  • we now also check for type hints & return types for classes to import

0.5.1

  • show output panel when phpcommand fails

0.5.3

  • allow the extension to work regardless of parsing errors

0.5.5

  • config exclude is now array instead of string for better readability
  • classes are now expanded by default on import
  • fix double importing of namespaces

0.6.0

  • fix adding duplicate imports in importAll
  • importAll now also include static calls with fqn class
  • fix removing the imported class and showing that it exists afterwards
  • add new cmnd Update File Type Name By File Name instead of manually changing the name
  • show correct msg for the importAll
  • remove - lockup from the class name search

0.6.1

  • add a way to escape importing a class but continue importing others for importAll & get a msg which one was ignored
  • fix trying to import a class that is already imported as an alias

0.6.3

  • fix not resolving the correct namespace if you have similar auto-loaded paths in composer.json

0.6.4

  • fix adding namespace before declare statement
  • add new command to copy current class fqns namespaceResolver.copyNamespace

0.6.5

  • a couple of fixes
  • add support for importing docblock classes through importAll

0.7.0

  • remove the sorting cmnd, user should be using linters instead
  • remove keybindings, user is free to assign the key he wants
  • change cmnd name update_file_type_by_name to updateFileTypeByName
  • add new cmnd to copy the class fqcn copyTypeFQCN

0.7.1

  • replace namespaceResolver.copyNamespace with namespaceResolver.copyTypeFQCN
  • add options for how to copy the fqcn

0.7.2

  • fix not able to copy the fqcn of the current class

0.7.3

  • fix not importing in the correct place

0.7.5

  • fucken typo