Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tooltip with instruction and register documentation #40

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ node_modules
*.vsix

# Workspace file
vscode-arm.code-workspace
vscode-arm.code-workspace

package-lock.json
out
29 changes: 16 additions & 13 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
// A launch configuration that launches the extension inside a new window
// A launch configuration that compiles the extension and then opens it inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"name": "Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
]
}
]
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
}
]
}
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"out": false // set this to true to hide the "out" folder with the compiled JS files
},
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off"
}
20 changes: 20 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
4 changes: 3 additions & 1 deletion language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@
{ "open": "'", "close": "'", "notIn": ["string"] },
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "/*", "close": " */", "notIn": ["string"] }
]
],
// (binary|octal|hex|hex|decimal)|float|.?word
"wordPattern": "(#?-?(0b[01]+|0[0-7]+|0x[0-9a-fA-F]+|[0x]?[0-9][0-9a-fA-F]*[hH]|[1-9][0-9]*))|(\\d*\\.\\d\\w*)|\\.?([^\\`\\~\\!\\@\\#\\$\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)",
}
39 changes: 29 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
{
"name": "arm",
"displayName": "Arm Assembly",
"description": "Arm assembly syntax support for Visual Studio Code",
"description": "Arm assembly syntax highlighting and documentation tooltips",
"version": "1.7.4",
"publisher": "dan-c-underwood",
"icon": "images/icon.png",
"author": {
"name": "Dan Underwood"
},
"categories": [
"Programming Languages"
],
"engines": {
"vscode": "^0.10.1"
},
"galleryBanner": {
"color": "#0084A9",
"theme": "dark"
Expand All @@ -22,14 +16,22 @@
"type": "git",
"url": "https://github.com/dan-c-underwood/vscode-arm.git"
},
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Programming Languages"
],
"activationEvents": [],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "arm",
"aliases": [
"ARM",
"Arm",
"arm",
"Arm"
"ARM"
],
"extensions": [
".s",
Expand All @@ -44,8 +46,25 @@
{
"language": "arm",
"scopeName": "source.arm",
"path": "./syntaxes/arm.tmlanguage.json"
"path": "./syntaxes/armv8-a.tmlanguage.json"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint src --ext ts"
},
"devDependencies": {
"@types/vscode": "^1.85.0",
"@types/mocha": "^10.0.6",
"@types/node": "18.x",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"eslint": "^8.56.0",
"typescript": "^5.3.3",
"@vscode/test-cli": "^0.0.4",
"@vscode/test-electron": "^2.3.8"
}
}
14,710 changes: 14,710 additions & 0 deletions src/asm-docs-aarch64.ts

Large diffs are not rendered by default.

Loading