refactor: move jest and add package.json to /test
This commit is contained in:
@ -15,8 +15,7 @@
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"newLine": "lf",
|
||||
"skipLibCheck": true
|
||||
"newLine": "lf"
|
||||
},
|
||||
"include": [
|
||||
"**/*.ts"
|
||||
|
@ -6,6 +6,6 @@
|
||||
import * as vscode from 'vscode';
|
||||
|
||||
export function isWeb(): boolean {
|
||||
// NOTE@coder: Remove unused ts-expect-error directive which causes tsc to error.
|
||||
// @ts-expect-error
|
||||
return typeof navigator !== 'undefined' && vscode.env.uiKind === vscode.UIKind.Web;
|
||||
}
|
||||
|
Reference in New Issue
Block a user