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

Wrong CSS file used for definition #9

Open
dsoudakov opened this issue Mar 24, 2017 · 1 comment
Open

Wrong CSS file used for definition #9

dsoudakov opened this issue Mar 24, 2017 · 1 comment

Comments

@dsoudakov
Copy link

First of extension tries to look for class definition in all css files in project directory, but not those files that html file actually uses. So for example I might have something.css and something.min.css, but not importing the min.css. Extension still looks for definition in min.css version.

@dsoudakov
Copy link
Author

dsoudakov commented Mar 24, 2017

Work around for this is:

const file_searches = yield Promise.all(this.fileSearchExtensions.map(type => vscode.workspace.findFiles(**/*${type}, '**/*.min.css')));

in extension.js

which is usually in
%HOMEPATH%.vscode\extensions\pranaygp.vscode-css-peek-1.2.4\out\src\

on Windows 7.

Obviously files like bootstrap.min.css are excluded too, but why would you want to look at minified version in development anyway? :)

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

No branches or pull requests

1 participant