We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b9fd52 commit 3f1206aCopy full SHA for 3f1206a
1 file changed
extensions/typescript-language-features/src/utils/platform.ts
@@ -3,6 +3,9 @@
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
+import * as vscode from 'vscode';
7
+
8
export function isWeb(): boolean {
- return typeof process === 'undefined';
9
+ // @ts-expect-error
10
+ return typeof navigator !== 'undefined' && vscode.env.uiKind === vscode.UIKind.Web;
11
}
0 commit comments