-
Notifications
You must be signed in to change notification settings - Fork 118
Update environment checks #2079
Copy link
Copy link
Closed
Labels
Technical DebtIncludes Architecture, Code, Testing, Automation debtIncludes Architecture, Code, Testing, Automation debtTheiaIssues related to the Extension running in TheiaIssues related to the Extension running in Theiapriority-mediumNot functioning - next quarter if capacity permitsNot functioning - next quarter if capacity permits
Metadata
Metadata
Assignees
Labels
Technical DebtIncludes Architecture, Code, Testing, Automation debtIncludes Architecture, Code, Testing, Automation debtTheiaIssues related to the Extension running in TheiaIssues related to the Extension running in Theiapriority-mediumNot functioning - next quarter if capacity permitsNot functioning - next quarter if capacity permits
Type
Fields
Give feedbackNo fields configured for issues without a type.
our current istheia test can provide a false positive
for determining whether we're running in VSCode versus Theia, can use vscode.env.uriScheme instead of vscode.env.appName. 'uriScheme' seems to provide a somewhat simpler string to compare against
export function isVSCode(): boolean {
return (vscode.env.uriScheme == 'vscode' || vscode.env.uriScheme == 'vscodium');
}
export function isTheia(): boolean {
return (vscode.env.uriScheme == 'theia');
}