|
192 | 192 | local function get_absolute_path(input_path) |
193 | 193 | -- Check if the provided path is an absolute path |
194 | 194 | if |
195 | | - vim.fn.isdirectory(input_path) == 1 |
196 | | - and not input_path:match("^/") |
197 | | - and not input_path:match("^%a:[/\\]") |
| 195 | + vim.fn.isdirectory(input_path) == 1 |
| 196 | + and not input_path:match("^/") |
| 197 | + and not input_path:match("^%a:[/\\]") |
198 | 198 | then |
199 | 199 | -- It's a relative path, so expand it to an absolute path |
200 | 200 | local absolute_path = vim.fn.fnamemodify(input_path, ":p") |
@@ -237,23 +237,23 @@ local function has_flutter_dependency_in_pubspec(cwd) |
237 | 237 | if not pubspec then return default_has_flutter_dependency end |
238 | 238 | --https://github.com/Dart-Code/Dart-Code/blob/43914cd2709d77668e19a4edf3500f996d5c307b/src/shared/utils/fs.ts#L183 |
239 | 239 | return ( |
240 | | - pubspec.dependencies |
241 | | - and ( |
242 | | - pubspec.dependencies.flutter |
243 | | - or pubspec.dependencies.flutter_test |
244 | | - or pubspec.dependencies.sky_engine |
245 | | - or pubspec.dependencies.flutter_goldens |
246 | | - ) |
247 | | - ) |
248 | | - or ( |
249 | | - pubspec.devDependencies |
250 | | - and ( |
251 | | - pubspec.devDependencies.flutter |
252 | | - or pubspec.devDependencies.flutter_test |
253 | | - or pubspec.devDependencies.sky_engine |
254 | | - or pubspec.devDependencies.flutter_goldens |
255 | | - ) |
| 240 | + pubspec.dependencies |
| 241 | + and ( |
| 242 | + pubspec.dependencies.flutter |
| 243 | + or pubspec.dependencies.flutter_test |
| 244 | + or pubspec.dependencies.sky_engine |
| 245 | + or pubspec.dependencies.flutter_goldens |
| 246 | + ) |
| 247 | + ) |
| 248 | + or ( |
| 249 | + pubspec.devDependencies |
| 250 | + and ( |
| 251 | + pubspec.devDependencies.flutter |
| 252 | + or pubspec.devDependencies.flutter_test |
| 253 | + or pubspec.devDependencies.sky_engine |
| 254 | + or pubspec.devDependencies.flutter_goldens |
256 | 255 | ) |
| 256 | + ) |
257 | 257 | end |
258 | 258 |
|
259 | 259 | ---@param opts RunOpts |
|
0 commit comments