mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
Removes unused source code that relied on AMD (see https://github.com/microsoft/vscode/issues/285255) (#286708)
This commit is contained in:
committed by
GitHub
parent
8edf92d2af
commit
3dfd29ab39
@@ -1,40 +0,0 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Leak Test Bed</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<button id="alloc">Alloc</button>
|
||||
<button id="dealloc">Dealloc</button>
|
||||
|
||||
<script src="/static/vs/loader.js"></script>
|
||||
<script>
|
||||
require.config({ baseUrl: '/static' });
|
||||
|
||||
require(['vs/base/browser/event'], ({ domEvent }) => {
|
||||
let event;
|
||||
let listener;
|
||||
|
||||
function alloc() {
|
||||
event = domEvent(document.body, 'mousemove');
|
||||
listener = event(e => console.log(e));
|
||||
}
|
||||
|
||||
function dealloc() {
|
||||
listener.dispose();
|
||||
listener = null;
|
||||
event = null;
|
||||
}
|
||||
|
||||
const allocBtn = document.getElementById('alloc');
|
||||
allocBtn.onclick = alloc;
|
||||
|
||||
const deallocBtn = document.getElementById('dealloc');
|
||||
deallocBtn.onclick = dealloc;
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"name": "leaks",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"koa": "^2.13.1",
|
||||
"koa-mount": "^4.0.0",
|
||||
"koa-static": "^5.0.0"
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
const Koa = require('koa');
|
||||
const serve = require('koa-static');
|
||||
const mount = require('koa-mount');
|
||||
|
||||
const app = new Koa();
|
||||
|
||||
app.use(serve('.'));
|
||||
app.use(mount('/static', serve('../../out')));
|
||||
|
||||
app.listen(3000);
|
||||
console.log('👉 http://localhost:3000');
|
||||
Reference in New Issue
Block a user