Skip to content

Commit 9993c7e

Browse files
author
guqiankun.gqk
committed
fix: 修复逻辑修改
1 parent a7ebd31 commit 9993c7e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/acr/src/modules/merge-request/changes-tree/changes-tree-decoration.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ export class ChangesTreeDecorationService implements FileDecorationsProvider {
4242
label: 'change decotration',
4343
onDidChange: this._onDidChangeDecorationsEmitter.event,
4444
provideDecorations: (uri: Uri) => {
45+
const path = uri.path.startsWith('/') ? uri.path.slice(1) : uri.path;
4546
const threads = this.commentsService.commentsThreads.filter(
4647
(thread) =>
4748
thread.data?.type === THREAD_TYPE.COMMENT &&
48-
'/' + thread.uri.getParsedQuery().newPath === uri.path
49+
thread.uri.getParsedQuery().newPath === path
4950
);
5051
return {
5152
tooltip: threads.length + '',

0 commit comments

Comments
 (0)