Skip to content

Commit d65c214

Browse files
committed
chore: add examples
1 parent b41276b commit d65c214

File tree

11 files changed

+54
-1
lines changed

11 files changed

+54
-1
lines changed

.vscode/launch.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"request": "launch",
88
"runtimeExecutable": "${execPath}",
99
"args": [
10-
"--extensionDevelopmentPath=${workspaceFolder}"
10+
"--disable-extensions",
11+
"--extensionDevelopmentPath=${workspaceFolder}",
12+
"${workspaceFolder}/examples"
1113
],
1214
"outFiles": [
1315
"${workspaceFolder}/dist/**/*.js"

examples/embed.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/normal.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/normal.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/ref.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/ref.js.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"version":3,"file":"source.js","sourceRoot":"","sources":["source.ts"],"names":[],"mappings":";;;AAAA,SAAgB,GAAG,CAAC,CAAS,EAAE,CAAS;IACtC,OAAO,CAAC,GAAG,CAAC,CAAA;AACd,CAAC;AAFD,kBAEC","sourcesContent":["export function add(a: number, b: number) {\n return a + b\n}\n"]}

examples/sibling.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
"use strict";
2+
exports.__esModule = true;
3+
exports.add = void 0;
4+
function add(a, b) {
5+
return a + b;
6+
}
7+
exports.add = add;

examples/sibling.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/source.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function add(a: number, b: number) {
2+
return a + b
3+
}

examples/web.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<html>
2+
<body>
3+
<script>
4+
"use strict";
5+
exports.__esModule = true;
6+
exports.add = void 0;
7+
function add(a, b) {
8+
return a + b;
9+
}
10+
exports.add = add;
11+
</script>
12+
</body>
13+
</html>

examples/web.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)