Code completion doesn't trigger automatically for imports/slashes/interpolation in LSP
See original GitHub issueDescribe 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:
- write
import 'mate
Expected behavior
import 'package:flutter/material.dart';
Screenshots
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:
- Created 3 years ago
- Reactions:4
- Comments:9 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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).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”):
Hope this helps!