jupyterlab_vscode_icons_extension 1.1.50 → 1.1.53

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.
@@ -132,6 +132,8 @@ const KNOWN_EXTENSIONS = [
132
132
  'log',
133
133
  'rst',
134
134
  'tex',
135
+ 'md',
136
+ 'markdown',
135
137
  // Notebooks (handled separately by jupytext)
136
138
  'ipynb'
137
139
  ];
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { PageConfig, URLExt } from '@jupyterlab/coreutils';
2
2
  import { ISettingRegistry } from '@jupyterlab/settingregistry';
3
3
  import { IDefaultFileBrowser } from '@jupyterlab/filebrowser';
4
- import { LabIcon } from '@jupyterlab/ui-components';
4
+ import { LabIcon, markdownIcon } from '@jupyterlab/ui-components';
5
5
  import { getIconSVG } from './icons';
6
6
  import { parsePyprojectToml, parseSetupPy } from './parsers';
7
7
  import { applyJupytext1191Hotfix } from './hotfixes';
@@ -1116,6 +1116,24 @@ const plugin = {
1116
1116
  contentType: 'file',
1117
1117
  icon: changelogIcon
1118
1118
  });
1119
+ // Register RELEASE without .md extension (same icon as CHANGELOG)
1120
+ docRegistry.addFileType({
1121
+ name: 'vscode-release',
1122
+ displayName: 'Release Notes',
1123
+ pattern: '^RELEASE$',
1124
+ fileFormat: 'text',
1125
+ contentType: 'file',
1126
+ icon: changelogIcon
1127
+ });
1128
+ // Register RELEASE.md with markdown icon
1129
+ docRegistry.addFileType({
1130
+ name: 'vscode-release-md',
1131
+ displayName: 'Release Notes',
1132
+ pattern: '^RELEASE\\.md$',
1133
+ fileFormat: 'text',
1134
+ contentType: 'file',
1135
+ icon: markdownIcon
1136
+ });
1119
1137
  // Register Draw.io files with custom orange diagram icon
1120
1138
  if (settings.enableConfigIcons) {
1121
1139
  const drawioSvg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 161.6 161.6">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jupyterlab_vscode_icons_extension",
3
- "version": "1.1.50",
3
+ "version": "1.1.53",
4
4
  "description": "Jupyterlab extension with a shameless rip-off of the vscode-icons into our beloved environment",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -137,6 +137,8 @@ const KNOWN_EXTENSIONS = [
137
137
  'log',
138
138
  'rst',
139
139
  'tex',
140
+ 'md',
141
+ 'markdown',
140
142
  // Notebooks (handled separately by jupytext)
141
143
  'ipynb'
142
144
  ];
package/src/index.ts CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  import { PageConfig, URLExt } from '@jupyterlab/coreutils';
6
6
  import { ISettingRegistry } from '@jupyterlab/settingregistry';
7
7
  import { IDefaultFileBrowser } from '@jupyterlab/filebrowser';
8
- import { LabIcon } from '@jupyterlab/ui-components';
8
+ import { LabIcon, markdownIcon } from '@jupyterlab/ui-components';
9
9
  import { getIconSVG } from './icons';
10
10
  import { parsePyprojectToml, parseSetupPy } from './parsers';
11
11
  import { applyJupytext1191Hotfix } from './hotfixes';
@@ -1238,6 +1238,26 @@ const plugin: JupyterFrontEndPlugin<void> = {
1238
1238
  icon: changelogIcon
1239
1239
  });
1240
1240
 
1241
+ // Register RELEASE without .md extension (same icon as CHANGELOG)
1242
+ docRegistry.addFileType({
1243
+ name: 'vscode-release',
1244
+ displayName: 'Release Notes',
1245
+ pattern: '^RELEASE$',
1246
+ fileFormat: 'text',
1247
+ contentType: 'file',
1248
+ icon: changelogIcon
1249
+ });
1250
+
1251
+ // Register RELEASE.md with markdown icon
1252
+ docRegistry.addFileType({
1253
+ name: 'vscode-release-md',
1254
+ displayName: 'Release Notes',
1255
+ pattern: '^RELEASE\\.md$',
1256
+ fileFormat: 'text',
1257
+ contentType: 'file',
1258
+ icon: markdownIcon
1259
+ });
1260
+
1241
1261
  // Register Draw.io files with custom orange diagram icon
1242
1262
  if (settings.enableConfigIcons) {
1243
1263
  const drawioSvg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 161.6 161.6">