Skip to content
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

Add onURILiteralValue completion participation point #76

Merged
merged 3 commits into from
Mar 19, 2018

Conversation

octref
Copy link
Contributor

@octref octref commented Mar 14, 2018

No description provided.

@octref octref requested a review from aeschli March 14, 2018 18:08
@octref octref changed the title Add onCssURILiteralValue completion participation point [WIP] Add onCssURILiteralValue completion participation point Mar 14, 2018
Copy link
Contributor

@aeschli aeschli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also need tests...

@@ -54,8 +54,9 @@ export interface ColorPresentation {
}

export interface ICompletionParticipant {
onCssProperty: (context: { propertyName: string; range: Range; }) => void;
onCssPropertyValue: (context: { propertyName: string; propertyValue?: string; range: Range; }) => void;
onCssProperty?: (context: { propertyName: string; range: Range; }) => void;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd write 'CSS' all uppercase (or omit it, as it's also for LESS/SCSS)
Also, I'd add interfaces for the contexts. It saves a lot of typing.

@octref octref changed the title [WIP] Add onCssURILiteralValue completion participation point Add onURILiteralValue completion participation point Mar 19, 2018
@aeschli aeschli merged commit c66dc1d into master Mar 19, 2018
@aeschli aeschli added this to the March 2018 milestone Mar 29, 2018
@octref octref deleted the octref/pathCompletion branch April 12, 2018 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants