Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## 3.2.1 - 2026-07-06

### Bug Fixes

* Improved the R language server lifecycle for Quarto R chunks with delayed shutdown, cancellation of pending shutdowns, serialised restart handling, correct virtual-document routing and selectors, and cleanup of stopped clients and listeners.

### Minor

* Added formatted current-row and total-row feedback while dragging the data viewer's vertical scrollbar.
* Kept unloaded data viewer rows visually empty and displayed loaded R `NA` values across column types using lighter italic text.

### Maintenance

* Upgraded AG Grid Community to 35.2.1 and refactored the existing data viewer to use the AG Grid 35 grid and theme APIs.
* Removed `data.table` as a dependency.

## 3.2.0 - 2026-07-06

### Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "r",
"displayName": "R",
"description": "R Extension for Visual Studio Code",
"version": "3.2.0",
"version": "3.2.1",
"author": "REditorSupport",
"license": "SEE LICENSE IN LICENSE",
"publisher": "REditorSupport",
Expand Down
29 changes: 22 additions & 7 deletions src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,12 @@ export async function getTableHtml(webview: Webview, file: string): Promise<stri
#scrollPosition.visible {
display: block;
}

.dataview-na {
color: var(--vscode-descriptionForeground);
font-style: italic;
opacity: 0.75;
}
</style>
<script src="${String(webview.asWebviewUri(Uri.file(path.join(resDir, 'ag-grid-community.min.noStyle.js'))))}"></script>
<script>
Expand Down Expand Up @@ -891,6 +897,12 @@ export async function getTableHtml(webview: Webview, file: string): Promise<stri
// Inject raw JSON data from R
const data = ${content};
const emptyCellRenderer = () => '';
const naCellRenderer = () => {
const element = document.createElement('span');
element.className = 'dataview-na';
element.textContent = 'NA';
return element;
};

function clearLongFetchTimer() {
if (longFetchTimer) {
Expand Down Expand Up @@ -1100,6 +1112,14 @@ export async function getTableHtml(webview: Webview, file: string): Promise<stri

const columnDefs = data.columns.map(sourceColumn => {
const column = { ...sourceColumn };
column.cellRendererSelector = params => {
if (params.data == null) {
return { component: emptyCellRenderer };
}
return params.value == null
? { component: naCellRenderer }
: undefined;
};
if (column.field === 'x1') {
column.lockPosition = 'left';
column.width = 150;
Expand All @@ -1112,13 +1132,8 @@ export async function getTableHtml(webview: Webview, file: string): Promise<stri
column.hide = true;
}

if (column.type === 'booleanColumn') {
column.cellRendererSelector = params =>
params.data == null
? { component: emptyCellRenderer }
: undefined;
} else if (column.type === 'dateColumn' ||
column.type === 'datetimeColumn') {
if (column.type === 'dateColumn' ||
column.type === 'datetimeColumn') {
column.cellDataType =
column.type === 'dateColumn' ? 'dateString' : 'dateTimeString';
column.filter = 'agDateColumnFilter';
Expand Down
Loading