mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
workaround for #7660
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user