Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let options = {
type: "text",
class: "cquery--disabled"
}
// Delete all existing markers
for(let i = 0;i
onOpenTextDocument(parameters) {
const {Convert} = require('atom-languageclient');
atom.workspace.open(Convert.uriToPath(parameters.uri), {
initialLine: parameters.position.line,
searchAllPanes: true,
});
}
handleMouseClick(event, editor, annotationInfo) {
const {Convert} = require('atom-languageclient');
return atom.workspace.open(Convert.uriToPath(annotationInfo.extraData.declaringStructure.uri), {
initialLine : annotationInfo.extraData.declaringStructure.memberRange.start.line,
searchAllPanes : true
});
}
const editor = atom.workspace.getTextEditors().filter((editor) => {
return (editor.getPath() == Convert.uriToPath(uri));
})[0];
handleMouseClick(event, editor, annotationInfo) {
const {Convert} = require('atom-languageclient');
return atom.workspace.open(Convert.uriToPath(annotationInfo.extraData.declaringStructure.uri), {
initialLine : annotationInfo.extraData.declaringStructure.memberRange.start.line,
searchAllPanes : true
});
}