Comments (6)
Does LSP4E support snippets from the language server? If so, it would be nice to implement this in the Dart analysis server instead of rolling our own snippets.
from dartboard.
I am not sure what is the difference between a code snippet and a completion proposal. Can you please describe in a user-story what you mean by code snippet?
from dartboard.
I'm talking about https://github.com/Microsoft/language-server-protocol/blob/master/snippetSyntax.md. I might be misunderstanding it though.
Ultimately this would boil down to a user wanting to have the import ''
statement written out for him, and then have the cursor placed inside the ''
like so: import '<cursor>'
. I'm not sure if this is what I'm talking about, because the documentation seems very scarce on the LSP side of things.
This is the LSP spec on this.
LSP4E seems to report true on the snippetSupport
parameter, but I couldn't find the code for this. Or is it just a generic completionItem?
completion?: {
/**
* Whether completion supports dynamic registration.
*/
dynamicRegistration?: boolean;
/**
* The client supports the following `CompletionItem` specific
* capabilities.
*/
completionItem?: {
/**
* The client supports snippets as insert text.
*
* A snippet can define tab stops and placeholders with `$1`, `$2`
* and `${3:foo}`. `$0` defines the final tab stop, it defaults to
* the end of the snippet. Placeholders with equal identifiers are linked,
* that is typing in one will update others too.
*/
snippetSupport?: boolean;
...
from dartboard.
Yes, it does support snippets if you use master branch. See
from dartboard.
Awesome. Thanks for the clarification. I will see if this is something the LS of Dart might provide then.
from dartboard.
I submitted dart-lang/sdk#37831.
from dartboard.
Related Issues (20)
- Oomph task for p2 installation fails HOT 2
- Dart SDK location referenced in tests not correct on Windows HOT 1
- Flutter SDK preference control misbehaves HOT 2
- Expose opened file in the startup of the language server
- Support --route parameter
- Allow creation of Flutter projects HOT 2
- Moving forward on portability and SDK support
- Use entry point from stagehand in initial launch configuration creation
- tycho-maven-plugin:1.6.0-SNAPSHOT unresolved HOT 5
- How to configure max line length in formatter HOT 3
- Support --enable-vm-service flag for dart run HOT 3
- Project dead? HOT 3
- Core API-like feature HOT 1
- Code navigation (ctrl + clic) does not works after upgrade eclipse to 2020-06 HOT 2
- Need to provide a Dart perspective
- Eclipse preference Dart SDK location validation always false - wrong compare string HOT 4
- Not a valid SDK Location (Flutter on Windows 10) HOT 4
- installation fails due to dependency conflict with wwd HOT 5
- [Eclipse 2023-03][macOS] installation fails due to dependency not found org.eclipse.mylyn.commons.notifications.core HOT 2
- Conflict in installing on latest Eclipse version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dartboard.