Skip to content

Commit 38425a9

Browse files
committed
fix: typings
1 parent 7a175aa commit 38425a9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"vscode": "^1.45.1"
3939
},
4040
"scripts": {
41-
"precompile": "yarn run rimraf dist",
4241
"vscode:prepublish": "yarn run compile",
42+
"precompile": "yarn run rimraf dist/*",
4343
"compile": "tsc -p ./",
4444
"pretest": "yarn run compile && yarn run lint",
4545
"test": "mocha -r ts-node/register \"src/**/*.spec.ts\"",

src/ui.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import * as vscode from "vscode"
22

3-
export function showMessage(message: string): Thenable<unknown> {
3+
export function showMessage(message: string): Thenable<string | undefined> {
44
return vscode.window.showInformationMessage(message)
55
}
66

7-
export function showErrorMessage(message: string): Thenable<unknown> {
7+
export function showErrorMessage(message: string): Thenable<string | undefined> {
88
return vscode.window.showErrorMessage(message)
99
}
1010

@@ -13,7 +13,7 @@ export function showStatus<T>(message: string, hideWhenDone: Thenable<T>): Thena
1313
return hideWhenDone
1414
}
1515

16-
export function revert(uri: vscode.Uri): Thenable<unknown> {
16+
export function revert<T>(uri: vscode.Uri): Thenable<T | undefined> {
1717
return vscode.commands.executeCommand("workbench.action.files.revert", uri)
1818
}
1919

0 commit comments

Comments
 (0)