mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-25 04:07:37 +00:00
* Add support for TS's Hierarchical refactorings API https://github.com/microsoft/TypeScript/pull/41975 * Add simple browser extension This change adds a new 'simple browser' extension. This extension uses a webview to render webpages directly in VS Code. We plan on using it for optionally previewing local servers in both desktop and codespaces The browser itself has a number of limitations due to the security around iframes: - It traps keyboard focus - We can't detect if a page fails to load - We can't track the current url of the iframe * Add experimental alert when the iframe is focused * Disable events on focus warning * Hooking up simple browser to opener
69 lines
2.1 KiB
JSON
69 lines
2.1 KiB
JSON
{
|
|
"name": "simple-browser",
|
|
"displayName": "%displayName%",
|
|
"description": "%description%",
|
|
"enableProposedApi": true,
|
|
"version": "1.0.0",
|
|
"icon": "icon.png",
|
|
"publisher": "vscode",
|
|
"license": "MIT",
|
|
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
|
|
"engines": {
|
|
"vscode": "^1.50.0"
|
|
},
|
|
"main": "./out/extension",
|
|
"browser": "./dist/browser/extension",
|
|
"categories": [
|
|
"Programming Languages"
|
|
],
|
|
"activationEvents": [
|
|
"onCommand:simpleBrowser.show",
|
|
"onUriOpen:http",
|
|
"onUriOpen:https"
|
|
],
|
|
"contributes": {
|
|
"commands": [
|
|
{
|
|
"command": "simpleBrowser.show",
|
|
"title": "Show",
|
|
"category": "Simple Browser"
|
|
}
|
|
],
|
|
"configuration": [
|
|
{
|
|
"title": "Simple Browser",
|
|
"properties": {
|
|
"simpleBrowser.opener.enabled": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"title": "Opener Enabled",
|
|
"description": "(Experimental) Enables opening http and https urls using the built-in seper browser"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"scripts": {
|
|
"compile": "gulp compile-extension:markdown-language-features && npm run build-preview",
|
|
"watch": "npm run build-preview && gulp watch-extension:markdown-language-features",
|
|
"vscode:prepublish": "npm run build-ext && npm run build-preview",
|
|
"build-ext": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:markdown-language-features ./tsconfig.json",
|
|
"build-preview": "webpack --mode development",
|
|
"build-preview-production": "webpack --mode production",
|
|
"compile-web": "npx webpack-cli --config extension-browser.webpack.config --mode none",
|
|
"watch-web": "npx webpack-cli --config extension-browser.webpack.config --mode none --watch --info-verbosity verbose"
|
|
},
|
|
"dependencies": {
|
|
"vscode-codicons": "^0.0.12",
|
|
"vscode-extension-telemetry": "0.1.1",
|
|
"vscode-nls": "^4.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^12.11.7",
|
|
"ts-loader": "^6.2.1",
|
|
"typescript": "^3.7.3",
|
|
"webpack": "^4.41.2",
|
|
"webpack-cli": "^3.3.0"
|
|
}
|
|
}
|