mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
trace IntelliJ config and install locations on Linux (#6805)
This commit is contained in:
parent
e908655207
commit
546cef5277
@ -323,6 +323,7 @@ class IntelliJValidatorOnLinux extends IntelliJValidator {
|
||||
String name = path.basename(dir.path);
|
||||
IntelliJValidator._idToTitle.forEach((String id, String title) {
|
||||
if (name.startsWith('.$id')) {
|
||||
printTrace('Found IntelliJ config: ${dir.path}');
|
||||
String version = name.substring(id.length + 1);
|
||||
String installPath;
|
||||
try {
|
||||
@ -331,6 +332,7 @@ class IntelliJValidatorOnLinux extends IntelliJValidator {
|
||||
// ignored
|
||||
}
|
||||
if (installPath != null && FileSystemEntity.isDirectorySync(installPath)) {
|
||||
printTrace('Found IntelliJ installation: $installPath');
|
||||
String pluginsPath = path.join(dir.path, 'config', 'plugins');
|
||||
validators.add(new IntelliJValidatorOnLinux(title, version, pluginsPath));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user