Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Open in Editor url doesn't consider repo name when repositorypathpattern is set for IntelliJ #43839

@rakeshjosh2003

Description

@rakeshjosh2003

Feedback

When a file is opened in the IntelliJ editor, the path doesn't consider the repo name in URL when "repositoryPathPattern": "{nameWithOwner}" is set in the code host config. This was working fine before and stopped working since version 4.1.0.
I tested it on version 4.0.1, and it works fine.

Editor settings

“openInEditor”: {
    “projectPaths.default”: “/Users/RJ/“,
    “editorIds”: [
      “idea”
    ]
  },

If the repository URL is

gitHub.com/abcd/abcd/licenses/LICENSE-copybutton.txt&line=1&column=1

and we set "repositoryPathPattern": "{nameWithOwner}" in the code host config

then in 4.1.0, it generates URL

github.com/licenses/LICENSE-copybutton.txt&line=1&column=1

the expected URL is

github.com/abcd/licenses/LICENSE-copybutton.txt&line=1&column=1

( which works fine in 4.0.1)

Customer

https://sourcegraph2020.lightning.force.com/lightning/r/Account/0013t00001XibW6AAJ/view

/cc @sourcegraph/integrations

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error, flaw or fault that produces an incorrect or unexpected result, or behavior.editor-extensionfeedbackThis sends the issue to the #feedback slack channelintegrations

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions