Revert "Convert TerminalLink.length to endIndex"

This reverts commit 48ce8ecce7.

Fixes #101455
This commit is contained in:
Daniel Imms
2020-07-14 14:41:44 -07:00
parent 1660ed63e5
commit fe39b1c6de
2 changed files with 4 additions and 5 deletions

View File

@@ -626,11 +626,10 @@ export abstract class BaseExtHostTerminalService implements IExtHostTerminalServ
for (const provideResult of provideResults) {
if (provideResult && provideResult.links.length > 0) {
result.push(...provideResult.links.map(providerLink => {
const endIndex = Math.max(providerLink.endIndex, providerLink.startIndex + 1);
const link = {
id: nextLinkId++,
startIndex: providerLink.startIndex,
length: endIndex - providerLink.startIndex,
length: providerLink.length,
label: providerLink.tooltip
};
cacheLinkMap.set(link.id, {