chore(vscode): update to 1.56.0
This commit is contained in:
@ -11,4 +11,7 @@ Provides: visual-studio-@@NAME@@
|
||||
Conflicts: visual-studio-@@NAME@@
|
||||
Replaces: visual-studio-@@NAME@@
|
||||
Description: Code editing. Redefined.
|
||||
Visual Studio Code is a new choice of tool that combines the simplicity of a code editor with what developers need for the core edit-build-debug cycle. See https://code.visualstudio.com/docs/setup/linux for installation instructions and FAQ.
|
||||
Visual Studio Code is a new choice of tool that combines the simplicity of a
|
||||
code editor with what developers need for the core edit-build-debug cycle.
|
||||
See https://code.visualstudio.com/docs/setup/linux for installation
|
||||
instructions and FAQ.
|
||||
|
@ -261,6 +261,9 @@ const requestHandler = (req, res) => {
|
||||
} else if (pathname === '/fetch-callback') {
|
||||
// callback fetch support
|
||||
return handleFetchCallback(req, res, parsedUrl);
|
||||
} else if (pathname === '/builtin') {
|
||||
// builtin extnesions JSON
|
||||
return handleBuiltInExtensions(req, res, parsedUrl);
|
||||
}
|
||||
|
||||
return serveError(req, res, 404, 'Not found.');
|
||||
@ -303,6 +306,17 @@ function addCORSReplyHeader(req) {
|
||||
return (ALLOWED_CORS_ORIGINS.indexOf(req.headers['origin']) >= 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {import('http').IncomingMessage} req
|
||||
* @param {import('http').ServerResponse} res
|
||||
* @param {import('url').UrlWithParsedQuery} parsedUrl
|
||||
*/
|
||||
async function handleBuiltInExtensions(req, res, parsedUrl) {
|
||||
const { extensions } = await builtInExtensionsPromise;
|
||||
res.writeHead(200, { 'Content-Type': 'application/json' });
|
||||
return res.end(JSON.stringify(extensions));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {import('http').IncomingMessage} req
|
||||
* @param {import('http').ServerResponse} res
|
||||
|
Reference in New Issue
Block a user