question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Code completion doesn't trigger automatically for imports/slashes/interpolation in LSP

See original GitHub issue

Describe the bug It doesn’t autocomplete package in VS Code. It’s a pain in the butt now.

To Reproduce Steps to reproduce the behavior:

  1. write import 'mate

Expected behavior import 'package:flutter/material.dart';

Screenshots

Captura de pantalla 2021-03-15 a las 21 17 55

Versions (please complete the following information):

  • VS Code version: 1.54.2
  • Dart extension version: Awesome Flutter Snippets: v2.0.4
  • Flutter (Channel beta, 2.0.1, on macOS 11.1 20C69 darwin-x64, locale es-ES)
  • Dart SDK version: 2.10.5 (stable) (Tue Jan 19 13:05:37 2021 +0100) on “macos_x64”

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
DanTupcommented, Jun 9, 2021

@tomasbaran it depends on the exact context you’re having issues with.

If the problem is that when you type a quote after import or a / inside the path (note: type manually, and not have them included by a completion) then the fix is in the SDK, so you’ll need an updated SDK for the fix (it’s not in the current stable channel, but should be in the dev channels of Dart/Flutter).

If the problem is when you select the import ''; snippet from the completion list, or you select a folder in the completion list, then that’s fixed for the next version of Dart-Code (#3385).

1reaction
DanTupcommented, Mar 16, 2021

I don’t know why it wouldn’t work - it’s VS Code functionality rather than Dart, but you can see/re-bind the shortcut in the VS Code Keyboard Shortcuts editor. (it’s the top item here called “Trigger Suggest”):

Screenshot 2021-03-16 at 11 21 39

Hope this helps!

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code extension v3.22 - Integration testing, new ...
#3211: Code completion now intelligently triggers automatically for LSP when typing imports/slashes/interpolation(requires SDK update).
Read more >
nvim-cmp question regarding triggering auto completion
Today I've been trying to setup autocomplete for a C project I'm working on using nvim-cmp. I all seems to work reasonably well,...
Read more >
Full Release Notes Index - Humio Documentation
Fixed an issue with parameters in dashboards, where the values of a fixed list parameter would not have their order maintained when exporting...
Read more >
IntelliJ IDEA 2019.2.1 (192.6262.58 build) Release Notes
Feature IDEA‑210961 Implement action for Slow Startup Profiling Feature IDEA‑210929 Provide ability to copy a TBX link to a settings Bug IDEA‑207782 Memory leak in...
Read more >
Bug List - Bugs - Eclipse
This list is too long for Bugzilla's little mind; the Next/Prev/First/Last buttons ... Java 8 Lambda toMap does not auto complete correctly, 2022-10-22....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found