diff --git a/package.json b/package.json index e747ace..0f2ba72 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/src/extension.js b/src/extension.js index 50c7f5e..3278137 100644 --- a/src/extension.js +++ b/src/extension.js @@ -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 -}; +}; \ No newline at end of file