fixed
This commit is contained in:
parent
2d10500316
commit
a3b33a55ff
|
|
@ -2,7 +2,7 @@
|
|||
"name": "x86-assembly-syntax",
|
||||
"displayName": "Universal Assembly Syntax Highlighting",
|
||||
"description": "Syntax highlighting extension for x86, x64 and ARM assembly both for Intel and AT&T syntax",
|
||||
"version": "1.0.8",
|
||||
"version": "1.0.9",
|
||||
"engines": {
|
||||
"vscode": "^1.60.0"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -18,12 +18,11 @@ function activate(context) {
|
|||
return new vscode.Hover(instructionInfo);
|
||||
}
|
||||
} else {
|
||||
// Only show hover for recognized mnemonics
|
||||
return undefined; // Return undefined if not a valid mnemonic
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
return undefined; // Return undefined if no word found
|
||||
return undefined;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -83,7 +82,7 @@ async function fetchInstructionInfo(instruction) {
|
|||
|
||||
async function findDefinition(word) {
|
||||
// Get all x86 assembly files in the workspace
|
||||
const files = await vscode.workspace.findFiles('**/*.s', '**/*.asm', '**/*.nasm', '**/*.S', "**/*.asmx", "**/*.inc");
|
||||
const files = await vscode.workspace.findFiles('**/*.s', '**/node_modules/**');
|
||||
|
||||
for (const file of files) {
|
||||
const document = await vscode.workspace.openTextDocument(file);
|
||||
|
|
@ -120,4 +119,4 @@ function deactivate() {}
|
|||
module.exports = {
|
||||
activate,
|
||||
deactivate
|
||||
};
|
||||
};
|
||||
Loading…
Reference in a new issue