-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extensibility support #102
Comments
Does VS Code supports feature like this? If not, I'm afraid you need to figure it out yourself |
i know its not api currently, but you are using this helper
|
What do you mean by "make it API"? |
the latter, i want to use this externally, as i dont need to rewrite it then ^^ edit: i mean the first |
So you want to set your own |
sorry my previous answer was missleading, i mistyped - i meant: That i want to use it in a custom completion provider. (Im using your emmet simutaneosly so i thought this package might as well properly expose: for more context, this is how im planning to use it: import { isValidLocationForEmmetAbbreviation } from "emmet-monaco-es/src/abbreviationActions";
monaco.languages.registerCompletionItemProvider(languageId, {
provideCompletionItems(model, position) {
if (
!isValidLocationForEmmetAbbreviation(
model,
position,
"html",
"html"
)
) {
return;
}
return myCustomSuggestion(...);
} |
Oh, so the first one is what you want |
I'm working with a Html(Xml) and Jsx like DSL
The problem is that elements support a dot in their name like:
So I was wondering if one could use this Emmet package to somehow add custom
Emmet snippets (and don't interprete the dot as css class)
edit:
I fear this is not possible as Emmet itself doesn't even support this for Jsx. For now I will use 'normal' Monaco snippets. (difficulty is figuring out if the cursor is in an attribute but that can be copied from here ^^ - or extracted/exposed? )
The text was updated successfully, but these errors were encountered: