forked from smithy-lang/smithy-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start on any Smithy files (smithy-lang#96)
Previous behavior was for the extension to be triggered when you opened a `.smithy` file. This commit makes the extension trigger whenever there's a smithy file (or build file) in the workspace.
- Loading branch information
1 parent
28481ca
commit 0874f91
Showing
5 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"version": "1.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import * as assert from "assert"; | ||
import * as vscode from "vscode"; | ||
|
||
suite("Startup", function () { | ||
this.timeout(0); | ||
|
||
test("Should start without opening a smithy file", async () => { | ||
const extension = vscode.extensions.getExtension("smithy.smithy-vscode-extension"); | ||
assert.ok(extension.isActive); | ||
|
||
return Promise.resolve(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { runTests } from "../helper"; | ||
|
||
export function run(testsRoot: string, cb: (error: any, failures?: number) => void): void { | ||
runTests(testsRoot, cb); | ||
} |