Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit c4a274c

Browse files
committed
Fix textDocument/documentSymbol
1 parent 3172450 commit c4a274c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/typescript-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ export class TypeScriptService {
745745
.filter(({ tree, parent }) => navigationTreeIsSymbol(tree))
746746
.map(({ tree, parent }) => navigationTreeToSymbolInformation(tree, parent, sourceFile, this.root));
747747
})
748-
.map(symbol => ({ op: 'add', path: '', value: symbol }) as jsonpatch.Operation)
748+
.map(symbol => ({ op: 'add', path: '/-', value: symbol }) as jsonpatch.Operation)
749749
.startWith({ op: 'add', path: '', value: [] } as jsonpatch.Operation);
750750
}
751751

0 commit comments

Comments
 (0)