mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Added check for the last null row (#8764)
This commit is contained in:
@@ -391,22 +391,24 @@ export abstract class GridParentComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let rowIndex = grid.getCellFromEvent(event).row;
|
let rowIndex = grid.getCellFromEvent(event).row;
|
||||||
|
if (rowIndex !== grid.getDataLength() - 1) {
|
||||||
|
let actionContext: IGridInfo = {
|
||||||
|
batchIndex: batchId,
|
||||||
|
resultSetNumber: resultId,
|
||||||
|
selection: selection,
|
||||||
|
gridIndex: index,
|
||||||
|
rowIndex: rowIndex
|
||||||
|
};
|
||||||
|
|
||||||
let actionContext: IGridInfo = {
|
let anchor = { x: event.pageX + 1, y: event.pageY };
|
||||||
batchIndex: batchId,
|
|
||||||
resultSetNumber: resultId,
|
|
||||||
selection: selection,
|
|
||||||
gridIndex: index,
|
|
||||||
rowIndex: rowIndex
|
|
||||||
};
|
|
||||||
|
|
||||||
let anchor = { x: event.pageX + 1, y: event.pageY };
|
this.contextMenuService.showContextMenu({
|
||||||
this.contextMenuService.showContextMenu({
|
getAnchor: () => anchor,
|
||||||
getAnchor: () => anchor,
|
getActions: () => this.actionProvider.getGridActions(),
|
||||||
getActions: () => this.actionProvider.getGridActions(),
|
getKeyBinding: (action) => this._keybindingFor(action),
|
||||||
getKeyBinding: (action) => this._keybindingFor(action),
|
getActionsContext: () => (actionContext)
|
||||||
getActionsContext: () => (actionContext)
|
});
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user