Skip to content

PGSQL language server does not work on existing files #512

@armenium

Description

@armenium

Type: Bug

  1. Use Open Folder to open an existing project that includes PostgreSQL files
  2. Connect to a PostgreSQL database
  3. Use Ctrl+P to open a PostgreSQL file

Expected Result
After opening the file, the PGSQL language server should automatically get set. This does seem to work if I open a new tab (Ctrl+N), the language server gets successfully set as PGSQL.

Actual Result
When opening the file, the language server is simply displayed as "Choose SQL Language", and when trying to click on it to set one, the notice "A connection using engine PGSQL exists. To change please disconnect or change connection" appears. Additionally, I see the following warning in the console:
[warning] Editor ID Mismatch: undefined !== workbench.editor.queryEditor. This will cause bugs. Please ensure editorInput.editorId matches the registered id
Unfortunately this means that Intellisense does not work on existing files.

Extension version: 0.6.0
Azure Data Studio version: azuredatastudio 1.50.0 (49c73a84388731fec941dac8d938345ac16bd470, 2024-11-17T22:41:05.327Z)
OS version: Windows_NT x64 10.0.26100
Restricted Mode: No
Preview Features: Enabled
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 x 3192)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.92GB (8.68GB free)
Process Argv
Screen Reader no
VM 0%

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions