debugSession: respect sortText

fixes #78408
This commit is contained in:
isidor 2019-08-20 12:35:46 +02:00
parent 37981d8fd5
commit 606987ec3d

View file

@ -554,7 +554,8 @@ export class DebugSession implements IDebugSession {
insertText: item.text || item.label,
kind: completionKindFromString(item.type || 'property'),
filterText: (item.start && item.length) ? text.substr(item.start, item.length).concat(item.label) : undefined,
range: Range.fromPositions(position.delta(0, -(item.length || overwriteBefore)), position)
range: Range.fromPositions(position.delta(0, -(item.length || overwriteBefore)), position),
sortText: item.sortText
});
}
});