Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [soc-dev] For reviewing proposal idea for GSoC

 -  By snippet using LSP, I mean, language servers provide facility 'completion' so if user inputs code in form of EBNF, then a request will be made from client and a reply will be provided from server that will be converted into desired code. So, I am willing to work on this transaction, i.e., adding support for completion for code provided in form of EBNF.


 - By custom snippet, i mean to add an option in IDE where user can set **snippet with custom keyboard shortcut so that for a particular plugin, it respond different code depending on the language used and file extension. A property will be required, to be added in plugins to convert these predefined snippet (simple command) into code depending on language.  

For example, I set keyboard shortcut Ctrl + Shift + P  for print statement in IDE and have installed following plugins.
1. On working on _javascript_ file if i press Ctrl + Shift + P , 'document.write()' will be written due to the property of Eclipse WWD, with cursor ends in between those parenthesis.
2. On working on C# file, on pressing that keyboard shortcut, 'Console.WriteLine()' will be written due to the property of Eclipse aCute, with cursor ends in between those parenthesis.
3. For Java file, It will be converted to "System.out.println()".

**snippet - Earlier, i meant to add user-defined snippet but now i mean to provide simple snippet which are present in every language like printing task, function, for, while, if and so on. For language like HTML and CSS, there is no snippet present for mentioned tasks, there it will not be needed to implement. 

Sorry for previous unclear post. These two ideas are a bit irrelevant, with code snippet thing common.


Thanks


On Sun, Mar 24, 2019 at 9:10 PM Mickael Istria <mistria@xxxxxxxxxx> wrote:
Hi,

Can you elaborate what you mean by "custom code snippets"? A particular snippet technology you're targetting? How does this relate to the language server protocol? Is it a feature that makes more sense in the IDE or in the Language Servers directly?
_______________________________________________
soc-dev mailing list
soc-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/soc-dev

Back to the top