Skip to content

Commit 0c31ee0

Browse files
committed
Merge pony-language-server into pony-vscode
2 parents 5d00b30 + e7e0da6 commit 0c31ee0

File tree

10 files changed

+3519
-2
lines changed

10 files changed

+3519
-2
lines changed

.vscodeignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.vscode
2+
node_modules
3+
src/
4+
tsconfig.json

Makefile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
PONY_VERSION := 0.58.4
2+
3+
config ?= release
4+
ifdef config
5+
ifeq (,$(filter $(config),debug release))
6+
$(error Unknown configuration "$(config)")
7+
endif
8+
endif
9+
10+
11+
BUILD_DIR := ../build/$(config)
12+
DIST_DIR := dist
13+
SRC_DIR := src
14+
EXTENSION_JS := $(DIST_DIR)/extension.js
15+
EXTENSION := $(BUILD_DIR)/pony-lsp-$(PONY_VERSION).vsix
16+
SOURCE_FILES := $(shell find $(SRC_DIR) -name *.ts)
17+
18+
all: $(EXTENSION)
19+
20+
$(EXTENSION): $(SOURCE_FILES) pony-lsp node_modules
21+
vsce package -o $(BUILD_DIR) $(PONY_VERSION)
22+
23+
node_modules:
24+
npm install
25+
26+
pony-lsp: $(BUILD_DIR)/pony-lsp
27+
cp $(BUILD_DIR)/pony-lsp pony-lsp
28+
29+
$(BUILD_DIR)/pony-lsp:
30+
$(MAKE) -C ..
31+
32+
clean:
33+
rm -rf dist $(BUILD_DIR)
34+
35+
36+
.PHONY: clean

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1-
# vscode-extension
1+
# Pony Extension for Visual Studio Code
22

3-
Pony VSCode support
3+
## How to Build
4+
5+
```sh
6+
# compile the code
7+
npm install
8+
npm run compile
9+
# build the package
10+
vsce package "${VERSION}"
11+
# uninstall any previously installed packages
12+
code --uninstall-extension undefined_publisher.pony-lsp
13+
# install the package
14+
code --install-extension "pony-lsp-${VERSION}.vsix"
15+
```

language-configuration.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"comments": {
3+
// symbol used for single line comment. Remove this entry if your language does not support line comments
4+
"lineComment": "//",
5+
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
6+
"blockComment": [ "/*", "*/" ]
7+
},
8+
// symbols used as brackets
9+
"brackets": [
10+
["{", "}"],
11+
["[", "]"],
12+
["(", ")"]
13+
],
14+
// symbols that are auto closed when typing
15+
"autoClosingPairs": [
16+
["{", "}"],
17+
["[", "]"],
18+
["(", ")"],
19+
["\"", "\""],
20+
["'", "'"]
21+
],
22+
// symbols that that can be used to surround a selection
23+
"surroundingPairs": [
24+
["{", "}"],
25+
["[", "]"],
26+
["(", ")"],
27+
["\"", "\""],
28+
["'", "'"]
29+
]
30+
}

0 commit comments

Comments
 (0)