Skip to content

Commit 474d3c2

Browse files
committed
Add code fragments
1 parent 108a49c commit 474d3c2

28 files changed

+2086
-18
lines changed

.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
out
2+
testing
3+
node_modules
4+
*.sw?
5+
.vscode-test
6+
.DS_Store
7+
*.vsix
8+
*.log
9+
10+
typings/*
11+
!typings/custom/
12+
testing
13+
*.un~

.travis.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
notifications:
2+
email: false
3+
4+
sudo: true
5+
6+
os:
7+
- linux
8+
9+
language: node_js
10+
11+
node_js:
12+
- 8.9.1
13+
14+
addons:
15+
apt:
16+
packages:
17+
- libsecret-1-dev
18+
19+
before_install:
20+
- if [ $TRAVIS_OS_NAME == "linux" ]; then
21+
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
22+
sh -e /etc/init.d/xvfb start;
23+
sleep 3;
24+
fi
25+
26+
install:
27+
- npm install;
28+
29+
script:
30+
- npm test
31+
- npm run lint
32+
33+
before_deploy:
34+
- npm install -g vsce;
35+
- vsce package;
36+
37+
deploy:
38+
provider: releases
39+
api_key:
40+
secure: xOq7R0y8Hzf1k1P3qcLu1E+RZxJ+oiaGgbI2IO2ZFxZT7jkgQcO4Nx/PtP6Y3XD195wWzpASp0e3eQtHa9kPjsncFa/x2lCZgjfIG88F4YUTgzVmmMYg4unFJNweYye4mxgGbKaitiah9Ee/+CBH4WXJ5ssnEebb/r/OVlaKiDmrCNi2IbsMK7ydWm6BN6QID730ExnU+HgMXoJgKrAaQxNJH6sCRP7kh0inYqVfzuZmOYG0z/wT1izNn+UViSGsqGHjF0BN819opOitnamdb+wG3A9aHV4mOGfUFGPgLQZbIm1b+mR0NUFY4KzdxNeK1WedMZMWYuN7NMwOX/zNU+riGyBcTsRPxA9z3kaXB5RiLTERtKmmO5bDsBQNRdBaBeowWry+DZDmNqXETl6ccGBdpqguLU0a1CAfMwTUgXTyTzRAo1jR+yRfdcVmMzSDrPwcvST9dsrW1SoA+gDeh8aM4S+mXXok/xCUehgpl1HYWLKxvygl3UyNcDQsMpD2b57EDO1zZ291wore4qJKpIy+tzBVPIQ50j9FZP8B22Vx0D8lJRHg2NfF6+od/lN2MXp/PUb55JDaLqJtI6rY9Y9iq1qtzlZsUFDwGnjRDUF7FwKMELw4QGeg/bu3IDzCcQ3QLqR1WlAxVYaFInazJV97O/MgAkdj5ZpQcrUkcvs=
41+
file_glob: true
42+
file: "*.vsix"
43+
skip_cleanup: true
44+
on:
45+
repo: markvincze/vscode-codeFragments
46+
tags: true

.vscode/extensions.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
"eg2.tslint"
6+
]
7+
}

.vscode/launch.json

+22-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// A launch configuration that launches the extension inside a new window
1+
// A launch configuration that compiles the extension and then opens it inside a new window
22
// Use IntelliSense to learn about possible attributes.
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
@@ -12,7 +12,26 @@
1212
"runtimeExecutable": "${execPath}",
1313
"args": [
1414
"--extensionDevelopmentPath=${workspaceFolder}"
15-
]
15+
],
16+
"outFiles": [
17+
"${workspaceFolder}/out/**/*.js",
18+
"${workspaceFolder}/out/**/*.json",
19+
],
20+
"preLaunchTask": "npm: watch"
21+
},
22+
{
23+
"name": "Extension Tests",
24+
"type": "extensionHost",
25+
"request": "launch",
26+
"runtimeExecutable": "${execPath}",
27+
"args": [
28+
"--extensionDevelopmentPath=${workspaceFolder}",
29+
"--extensionTestsPath=${workspaceFolder}/out/test"
30+
],
31+
"outFiles": [
32+
"${workspaceFolder}/out/test/**/*.js"
33+
],
34+
"preLaunchTask": "npm: watch"
1635
}
1736
]
18-
}
37+
}

.vscode/settings.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"files.exclude": {
4+
"out": false // set this to true to hide the "out" folder with the compiled JS files
5+
},
6+
"search.exclude": {
7+
"out": true // set this to false to include "out" folder in search results
8+
}
9+
}

.vscode/tasks.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// See https://go.microsoft.com/fwlink/?LinkId=733558
2+
// for the documentation about the tasks.json format
3+
{
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "watch",
9+
"problemMatcher": "$tsc-watch",
10+
"isBackground": true,
11+
"presentation": {
12+
"reveal": "never"
13+
},
14+
"group": {
15+
"kind": "build",
16+
"isDefault": true
17+
}
18+
}
19+
]
20+
}

.vscodeignore

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
.vscode/**
22
.vscode-test/**
3+
out/test/**
4+
test/**
5+
src/**
6+
**/*.map
37
.gitignore
8+
tsconfig.json
9+
vsc-extension-quickstart.md

images/codefragments-insert.gif

594 KB
Loading

images/codefragments-save.gif

583 KB
Loading

images/icon-delete-dark.png

563 Bytes
Loading

images/icon-delete-light.png

566 Bytes
Loading

images/icon-export-dark.png

671 Bytes
Loading

images/icon-export-light.png

690 Bytes
Loading

images/icon-import-dark.png

713 Bytes
Loading

images/icon-import-light.png

714 Bytes
Loading

images/icon.png

1.64 KB
Loading

0 commit comments

Comments
 (0)