Skip to content

Commit c405129

Browse files
committed
Initial commit
0 parents  commit c405129

31 files changed

+5601
-0
lines changed

.vscodeignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.vscode-test/**
2+
out/test/**
3+
out/**/*.map
4+
src/**
5+
.gitignore
6+
tsconfig.json
7+
vsc-extension-quickstart.md
8+
tslint.json
9+
node_modules/vsce

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Change Log
2+
3+
## [0.1.4] - 2019-9-18
4+
### First macOS Alpha release
5+
6+
## [0.1.3] - 2019-7-10
7+
### Add the support of autocomplete and code snippets
8+
9+
## [0.1.1] - 2019-6-30
10+
### Initial release

DevREADME.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Welcome to AutoCAD Lisp Extension
2+
3+
AutoCAD Lisp Extension is a vscode extension for debug AutoCAD Visual Lisp. The Extension plays the roles of both debug adapter and language server which could enable you debug lisp with AutoCAD. The following description is for developers.
4+
5+
## How to setup the Dev Env
6+
You could setup the develop environment by:
7+
```
8+
cd AutoLispExt
9+
npm install
10+
```
11+
12+
## How to compile the code
13+
You could compile the code by:
14+
```
15+
cd AutoLispExt
16+
npm run compile
17+
```
18+
19+
## How to package the extension
20+
You could package the extension by:
21+
```
22+
cd AutoLispExt
23+
.\\node_modules\\.bin\\vsce package
24+
```
25+
26+
## The Script pack.py
27+
You could do all above steps by the script pack.py.
28+
```
29+
cd AutoLispExt
30+
python pack.py
31+
```
32+
33+
## Notice
34+
You may encounter the failure of npm install, the error message would say:
35+
Error installing vscode.d.ts: Error: read ECONNRESET
36+
If you encounter this problem, maybe your NODE is too old, in version v10.13.0 it
37+
can work well.

README.md

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Welcome to the AutoCAD® LISP Extension
2+
3+
The AutoCAD LISP extension is a Microsoft® Visual Studio® Code extension that enables you to debug AutoLISP® source files with AutoCAD. The extension plays the dual role of both debug adapter and language server.
4+
5+
## Features
6+
1. Debug Adapter
7+
* Launch Debug
8+
* Attach Debug
9+
2. Language Server
10+
* Syntax highlight
11+
* Smart bracket
12+
* Document format
13+
* Break on error
14+
15+
## Platform support
16+
Windows | Mac | Linux |
17+
:-------: | :---: | :-------: |
18+
<font color=green>√</font> | <font color=green>√</font> | <font color=red>x</font> |
19+
20+
## How to use the AutoCAD LISP Extension
21+
To debug an AutoLISP source file, press F5 and then choose one of the following debug configurations:
22+
- AutoLISP Debug: Launch
23+
- AutoLISP Debug: Attach
24+
25+
If prompted, specify the absolute path to the AutoCAD executable (acad.exe).
26+
27+
Note: To avoid specifying this path each time you press F5, configure launch.json to include the absolute path to the AutoCAD executable.
28+
29+
## How to configure the AutoCAD path
30+
To specify the path to the AutoCAD executable that is used with launch debug, update the “path” attribute of the launchlisp configuration in launch.json. For example:
31+
```
32+
{
33+
"version": "0.1.1",
34+
"configurations": [
35+
{
36+
"type": "attachlisp",
37+
"request": "attach",
38+
"name": "Autolisp Debug: Attach",
39+
"attributes": {
40+
"process":"acad" //process name used to filter when attach
41+
}
42+
},
43+
{
44+
"type": "launchlisp",
45+
"request": "launch",
46+
"name": "Autolisp Debug: Launch",
47+
"attributes":{
48+
"path": "C:\\Program Files\\Autodesk\\AutoCAD AutoLISP Preview\\acad.exe", // absolute path of acad.exe
49+
"params": "" // AutoCAD startup parameter
50+
}
51+
}
52+
]
53+
}
54+
```
55+
56+
## Notes
57+
1. Other LISP extensions may conflict with this extension. If you are unable to set a breakpoint in an LSP file or you cannot use launch/attach debug, you should uninstall all other LISP extensions.
58+
2. If you launch AutoCAD as an administrator, you should start Microsoft Visual Studio Code as an administrator as well. Otherwise, Microsoft Visual Studio Code will be unable to locate the AutoCAD process for attach debug.
59+

extension/data/alldclkeys.txt

+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
action
2+
alignment
3+
allow_accept
4+
aspect_ratio
5+
audit_level
6+
big_increment
7+
black
8+
blue
9+
bottom
10+
boxedaction
11+
boxed_column
12+
boxed_radio_column
13+
boxed_radio_row
14+
boxed_row
15+
button
16+
cancel_button
17+
centered
18+
children_alignment
19+
children_fixed_height
20+
children_fixed_width
21+
children_width
22+
cluster
23+
color
24+
column
25+
concatenation
26+
cyan
27+
default_button
28+
default_dcl_settings
29+
dialog|dialog_background
30+
dialog_foreground
31+
dialog_line
32+
edit_box
33+
edit_limit
34+
edit_width
35+
errmsg
36+
errtile
37+
false
38+
fixed_height
39+
fixed_width
40+
graphics_background
41+
graphics_foreground
42+
green
43+
height
44+
help_button
45+
horisontal
46+
horizontal_alignment
47+
horizontal_margin
48+
icon_image
49+
image
50+
image_block
51+
image_button
52+
info_button
53+
initial_focus
54+
is_bold
55+
is_cancel
56+
is_default
57+
is_enabled
58+
is_tab_stop
59+
key
60+
label
61+
layout
62+
left
63+
list
64+
list_box
65+
magenta
66+
max_value
67+
min_value
68+
mnemonic
69+
multiple_select
70+
none
71+
null
72+
num_items
73+
ok_button
74+
ok_cancel
75+
ok_cancel_err
76+
ok_cancel_help
77+
ok_cancel_help_errtile
78+
ok_cancel_help_info
79+
ok_only
80+
paragraph
81+
popup_height
82+
popup_list
83+
radio_button
84+
radio_cluster
85+
radio_column
86+
radio_row
87+
red
88+
retirement_button
89+
right
90+
row
91+
slider
92+
small_increment
93+
spacer
94+
spacer_0
95+
spacer_1
96+
tab_truncate
97+
tabs
98+
text
99+
text_part
100+
tile
101+
tiny
102+
toggle
103+
top
104+
true
105+
type
106+
value
107+
vertical
108+
vertical_alignment
109+
vertical_margin
110+
white
111+
wide
112+
width
113+
yellow
114+
password_char
115+
fixed_width_font

0 commit comments

Comments
 (0)