TheRealSyler / vscode-sass-indented

Sass indented syntax support for VSCode
https://marketplace.visualstudio.com/items?itemName=Syler.sass-indented
Other
44 stars 8 forks source link

Missing data in Outline window #113

Open GitUser200607 opened 1 year ago

GitUser200607 commented 1 year ago

Is your feature request related to a problem? Please describe. I don't know is it a bug, or missing feature.

Describe the solution you'd like Outline window has to display scss file structure: element, classes and ids names to jump on them

Add any other context or screenshots about the feature request here. CSS file: 2022-11-15_13-20-31

SASS file: 2022-11-15_13-22-06

TheRealSyler commented 1 year ago

is a missing feature, im currently not adding new features if you want to you can add it and i will merge the pr, i think its related to #40

GitUser200607 commented 1 year ago

How can I add it?

TheRealSyler commented 1 year ago

@GitUser200607 you need to add a "Definition Provider", using the languages.registerDefinitionProvider function in the extension.ts#activate function, put your code src/languageFeatures/codeCompletions i don't think that there is an example extension to show how to implement it but it shouldn't be to hard, i would suggest you look for npm packages that to parse sass files before trying to do it yourself unless you really want to.