Skip to content

does not work with mulit-folder workspace #10

@GitMensch

Description

@GitMensch

The blaming uses the folder name, not the path.

cnf/MY.code-workspace:

{
	"folders": [
		{
			"path": "../src"
		},
		{
			"path": "../cnf",    // the place this file resides
			"name": "Configs"
		},
		{
			"path": "../com",
			"name": "Scripts"
		},
		{
			"path": "../sql",
			"name": "SQLs"
		}
	],
}

with file "com/BLAME" open in vscode, with an editor title as "BLAME" with hover as /home/me/test/com/BLAME and a navigation of "Scripts>TEST".

A git blame on the command line works fine, but when executing that via extension I get 3 error messages (it really should be a single - the last one, which ideally gets fixed before tackling this one) and the last error says:

Command failed: git --no-pager blame --porcelain "Scripts/BLAME"
fatal: no such path 'com/Scripts/BLAME' in HEAD

(the first error is "Cannot open Just Blame: git blame returned nothing", the second "Git blame parsing failed.")

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions