Comments (2)
I see some strange behavior for code completion in JavaDoc (/**) comments. @JustinProminic reported similar issues for /* and // comments, but I couldn't reproduce this.
I wonder if Justin accidentally added /** instead of /*, and that's why he saw some completion.
I think this is intentional, though. You can see that it gives me an option to generate an
@link
, which is something I use in Eclipse. Completing the class name could potentially be nice when writing the documentation as well.
Yes, this comes from the language server, and it appears to be intentional.
Continue typing "m.". Moonshine starts completion again, but shows nested classes, not methods or properties.
I have no idea why VSCode behaves differently here. There are indeed using the same language server.
It could be that different versions of the language server or different versions of the JDK provide slightly differing behaviors. The VSCode extension might be using a different default value for a setting than the language server. For reference, the language server is developed by Eclipse, while the VSCode extension is developed by Red Hat. It's possible that the teams have a disagreement on what should be default.
Regardless, this appears to be similar intentional behavior to me. I would be wary to consider it a bug. Even if you want to consider it a bug, I'm not sure how I would tell the language server to change this behavior. There probably aren't any settings for that level of granularity.
Create a JavaDoc comment. A closing */ is automatically added when you hit Enter
Moonshine's text editor supports "auto-closing pairs", but it looks like I haven't added any type of comments in the pairs specified in Moonshine's language syntax plugins. Only brackets so far. I may have simply forgotten to add them. I'll add this to my to-do list.
from moonshine-feathersui-text-editor.
Continue typing "m.". Moonshine starts completion again, but shows nested classes, not methods or properties.
The VSCode behavior for this case is fine if we want to stick with that. I could see both the VSCode and Eclipse behavior being annoying in some cases, so this may have just been a developer preference. I am a little out of date on Eclipse (2020-09), so that could also explain the difference.
I had some more thoughts about the comment completion, so I created #13.
from moonshine-feathersui-text-editor.
Related Issues (16)
- Syntax highlighting for C/C++
- Opening Editor Do Not Auto-scrolls To Given Line Number HOT 1
- Cannot edit file after using find/search feature HOT 2
- Java Block Comment Completion HOT 1
- Horizontal scrolling via mouse selection doesn't work
- After picking up options from intellisence editor removes some characters HOT 1
- Make code completion more smart on case sensitivity HOT 1
- Syntax highlighting for C#
- Editor "Dark Mode" HOT 3
- TextEditorChanges must not overlap - exception HOT 1
- Cursor jumps to import section when new import is added HOT 2
- Code completion should react on already typed words HOT 1
- Not able type in editor closing curly bracket
- Right-Click Context Menu HOT 2
- Pressing Delete Key Makes Cursor To Jump Multiple Character Indexes
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 moonshine-feathersui-text-editor.