дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 01:31:41 +02:00
feat(dependencies): complete npm package versions in package.json (#2596)
Completion inside a version string under dependencies, devDependencies, peerDependencies or optionalDependencies lists the package's versions from the npm registry (abbreviated metadata, shared version cache), newest first, without deprecated versions and without pre-releases when the package has releases. Aliases, paths, URLs and workspace protocols are left alone; the scanner tolerates a document being edited. Closes #2558
Цей коміт міститься в:
1 джерело
a8be534043
коміт
b1bee808dd
6 files changed
+330
-4
No files matched your search
@@ -210,7 +210,7 @@ export function activate(): () => void {
|
||||
extensions: (doc) => {
|
||||
if (doc.virtual || doc.readOnly) return [];
|
||||
if (/(?:^|\/)Cargo\.toml$/.test(doc.path)) return extension(doc);
|
||||
if (/(?:^|\/)go\.mod$/.test(doc.path)) return versionCompletion(doc);
|
||||
if (/(?:^|\/)(?:go\.mod|package\.json)$/.test(doc.path)) return versionCompletion(doc);
|
||||
return [];
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Заблокувати користувача