提交 f495e3d7 编写于 作者: I isidor

debug inline values: sort values by column

fixes #22785
上级 f3a54032
......@@ -506,7 +506,10 @@ export class DebugEditorContribution implements IDebugEditorContribution {
const decorations: IDecorationOptions[] = [];
// Compute decorators for each line
lineToNamesMap.forEach((names, line) => {
const contentText = names.map(name => `${name} = ${nameValueMap.get(name)}`).join(', ');
const contentText = names.sort((first, second) => {
const content = this.editor.getModel().getLineContent(line);
return content.indexOf(first) - content.indexOf(second);
}).map(name => `${name} = ${nameValueMap.get(name)}`).join(', ');
decorations.push(this.createInlineValueDecoration(line, contentText));
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册