Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Allow viewing content generated by AINSERT instruction and preprocessors #248

Merged

Conversation

slavek-kucera
Copy link
Contributor

No description provided.

@slavek-kucera slavek-kucera force-pushed the feat_virtual_files_support branch from fcf6522 to c322ed2 Compare March 25, 2022 12:36
@slavek-kucera slavek-kucera marked this pull request as ready for review March 28, 2022 08:49
Copy link
Contributor

@jirimosinger jirimosinger left a comment

Choose a reason for hiding this comment

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

Consider adding some tests that would verify handling of virtual files in VSCode

language_server/test/virtual_file_provider_test.cpp Outdated Show resolved Hide resolved
parser_library/src/processing/opencode_provider.cpp Outdated Show resolved Hide resolved
@@ -419,11 +446,13 @@ void opencode_provider::convert_ainsert_buffer_to_copybook()
auto virtual_copy_name =
m_ctx->hlasm_ctx->ids().add("AINSERT:" + std::to_string(m_ctx->hlasm_ctx->obtain_ainsert_id()));

auto new_file = m_virtual_files.try_emplace(virtual_copy_name, std::move(result)).first;
auto new_file = m_virtual_files.try_emplace(virtual_copy_name, std::move(result), next_virtual_file_id()).first;
Copy link
Contributor

Choose a reason for hiding this comment

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

It feels a little bit weird to deal with the virtual file IDs. Consider moving this responsibility somewhere else.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've actually realized that there is a much bigger (lifetime) issue, so I will rework this.

@slavek-kucera slavek-kucera force-pushed the feat_virtual_files_support branch from 74f2ac1 to 63c69a3 Compare March 29, 2022 15:36
@slavek-kucera slavek-kucera force-pushed the feat_virtual_files_support branch from 63c69a3 to f234636 Compare March 29, 2022 17:08
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 14 Code Smells

88.2% 88.2% Coverage
0.0% 0.0% Duplication

@slavek-kucera slavek-kucera merged commit 5313215 into eclipse-che4z:development Mar 30, 2022
@slavek-kucera slavek-kucera deleted the feat_virtual_files_support branch March 30, 2022 07:25
@github-actions
Copy link

github-actions bot commented May 6, 2022

🎉 This PR is included in version 1.2.0-beta.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 1.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants