Skip to content

Commit 50e6c49

Browse files
committed
fix README code example
1 parent b4bc32e commit 50e6c49

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015 Jan Jurzitza
3+
Copyright (c) 2019 Jan Jurzitza
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ Add code-d as dependency to your vscode extension inside the package.json:
1616

1717
To use, simply get the extension using this code:
1818
```ts
19-
import * from "code-d-api";
19+
import * as coded from "code-d-api";
2020

2121
export function activate(context: vscode.ExtensionContext) {
22-
const api: coded.CodedAPI | undefined;
22+
let api: coded.CodedAPI | undefined;
2323
const codedExtension = vscode.extensions.getExtension<coded.CodedAPI>(coded.codedExtensionId);
2424
if (codedExtension) {
2525
api = codedExtension.exports;

0 commit comments

Comments
 (0)