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

Optimization of LaunchEditor's console output #30

Closed
3 tasks done
normal-coder opened this issue Apr 18, 2024 · 2 comments
Closed
3 tasks done

Optimization of LaunchEditor's console output #30

normal-coder opened this issue Apr 18, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@normal-coder
Copy link

Clear and concise description of the problem

The space for Console output is limited.

For example, the address http://localhost:3070#c3JjL3N0b3JlL3VzZUF1dGhTdG9yZS50czozNzoyNQ== output by LaunchEditor corresponds to the relative directory of the project src/store/useAuthStore.ts:37:25 after being decoded from base64.

As the complexity of the project directory increases, the length of the text will also increase, and it will not be elegant to use Console panel output space. Although the above address is already short enough, such URLs will wrap in a small window state, causing waste of Console output space. I hope this issue can be optimized.

Suggested solution

In the LaunchEditor output, it might be possible to solve the problem by maintaining a temporary mapping relationship. By creating a mapping relationship for the files, the addresses of the various types of files are mapped, and only the plugin's own routing address is provided in the Console.

Alternative

  1. Maintain file mapping through plugins to shorten the LaunchEditor debug address, for example, keeping it at a length of 6 digits (or even allowing this length to be customized?)
  2. Allow users to switch between using file path + line number for base64 encoding or having the plugin maintain file mapping to determine the output format of the LauchEditor URL through configuration.

Additional context

No context screenshot required.

Validations

@normal-coder normal-coder added the enhancement New feature or request label Apr 18, 2024
@normal-coder normal-coder changed the title 对 LaunchEditor 的 console 输出优化 Optimization of LaunchEditor's console output Apr 18, 2024
@yuyinws
Copy link
Member

yuyinws commented Apr 18, 2024

Thank you. This is indeed a problem that needs to be optimized. Maintaining a temporary route mapping relationship sounds good, I will try this solution recently.

@yuyinws
Copy link
Member

yuyinws commented Apr 21, 2024

This feature released on v1.8.0 (release)

@yuyinws yuyinws closed this as completed Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants