提交 1dc35219 编写于 作者: P Peng Lyu

position comments at right position for scm tree view

上级 9da6ceae
......@@ -399,7 +399,8 @@ export class ReviewManager implements vscode.DecorationProvider {
if (document.uri.scheme === 'review') {
// from scm viewlet
matchingComments = this._commentsCache.get(document.uri.toString());
let matchedFiles = this._localFileChanges.filter(fileChange => path.resolve(this._repository.path, fileChange.fileName) === document.uri.toString());
let query = JSON.parse(document.uri.query);
let matchedFiles = this._localFileChanges.filter(fileChange => fileChange.fileName === query.path);
if (matchedFiles && matchedFiles.length) {
let matchedFile = matchedFiles[0];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册