Skip to content

[BUG] [LSP] Refactor workflow triggers when a model is moved without being renamed #120

@joellabes

Description

@joellabes

Describe the bug
I moved a model from one directory to another, and the VSCE suggested that I refactor to handle this rename. It gave me a series of diffs with no actual changes.

Image

What version of dbt Fusion is this bug in? (find out by running dbt --version)

dbt Extension version: 0.2.5
This version of the dbt extension is configured to use dbt LSP version 2.0.0-beta.13
LSP path: /Users/joel/Library/Application Support/Cursor/User/globalStorage/dbtlabsinc.dbt/bin/dbt-lsp
Current LSPs in this workspace:
  - /Users/joel/Documents/GitHub/dbt-synthetic-project-generation/simulated_project_10k_models
    - status: running
    - LSP version: 2.0.0-beta.13

To Reproduce

--models/subdirectory/upstream.sql
select 1 as id
--models/subdirectory/downstream.sql
select * from {{ ref('upstream') }}

Move models/subdirectory/upstream.sql to models/upstream.sql

Expected behavior
No refactoring suggestion because there were no changes

Operating System and CPU Type (please complete the following information):

  • Mac/Windows/Linux? Mac
  • X86 or ARM? ARM

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingvscePertains to the VS Code Extension / Language Server

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions