This commit is contained in:
undefined committed 2024-07-15 14:13:35 +08:00
1 parent 3f29a9b620
commit cb04ae578c
3 files changed
+10 -8

No files matched your search

@@ -30,6 +30,7 @@ class CodelensProvider implements vscode.CodeLensProvider {
const text = document.getText();
let matches;
const users = [];
// eslint-disable-next-line no-cond-assign
while ((matches = regex.exec(text)) !== null) {
const line = document.lineAt(document.positionAt(matches.index).line);
const indexOf = line.text.indexOf(matches[0]);
@@ -43,6 +44,7 @@ class CodelensProvider implements vscode.CodeLensProvider {
// uname
// }
// `);
// eslint-disable-next-line @typescript-eslint/no-shadow
for (const { matches, range } of users) {
codeLenses.push(new vscode.CodeLens(range, {
command: 'hydro.openUserPage',
@@ -50,7 +50,7 @@ const loaders = {
import('@codingame/monaco-vscode-markdown-language-features-default-extension'),
import('@codingame/monaco-vscode-markdown-math-default-extension'),
]),
typescript: async () => await import('@codingame/monaco-vscode-typescript-language-features-default-extension'),
// typescript: async () => await import('@codingame/monaco-vscode-typescript-language-features-default-extension'), // 15.3 MiB Compressed
cpp: async () => await import('@codingame/monaco-vscode-cpp-default-extension'),
yaml: async () => await import('@codingame/monaco-vscode-yaml-default-extension'),
external: async (monaco, feat) => {
+7 -7
View File
@@ -15,11 +15,11 @@
},
"devDependencies": {
"@blueprintjs/core": "^5.10.5",
"@codingame/monaco-editor-wrapper": "^7.2.1",
"@codingame/monaco-vscode-language-pack-ko": "6.0.3",
"@codingame/monaco-vscode-language-pack-zh-hans": "6.0.3",
"@codingame/monaco-vscode-language-pack-zh-hant": "6.0.3",
"@codingame/monaco-vscode-typescript-language-features-default-extension": "6.0.3",
"@codingame/monaco-editor-wrapper": "^8.1.0",
"@codingame/monaco-vscode-language-pack-ko": "7.0.5",
"@codingame/monaco-vscode-language-pack-zh-hans": "7.0.5",
"@codingame/monaco-vscode-language-pack-zh-hant": "7.0.5",
"@codingame/monaco-vscode-typescript-language-features-default-extension": "7.0.5",
"@cordisjs/core": "3.17.3",
"@fontsource/dm-mono": "^5.0.20",
"@fontsource/fira-code": "^5.0.18",
@@ -85,7 +85,7 @@
"md-editor-rt": "^4.17.3",
"mini-css-extract-plugin": "^2.9.0",
"moment": "^2.30.1",
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@6.0.3",
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@7.0.5",
"monaco-languageclient": "^8.4.0",
"monaco-themes": "^0.4.4",
"monaco-yaml": "5.1.1",
@@ -131,7 +131,7 @@
"util": "^0.12.5",
"vditor": "^3.10.4",
"vinyl-buffer": "^1.0.1",
"vscode": "npm:@codingame/monaco-vscode-api@^6.0.3",
"vscode": "npm:@codingame/monaco-vscode-api@^7.0.5",
"web-streams-polyfill": "^4.0.0",
"webpack": "^5.92.1",
"webpack-bundle-analyzer": "^4.10.2",