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

Support for SQL-in-JS? #133

Open
karlhorky opened this issue Aug 28, 2024 · 2 comments
Open

Support for SQL-in-JS? #133

karlhorky opened this issue Aug 28, 2024 · 2 comments

Comments

@karlhorky
Copy link

karlhorky commented Aug 28, 2024

  • PGSQL Extension Version: 0.3.0
  • VSCode Version: 1.92.2
  • OS Version: macOS Sonoma 14.6.1 (23G93)

Steps to Reproduce:

  1. Create a file 1.ts with the following code
    // SQL template string no-op
    function sql(strings: TemplateStringsArray, ...values: string[]) {
      return strings.reduce((result, string, i) => {
        return result + string + (values[i] ?? '');
      }, '');
    }
    
    sql`SEL
  2. Trigger autocomplete using Ctrl-Space
  3. Observe that no IntelliSense suggestions appear (the ghost text is from Copilot)
    Screenshot 2024-08-28 at 12 38 35

Desired outcome:

IntelliSense suggestions appear in SQL-in-JS tagged template literals

@jmmak206
Copy link

is that postgres suggestion or copilot

@karlhorky
Copy link
Author

The "Desired outcome" above explains it:

IntelliSense suggestions appear in SQL-in-JS tagged template literals

IntelliSense is not Copilot

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

No branches or pull requests

2 participants