Path: blob/main/extensions/copilot/test/simulationExtension/extension.js
13388 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45// You might think this is weird. It is weird.6//7// VS Code must know where require calls happen in order to attribute them to8// the right extension (and check proposed API access.) It does this by checking9// the path of the require'ing module, and this fails once we go out of the10// directory and request the simulation workbench.11//12// This is pulled in via .esbuild.mts which shims the vscode module.13globalThis.COPILOT_SIMULATION_VSCODE = require('vscode');1415exports.activate = require(process.env.VSCODE_SIMULATION_EXTENSION_ENTRY);161718