We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7ebd31 commit 9993c7eCopy full SHA for 9993c7e
1 file changed
packages/acr/src/modules/merge-request/changes-tree/changes-tree-decoration.service.ts
@@ -42,10 +42,11 @@ export class ChangesTreeDecorationService implements FileDecorationsProvider {
42
label: 'change decotration',
43
onDidChange: this._onDidChangeDecorationsEmitter.event,
44
provideDecorations: (uri: Uri) => {
45
+ const path = uri.path.startsWith('/') ? uri.path.slice(1) : uri.path;
46
const threads = this.commentsService.commentsThreads.filter(
47
(thread) =>
48
thread.data?.type === THREAD_TYPE.COMMENT &&
- '/' + thread.uri.getParsedQuery().newPath === uri.path
49
+ thread.uri.getParsedQuery().newPath === path
50
);
51
return {
52
tooltip: threads.length + '',
0 commit comments