jupyterlab_vscode_icons_extension 1.0.62 → 1.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +6 -0
- package/package.json +1 -1
- package/src/index.ts +7 -0
package/lib/index.js
CHANGED
|
@@ -483,6 +483,12 @@ const plugin = {
|
|
|
483
483
|
const name = nameSpan.textContent.trim();
|
|
484
484
|
// Handle notebook files (Jupytext and special markdown)
|
|
485
485
|
if (fileType === 'notebook') {
|
|
486
|
+
// Clear all notebook attributes first
|
|
487
|
+
item.removeAttribute('data-claude-md');
|
|
488
|
+
item.removeAttribute('data-readme-md');
|
|
489
|
+
item.removeAttribute('data-jupytext-py');
|
|
490
|
+
item.removeAttribute('data-jupytext-md');
|
|
491
|
+
// Set the correct attribute based on filename
|
|
486
492
|
if (name === 'CLAUDE.md') {
|
|
487
493
|
item.setAttribute('data-claude-md', 'true');
|
|
488
494
|
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -537,6 +537,13 @@ const plugin: JupyterFrontEndPlugin<void> = {
|
|
|
537
537
|
|
|
538
538
|
// Handle notebook files (Jupytext and special markdown)
|
|
539
539
|
if (fileType === 'notebook') {
|
|
540
|
+
// Clear all notebook attributes first
|
|
541
|
+
item.removeAttribute('data-claude-md');
|
|
542
|
+
item.removeAttribute('data-readme-md');
|
|
543
|
+
item.removeAttribute('data-jupytext-py');
|
|
544
|
+
item.removeAttribute('data-jupytext-md');
|
|
545
|
+
|
|
546
|
+
// Set the correct attribute based on filename
|
|
540
547
|
if (name === 'CLAUDE.md') {
|
|
541
548
|
item.setAttribute('data-claude-md', 'true');
|
|
542
549
|
} else if (name === 'README.md') {
|