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

autocomplete issues #415

Closed
ProjectSky opened this issue Jul 23, 2024 · 2 comments
Closed

autocomplete issues #415

ProjectSky opened this issue Jul 23, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ProjectSky
Copy link

Basic informations

  • OS: [linux]
  • VSCode version: Latest
  • Extension version: Latest

Further Information

If define g_hWsServer as global, autocompletion is broken

To Reproduce

WebSocketServer
g_hWsServer;

Action ws_server(int args)
{
  g_hWsServer = new WebSocketServer("::", 9999, AF_INET6);
  g_hWsServer.SetMessageCallback(onSrvMessage); // No autocomplete
  g_hWsServer.Start();
  return Plugin_Handled;
}
Action ws_server(int args)
{
  WebSocketServer WsServer = new WebSocketServer("::", 9999, AF_INET6);
  WsServer.SetMessageCallback(onSrvMessage); // autocompletion works
  WsServer.Start();
  return Plugin_Handled;
}

Expected behaviour

Error messages

@ProjectSky ProjectSky added the bug Something isn't working label Jul 23, 2024
@ProjectSky
Copy link
Author

update: unable to parse variable type in this format

WebSocketServer
g_hWsServer; // unknown variable type
WebSocketServer g_hWsServer; // ok

@Sarrus1
Copy link
Owner

Sarrus1 commented Jan 3, 2025

I can't reproduce this, I assume it's fixed. Please reopen if needed 👍

@Sarrus1 Sarrus1 closed this as completed Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants