Skip to content

PHP features for NB22#7056

Merged
junichi11 merged 9 commits intomasterfrom
php-nb22-features
Feb 21, 2024
Merged

PHP features for NB22#7056
junichi11 merged 9 commits intomasterfrom
php-nb22-features

Conversation

@junichi11
Copy link
Member

These already have been reviewed.

junichi11 and others added 9 commits January 21, 2024 14:10
- #6980
- Fix the below case
- Add unit tests

Example:

```php
<?php
namespace {
    use Vendor\Class1;
    $test = 1;
}
```

Before:

```php
<?php

namespace {

    use Vendor\Class1;

$test = 1;
}
```

After:

```php
<?php

namespace {

    use Vendor\Class1;

    $test = 1;
}
```
…essage

PHP: Implemented display of exception message when exception breakpoints are hit
- Get aliased names for traits and enums
- Add unit tests
- #6947
- Add `Auto Import` as an option for code completion
- Add `Prefer Import` and `Don't Import` options for global namespace items(`Don't Import` is enabled by default)
  - `File Scope` means a php file without a namespace name (e.g. `<html><p><?php echo \NS\something(); ?></p></html>`)
- Add `File Scope`(unchecked by default) and `Namespace Scope`(checked by default) options
- Don't add a use statement if use list has the same name item(Instead, the result of "Smart" or "Unqualified" CC is used)
- Add unit tests

Note: A use statement may not be added to an expected position if the existing use list is not sorted(ignore cases)
Add the Auto Import feature for Code Completion
- #7041
- Don't add parameter parts if the context is use functions
- Add unit tests
…nction

Fix incorrect code completion for use function #7041
@junichi11 junichi11 added the PHP [ci] enable extra PHP tests (php/php.editor) label Feb 12, 2024
@junichi11 junichi11 added this to the NB22 milestone Feb 12, 2024
@mbien
Copy link
Member

mbien commented Feb 21, 2024

@junichi11 when are you planning to merge this? I would like to get a larger cleanup PR in without causing conflicts.

@junichi11 junichi11 marked this pull request as ready for review February 21, 2024 10:13
@junichi11 junichi11 requested a review from tmysik February 21, 2024 10:13
@junichi11
Copy link
Member Author

@mbien I'll do that ASAP :)

Copy link
Member

@tmysik tmysik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we are only merging branch with already reviewed changes, right?

@junichi11
Copy link
Member Author

@tmysik Yes, thanks! Merging.

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

Labels

PHP [ci] enable extra PHP tests (php/php.editor)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants