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) => {