Skip to content

Support configurable root directory for project absolute (//) paths #48

@magreenblatt

Description

@magreenblatt

I have a project that builds using a separate Git repository placed inside the chromium/src directory (e.g. placed at chromium/src/cef). This separate Git repository contains BUILD.gn files referencing files rooted in the Chromium src directory via absolute paths (like import("//base/allocator/allocator.gni")). However, because the cef directory is a separate Git repository the GN Language Server assumes that cef is the project root and "Follow link (ctrl + click)" in the VSCode editor does not resolve correctly (e.g. assumes absolute paths are relative to chromium/src/cef instead of chromium/src as desired). Please add an option to configure the project absolute root directory for Follow link purposes. Thanks.

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