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.
- package/lib/hotfixes/jupytext-1.19.1.js +2 -0
- package/lib/index.js +19 -1
- package/package.json +1 -1
- package/src/hotfixes/jupytext-1.19.1.ts +2 -0
- package/src/index.ts +21 -1
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
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">
|