Skip to content

Opening files via relative paths containing parent directory, ".." #113322

@johnmcfarlane

Description

@johnmcfarlane

I searched for issues with is:issue path "Go to file" relative parent and this issue didn't show up.

I'd like for the "Go to file..." actions, and other features which cause files to be open (e.g. clicking on the path of a source file in a GCC diagnostic) to respect relative paths. For example, when I click on:

../include/cnl/_impl/type_traits/../num_traits/../type_traits/is_signed.h:19:21: error: a non-type template parameter cannot have type 'cnl::T'

in order to open is_signed.h, Code fails to identify the correct path to the file as _include/cnl/impl/type_traits/is_signed.h and I need to edit the path before it will show up in the file search bar.

Similarly, if I enter "../include/cnl/_impl/type_traits/../num_traits/../type_traits/is_signed.h:19:21" into the search bar using the "Go to file..." feature, Code fails to locate the file and I need to edit the path down again so that it's not confused.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionalityquick-pickQuick-pick widget issues

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions