[html/css] decorators for embedded css

This commit is contained in:
Martin Aeschlimann
2016-10-24 15:26:27 +02:00
parent 2df11a3136
commit 4bfb974814
3 changed files with 60 additions and 33 deletions

View File

@@ -176,8 +176,11 @@ connection.onCodeAction(codeActionParams => {
connection.onRequest(ColorSymbolRequest.type, uri => {
let document = documents.get(uri);
let stylesheet = stylesheets.get(document);
return getLanguageService(document).findColorSymbols(document, stylesheet);
if (document) {
let stylesheet = stylesheets.get(document);
return getLanguageService(document).findColorSymbols(document, stylesheet);
}
return [];
});
connection.onRenameRequest(renameParameters => {