提交 cbb2e053 编写于 作者: M Martin Aeschlimann

workaround for #7660

上级 b498c11b
......@@ -21,12 +21,20 @@ export class CSSNavigation {
let node = nodes.getNodeAtOffset(stylesheet, offset);
if (!node) {
return null;
//workaround for https://github.com/Microsoft/vscode-languageserver-node/issues/45
return Promise.resolve({
uri: document.uri,
range: Range.create(position, position)
});
}
let symbol = symbols.findSymbolFromNode(node);
if (!symbol) {
return null;
//workaround for https://github.com/Microsoft/vscode-languageserver-node/issues/45
return Promise.resolve({
uri: document.uri,
range: Range.create(position, position)
});
}
return Promise.resolve({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册