Merge pull request '增加webIDE功能' (#450) from tongChong/forgeplus-react:feature_IDE into gitlink_server
This commit is contained in:
commit
77de180ac9
2
.babelrc
2
.babelrc
|
@ -12,5 +12,5 @@
|
|||
"regenerator": true,
|
||||
"moduleName": "babel-runtime"
|
||||
}
|
||||
]]
|
||||
],["transform-decorators-legacy"]]
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -54,6 +54,7 @@
|
|||
"katex": "^0.11.1",
|
||||
"less": "^3.13.1",
|
||||
"less-loader": "^4.1.0",
|
||||
"localforage": "^1.10.0",
|
||||
"lodash": "^4.17.21",
|
||||
"loglevel": "^1.6.8",
|
||||
"marked": "^1.0.0",
|
||||
|
@ -200,6 +201,7 @@
|
|||
"babel-cli": "^6.26.0",
|
||||
"babel-core": "^6.26.0",
|
||||
"babel-plugin-import": "^1.13.0",
|
||||
"babel-plugin-transform-decorators-legacy": "^1.3.5",
|
||||
"babel-plugin-transform-runtime": "^6.23.0",
|
||||
"babel-polyfill": "^6.26.0",
|
||||
"babel-preset-es2015": "^6.24.1",
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<meta name="theme-color" content="#000000">
|
||||
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
|
||||
<link href="https://gw.alipayobjects.com/os/lib/alipay/alex/2.0.13/bundle/alex.all.global.min.css" rel="stylesheet"/>
|
||||
<link href="https://gw.alipayobjects.com/os/lib/alipay/alex/2.0.19/bundle/alex.all.global.min.css" rel="stylesheet"/>
|
||||
<link rel="stylesheet" type="text/css" href="%PUBLIC_URL%css/iconfont.css">
|
||||
<link rel="stylesheet" type="text/css" href="%PUBLIC_URL%css/edu-purge.css">
|
||||
<link rel="stylesheet" type="text/css" href="%PUBLIC_URL%css/editormd.min.css">
|
||||
|
@ -35,7 +35,7 @@
|
|||
<script src="%PUBLIC_URL%js/editormd/editormd.min.js"></script>
|
||||
<script src="%PUBLIC_URL%js/codemirror/merge/merge.js"></script>
|
||||
<script src="https://gw.alipayobjects.com/os/lib/moment/2.29.4/moment.js"></script>
|
||||
<script src="https://gw.alipayobjects.com/os/lib/alipay/alex/2.0.13/bundle/alex.all.global.min.js"></script>
|
||||
<script src="https://gw.alipayobjects.com/os/lib/alipay/alex/2.0.19/bundle/alex.all.global.js"></script>
|
||||
<%= htmlWebpackPlugin.tags.bodyTags %>
|
||||
</body>
|
||||
|
||||
|
|
|
@ -139,4 +139,5 @@ body {
|
|||
.newContainers {
|
||||
min-height: calc(100% - 60px) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
12
src/App.js
12
src/App.js
|
@ -119,7 +119,10 @@ const Glcc = Loadable({
|
|||
loader : () => import("./glcc"),
|
||||
loading: Loading,
|
||||
})
|
||||
|
||||
const WebIDE = Loadable({
|
||||
loader: () => import('./forge/Newfile/webIDE'),
|
||||
loading: Loading,
|
||||
});
|
||||
// const CreateMerge = Loadable({
|
||||
// loader: () => import('./forge/Merge/NewMerge'),
|
||||
// loading: Loading,
|
||||
|
@ -304,6 +307,13 @@ class App extends Component {
|
|||
}
|
||||
} />
|
||||
|
||||
{/* webIDE */}
|
||||
<Route path="/:owner/:projectsId/webIDE/tree/:branchName"
|
||||
render={
|
||||
(props) => (<WebIDE {...this.props} {...props} {...this.state} />)
|
||||
}
|
||||
></Route>
|
||||
|
||||
{/* 项目PR */}
|
||||
<Route path="/:owner/:projectsId/compare"
|
||||
render={
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
|
@ -94,6 +94,7 @@ function CoderDepot(props){
|
|||
},[details])
|
||||
|
||||
useEffect(()=>{
|
||||
console.log('treeValue:'+treeValue);
|
||||
if(treeValue){
|
||||
setTreeValuePath(decodeURIComponent(treeValue).split('/'));
|
||||
}else{
|
||||
|
@ -333,8 +334,6 @@ function CoderDepot(props){
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
let n = fileInfo && fileInfo.name;
|
||||
const mdFlag = n && n.substring(n.length-3,n.length) === ".md";
|
||||
|
||||
|
@ -457,7 +456,9 @@ function CoderDepot(props){
|
|||
<a>文件 <i className="iconfont icon-sanjiaoxing-down ml3 font-14 color-grey-6 mr-5"></i></a>
|
||||
</Dropdown>
|
||||
}
|
||||
|
||||
|
||||
<Link className='newBtn' to={`/${owner}/${projectsId}/webIDE/tree/${defaultBranch}`} target="_blank">Web IDE <div className='newBtnImg'></div></Link>
|
||||
|
||||
<Dropdown overlay={downloadMenu} placement="bottomRight" trigger={['click']}>
|
||||
<Button type={'primary'}>下载 <i className="iconfont icon-sanjiaoxing-down ml3 font-14 color-white mr-3"></i></Button>
|
||||
</Dropdown>
|
||||
|
|
|
@ -154,6 +154,10 @@ const Review = Loadable({
|
|||
loader: () => import('../Newfile/codeReview'),
|
||||
loading: Loading,
|
||||
});
|
||||
// const WebIDE = Loadable({
|
||||
// loader: () => import('../Newfile/webIDE'),
|
||||
// loading: Loading,
|
||||
// });
|
||||
/**
|
||||
* permission:Manager:管理员,Reporter:报告人员(只有读取权限),Developer:开发人员(除不能设置仓库信息外)
|
||||
*/
|
||||
|
@ -831,6 +835,12 @@ class Detail extends Component {
|
|||
(props) => (<Review {...this.props} {...props} {...this.state} {...common} />)
|
||||
}
|
||||
></Route>
|
||||
{/* webIDE */}
|
||||
{/* <Route path="/:owner/:projectsId/webIDE/tree/:branchName"
|
||||
render={
|
||||
(props) => (<WebIDE {...this.props} {...props} {...this.state} {...common} />)
|
||||
}
|
||||
></Route> */}
|
||||
<Route path="/:owner/:projectsId/pulls/:mergeId"
|
||||
render={
|
||||
(props) => (<MessageCount {...this.props} {...props} {...this.state} {...common} />)
|
||||
|
|
|
@ -170,6 +170,8 @@
|
|||
background: #F3F4F6;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
.infoCount{
|
||||
display: inline-block;
|
||||
|
@ -518,4 +520,8 @@
|
|||
margin-left: 0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -468,7 +468,7 @@ class MessageCount extends Component {
|
|||
<Button
|
||||
type="blue"
|
||||
ghost
|
||||
className="ml20"
|
||||
className="ml20 newBtn"
|
||||
onClick={this.codeReview}
|
||||
>
|
||||
代码评审
|
||||
|
|
|
@ -11,7 +11,7 @@ import ideTheme from './extensions/alex-ext-public.ide-dark-theme.js';
|
|||
import CodeBlame from './extensions/alex-ext-public.editor-plugin-blame.js';
|
||||
import { getUrl, returnbar } from 'educoder';
|
||||
import changeThemePlugin from './changeTheme';
|
||||
import IDEPlugin, { ExtensionCommand } from './ide-plugin';
|
||||
import IDEPlugin, { ExtensionCommand } from './plugins/idePlugin';
|
||||
// import { FileOperationArea } from './components/file-operation-area';
|
||||
import { repoService } from './codeReview/mock/repo.service';
|
||||
|
||||
|
@ -96,7 +96,7 @@ function CloudIDE({ download_url, params: { owner, projectsId, branchName }, fil
|
|||
if (!e.target.checked) {
|
||||
plugin.current.commands.executeCommand(ExtensionCommand.toggleBlame);
|
||||
} else {
|
||||
const res = await repoService.getCodeBlame(projectsId, owner, { sha: branchName, filepath })
|
||||
const res = await repoService.getCodeBlame(projectsId, owner, { sha:decodeURIComponent(branchName), filepath })
|
||||
plugin.current.commands.executeCommand(ExtensionCommand.toggleBlame, res);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200" viewBox="0 0 200 200">
|
||||
<defs>
|
||||
<linearGradient id="linear-gradient" y1="0.5" x2="1" y2="0.5" gradientUnits="objectBoundingBox">
|
||||
<stop offset="0" stop-color="#6dffff"/>
|
||||
<stop offset="1" stop-color="#0080ff"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="组_1758" data-name="组 1758" transform="translate(9483 -10311)">
|
||||
<rect id="矩形_340" data-name="矩形 340" width="200" height="200" transform="translate(-9483 10311)" fill="#fff" opacity="0"/>
|
||||
<g id="图层_2" data-name="图层 2" transform="translate(-9472 10328)">
|
||||
<g id="图层_1" data-name="图层 1">
|
||||
<path id="路径_1227" data-name="路径 1227" d="M127.508,32.458,123.06,26.4l-3.9,1.958V77.007l3.239,1.7v-5.4l5.11,8.248,4.145.648V23.03l-4.145,1.6ZM35.847,82.2l9.284-4.62V27.708L35.847,23.03Zm63.463,6.29,8.305,4.951V9.241L99.31,14.192ZM87.378,0H75.863V105.291H93.509V94.841H87.378ZM49.954,21.821l4.577,1.684V93.344l8.348-4.318V27.132l4.477,1.655V19.3L49.954,9.226ZM5.448,78.634,25.6,68.457V49.3l-9.543-1.022v6.736h3.829V61.52l-6.621,3.008V43.873L25.541,46.06V38.216L5.39,31.58ZM154.18,54.855,168.919,31.58l-11.04,1.195-7.355,9.788V36.071L142.406,38V73.006l8.118,1.684V67.982l7.845,10.076,12.7.633Z" transform="translate(2.368)" fill-rule="evenodd" fill="url(#linear-gradient)"/>
|
||||
<path id="路径_1228" data-name="路径 1228" d="M0,110.683a27.2,27.2,0,0,0,2.634-4.577q1.051-2.375,1.727-4.4a33.61,33.61,0,0,0,.979-3.527c.2-.993.317-1.612.345-1.9V92.964h-3.5V88.876H17.445v4.088H9.37V96.75q0,.158-.432,2.245a34.545,34.545,0,0,1-1.439,5.11h5.556v-.72H16.74V122.86a4.822,4.822,0,0,1-1.209,3.325,3.915,3.915,0,0,1-3.008,1.339h-8.2V110.942l-.72,1.137c-.23.389-.489.763-.763,1.152Zm8.017,12.753h4.491c.36,0,.547-.187.547-.576V108.193H8.017Zm9.471-27.521q1.209-1.6,2.073-2.879c.576-.82,1.195-1.77,1.842-2.879a28.457,28.457,0,0,0,1.727-3.267L26.4,88.7a17.271,17.271,0,0,1-.849,1.713H39.727V93.67l-3.354,4.995h2v-.777h3.685v24.758a4.808,4.808,0,0,1-1.209,3.325,3.872,3.872,0,0,1-2.98,1.353h-2.1v-4.045h2.058c.374,0,.547-.2.547-.619v-3.368h-6.29v7.2H28.4v-7.2H22.3q-.23,1.67-.518,3.109c-.187.964-.36,1.814-.533,2.562s-.317,1.353-.446,1.814a7.658,7.658,0,0,0-.187.748l-1.77-.619-1.727-.619c.4-1.6.734-3.008.979-4.318s.475-2.648.677-4.189a35.307,35.307,0,0,0,.3-4.592V98.664H31.811l2.735-4.088H23.131q-1.123,1.756-1.986,2.879l-.993,1.108ZM28.4,115.188v-4.707H22.757v4.707Zm-5.642-12.436v3.627H28.4v-3.627Zm15.617,0h-6.29v3.627h6.29Zm0,12.436v-4.707h-6.29v4.707Z" transform="translate(0 38.179)" fill="#333"/>
|
||||
<path id="路径_1229" data-name="路径 1229" d="M32.82,110.943H51.014c.518-.806.993-1.612,1.439-2.447a15.2,15.2,0,0,0,1.036-2.634V97.168h3.685V106.7a21.591,21.591,0,0,1-1.7,4.2H73.382v4.088H58.427l14.509,8.751L71.151,127.4,55.49,117.91l1.439-2.879H52.756a31.018,31.018,0,0,1-3.742,3.786,41.975,41.975,0,0,1-4.045,3.051,43.833,43.833,0,0,1-3.944,2.361c-1.267.677-2.418,1.223-3.426,1.655s-1.842.777-2.49,1.008l-1.123.417-.518-1.972-.5-1.914s.5-.173,1.439-.547,2.116-.878,3.527-1.569,2.965-1.555,4.635-2.591a32.934,32.934,0,0,0,4.908-3.685H32.82Zm.1-19.849H51.287l-1.166-2.433,3.267-1.871,2,4.318H69.251v-.734h3.685V99.86H69.251V95.182H36.606v4.865H32.921Zm4.75,10.824,9.889,4.462-1.353,3.742-9.889-4.462Zm12.681,3.325-9.831-4.62,1.439-3.786,9.831,4.649Z" transform="translate(14.421 38.135)" fill="#333"/>
|
||||
<path id="路径_1230" data-name="路径 1230" d="M105.835,108.223h-9.37v18.453h-3.7V108.223H77.307a38.49,38.49,0,0,1-2.03,7.125,62.419,62.419,0,0,1-2.634,5.758,44.3,44.3,0,0,1-2.332,3.944c-.691.979-1.065,1.526-1.123,1.626l-2.879-2.591.907-1.3a34.806,34.806,0,0,0,2.015-3.4c.763-1.439,1.54-3.109,2.346-5.023a34.877,34.877,0,0,0,1.958-6.146H64.05v-4.088H74.126V92.117H66.857V88h36.229v4.1H96.465v12.019h9.37Zm-13.07-4.088V92.117H77.955v12.019Z" transform="translate(28.143 38.666)" fill="#333"/>
|
||||
<path id="路径_1231" data-name="路径 1231" d="M98.847,127.257l-3.267-1.77,6.348-14.394,3.311,1.814Zm3.958-29.8L96,90.667l2.433-3.008,6.852,6.794Zm0,10.882L96,101.549l2.433-3.008,6.852,6.794Zm.187,16.985c.317-.59.72-1.439,1.238-2.533a29.74,29.74,0,0,0,1.439-3.6,34.757,34.757,0,0,0,1.281-3.987,14.767,14.767,0,0,0,.547-3.714V87.4h28.788v4.1H111.255V111.5a17.965,17.965,0,0,1-.36,3.4,30.226,30.226,0,0,1-.921,3.527c-.374,1.152-.777,2.26-1.209,3.311s-.82,2-1.195,2.879-.691,1.439-.964,2l-.446.849Zm7.931-.1a34.386,34.386,0,0,0,2.116-4.059c.576-1.339,1.051-2.519,1.439-3.555a30.893,30.893,0,0,0,1.022-3.527l3.6.993s-.1.461-.288,1.18-.475,1.67-.878,2.879-.921,2.461-1.569,3.93a35.5,35.5,0,0,1-2.346,4.491Zm13.617-31.451-1.022,1.871h7.787v-.936h3.742v13.7a4.836,4.836,0,0,1-1.209,3.3,3.858,3.858,0,0,1-2.994,1.439H126.1v9.586a4.736,4.736,0,0,1-1.223,3.282,3.8,3.8,0,0,1-2.98,1.439h-2.749v-4.1h2.706a.576.576,0,0,0,.4-.144.6.6,0,0,0,.158-.417v-9.586h-8.953V95.648h5.758L121.46,91.6Zm6.765,6H117.128v2.792h14.178Zm-.518,9.27q.518,0,.518-.561v-1.814H117.128v2.375ZM132,113.827l4.433,11.8-3.4,1.5-4.318-11.8Z" transform="translate(41.997 38.403)" fill="#333"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 5.0 KiB |
|
@ -1,20 +1,14 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200" viewBox="0 0 200 200">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="156" height="90" viewBox="0 0 156 90">
|
||||
<defs>
|
||||
<linearGradient id="linear-gradient" y1="0.5" x2="1" y2="0.5" gradientUnits="objectBoundingBox">
|
||||
<stop offset="0" stop-color="#6dffff"/>
|
||||
<stop offset="1" stop-color="#0080ff"/>
|
||||
<linearGradient id="linear-gradient" x1="0.014" y1="0.5" x2="0.879" y2="0.5" gradientUnits="objectBoundingBox">
|
||||
<stop offset="0" stop-color="#6bfdff"/>
|
||||
<stop offset="1" stop-color="#0f91ff"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g id="组_1758" data-name="组 1758" transform="translate(9483 -10311)">
|
||||
<rect id="矩形_340" data-name="矩形 340" width="200" height="200" transform="translate(-9483 10311)" fill="#fff" opacity="0"/>
|
||||
<g id="图层_2" data-name="图层 2" transform="translate(-9472 10328)">
|
||||
<g id="图层_1" data-name="图层 1">
|
||||
<path id="路径_1227" data-name="路径 1227" d="M127.508,32.458,123.06,26.4l-3.9,1.958V77.007l3.239,1.7v-5.4l5.11,8.248,4.145.648V23.03l-4.145,1.6ZM35.847,82.2l9.284-4.62V27.708L35.847,23.03Zm63.463,6.29,8.305,4.951V9.241L99.31,14.192ZM87.378,0H75.863V105.291H93.509V94.841H87.378ZM49.954,21.821l4.577,1.684V93.344l8.348-4.318V27.132l4.477,1.655V19.3L49.954,9.226ZM5.448,78.634,25.6,68.457V49.3l-9.543-1.022v6.736h3.829V61.52l-6.621,3.008V43.873L25.541,46.06V38.216L5.39,31.58ZM154.18,54.855,168.919,31.58l-11.04,1.195-7.355,9.788V36.071L142.406,38V73.006l8.118,1.684V67.982l7.845,10.076,12.7.633Z" transform="translate(2.368)" fill-rule="evenodd" fill="url(#linear-gradient)"/>
|
||||
<path id="路径_1228" data-name="路径 1228" d="M0,110.683a27.2,27.2,0,0,0,2.634-4.577q1.051-2.375,1.727-4.4a33.61,33.61,0,0,0,.979-3.527c.2-.993.317-1.612.345-1.9V92.964h-3.5V88.876H17.445v4.088H9.37V96.75q0,.158-.432,2.245a34.545,34.545,0,0,1-1.439,5.11h5.556v-.72H16.74V122.86a4.822,4.822,0,0,1-1.209,3.325,3.915,3.915,0,0,1-3.008,1.339h-8.2V110.942l-.72,1.137c-.23.389-.489.763-.763,1.152Zm8.017,12.753h4.491c.36,0,.547-.187.547-.576V108.193H8.017Zm9.471-27.521q1.209-1.6,2.073-2.879c.576-.82,1.195-1.77,1.842-2.879a28.457,28.457,0,0,0,1.727-3.267L26.4,88.7a17.271,17.271,0,0,1-.849,1.713H39.727V93.67l-3.354,4.995h2v-.777h3.685v24.758a4.808,4.808,0,0,1-1.209,3.325,3.872,3.872,0,0,1-2.98,1.353h-2.1v-4.045h2.058c.374,0,.547-.2.547-.619v-3.368h-6.29v7.2H28.4v-7.2H22.3q-.23,1.67-.518,3.109c-.187.964-.36,1.814-.533,2.562s-.317,1.353-.446,1.814a7.658,7.658,0,0,0-.187.748l-1.77-.619-1.727-.619c.4-1.6.734-3.008.979-4.318s.475-2.648.677-4.189a35.307,35.307,0,0,0,.3-4.592V98.664H31.811l2.735-4.088H23.131q-1.123,1.756-1.986,2.879l-.993,1.108ZM28.4,115.188v-4.707H22.757v4.707Zm-5.642-12.436v3.627H28.4v-3.627Zm15.617,0h-6.29v3.627h6.29Zm0,12.436v-4.707h-6.29v4.707Z" transform="translate(0 38.179)" fill="#333"/>
|
||||
<path id="路径_1229" data-name="路径 1229" d="M32.82,110.943H51.014c.518-.806.993-1.612,1.439-2.447a15.2,15.2,0,0,0,1.036-2.634V97.168h3.685V106.7a21.591,21.591,0,0,1-1.7,4.2H73.382v4.088H58.427l14.509,8.751L71.151,127.4,55.49,117.91l1.439-2.879H52.756a31.018,31.018,0,0,1-3.742,3.786,41.975,41.975,0,0,1-4.045,3.051,43.833,43.833,0,0,1-3.944,2.361c-1.267.677-2.418,1.223-3.426,1.655s-1.842.777-2.49,1.008l-1.123.417-.518-1.972-.5-1.914s.5-.173,1.439-.547,2.116-.878,3.527-1.569,2.965-1.555,4.635-2.591a32.934,32.934,0,0,0,4.908-3.685H32.82Zm.1-19.849H51.287l-1.166-2.433,3.267-1.871,2,4.318H69.251v-.734h3.685V99.86H69.251V95.182H36.606v4.865H32.921Zm4.75,10.824,9.889,4.462-1.353,3.742-9.889-4.462Zm12.681,3.325-9.831-4.62,1.439-3.786,9.831,4.649Z" transform="translate(14.421 38.135)" fill="#333"/>
|
||||
<path id="路径_1230" data-name="路径 1230" d="M105.835,108.223h-9.37v18.453h-3.7V108.223H77.307a38.49,38.49,0,0,1-2.03,7.125,62.419,62.419,0,0,1-2.634,5.758,44.3,44.3,0,0,1-2.332,3.944c-.691.979-1.065,1.526-1.123,1.626l-2.879-2.591.907-1.3a34.806,34.806,0,0,0,2.015-3.4c.763-1.439,1.54-3.109,2.346-5.023a34.877,34.877,0,0,0,1.958-6.146H64.05v-4.088H74.126V92.117H66.857V88h36.229v4.1H96.465v12.019h9.37Zm-13.07-4.088V92.117H77.955v12.019Z" transform="translate(28.143 38.666)" fill="#333"/>
|
||||
<path id="路径_1231" data-name="路径 1231" d="M98.847,127.257l-3.267-1.77,6.348-14.394,3.311,1.814Zm3.958-29.8L96,90.667l2.433-3.008,6.852,6.794Zm0,10.882L96,101.549l2.433-3.008,6.852,6.794Zm.187,16.985c.317-.59.72-1.439,1.238-2.533a29.74,29.74,0,0,0,1.439-3.6,34.757,34.757,0,0,0,1.281-3.987,14.767,14.767,0,0,0,.547-3.714V87.4h28.788v4.1H111.255V111.5a17.965,17.965,0,0,1-.36,3.4,30.226,30.226,0,0,1-.921,3.527c-.374,1.152-.777,2.26-1.209,3.311s-.82,2-1.195,2.879-.691,1.439-.964,2l-.446.849Zm7.931-.1a34.386,34.386,0,0,0,2.116-4.059c.576-1.339,1.051-2.519,1.439-3.555a30.893,30.893,0,0,0,1.022-3.527l3.6.993s-.1.461-.288,1.18-.475,1.67-.878,2.879-.921,2.461-1.569,3.93a35.5,35.5,0,0,1-2.346,4.491Zm13.617-31.451-1.022,1.871h7.787v-.936h3.742v13.7a4.836,4.836,0,0,1-1.209,3.3,3.858,3.858,0,0,1-2.994,1.439H126.1v9.586a4.736,4.736,0,0,1-1.223,3.282,3.8,3.8,0,0,1-2.98,1.439h-2.749v-4.1h2.706a.576.576,0,0,0,.4-.144.6.6,0,0,0,.158-.417v-9.586h-8.953V95.648h5.758L121.46,91.6Zm6.765,6H117.128v2.792h14.178Zm-.518,9.27q.518,0,.518-.561v-1.814H117.128v2.375ZM132,113.827l4.433,11.8-3.4,1.5-4.318-11.8Z" transform="translate(41.997 38.403)" fill="#333"/>
|
||||
</g>
|
||||
<g id="黑色" transform="translate(-3345 -18811)">
|
||||
<rect id="矩形_515" data-name="矩形 515" width="156" height="90" transform="translate(3345 18811)" opacity="0"/>
|
||||
<g id="组_2183" data-name="组 2183" transform="translate(-245 3)">
|
||||
<path id="路径_2846" data-name="路径 2846" d="M91.51,22.55l-3.08-4.21L85.72,19.7V53.5L88,54.68V50.93l3.55,5.73,2.88.45V16L91.5,17.15ZM27.84,57.11l6.41-3.21V19.25L27.84,16Zm44.08,4.37,5.77,3.44V6.42L71.92,9.86ZM63.63,0h-8V73.15H67.89V65.89H63.63Zm-26,15.16,3.18,1.17V64.85l5.8-3v-43L49.72,20V13.41l-12.09-7ZM6.72,54.63l14-7.07V34.25L14,33.54v4.68h2.7v4.52l-4.59,2.09V30.48L20.67,32V26.55l-14-4.61ZM110,38.11l10.28-16.17-7.66.83-5.12,6.8V25.06l-5.63,1.34V50.72l5.63,1.17V47.23l5.45,7,8.82.44Z" transform="translate(3606 18815)" fill-rule="evenodd" fill="url(#linear-gradient)"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 1.2 KiB |
|
@ -0,0 +1,41 @@
|
|||
module.exports = {
|
||||
"extension": {
|
||||
"publisher": "alex-ext-public",
|
||||
"name": "anycode-c-sharp",
|
||||
"version": "0.0.5"
|
||||
},
|
||||
"packageJSON": {
|
||||
"name": "anycode-c-sharp",
|
||||
"publisher": "ms-vscode",
|
||||
"version": "0.0.5",
|
||||
"repository": {
|
||||
"url": "https://github.com/microsoft/vscode-anycode"
|
||||
},
|
||||
"displayName": "anycode-c-sharp",
|
||||
"description": "C# for Anycode",
|
||||
"contributes": {
|
||||
"anycodeLanguages": {
|
||||
"grammarPath": "./tree-sitter-c_sharp.wasm",
|
||||
"languageId": "csharp",
|
||||
"extensions": [
|
||||
"cs"
|
||||
],
|
||||
"queryPaths": {
|
||||
"comments": "./queries/comments.scm",
|
||||
"identifiers": "./queries/identifiers.scm",
|
||||
"locals": "./queries/locals.scm",
|
||||
"outline": "./queries/outline.scm",
|
||||
"references": "./queries/references.scm"
|
||||
},
|
||||
"suppressedBy": [
|
||||
"ms-dotnettools.csharp"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"pkgNlsJSON": {},
|
||||
"nlsList": [],
|
||||
"extendConfig": {},
|
||||
"webAssets": [],
|
||||
"mode": "public"
|
||||
}
|
|
@ -0,0 +1,72 @@
|
|||
module.exports = {
|
||||
"extension": {
|
||||
"publisher": "alex-ext-public",
|
||||
"name": "anycode-cpp",
|
||||
"version": "0.0.5"
|
||||
},
|
||||
"packageJSON": {
|
||||
"name": "anycode-cpp",
|
||||
"publisher": "ms-vscode",
|
||||
"version": "0.0.5",
|
||||
"repository": {
|
||||
"url": "https://github.com/microsoft/vscode-anycode"
|
||||
},
|
||||
"displayName": "anycode-cpp",
|
||||
"description": "C/C++ for Anycode",
|
||||
"contributes": {
|
||||
"anycodeLanguages": [
|
||||
{
|
||||
"grammarPath": "./tree-sitter-c.wasm",
|
||||
"languageId": "c",
|
||||
"extensions": [
|
||||
"c",
|
||||
"i"
|
||||
],
|
||||
"queryPaths": {
|
||||
"comments": "./queries/c/comments.scm",
|
||||
"identifiers": "./queries/c/identifiers.scm",
|
||||
"outline": "./queries/c/outline.scm"
|
||||
},
|
||||
"suppressedBy": [
|
||||
"ms-vscode.cpptools"
|
||||
]
|
||||
},
|
||||
{
|
||||
"grammarPath": "./tree-sitter-cpp.wasm",
|
||||
"languageId": "cpp",
|
||||
"extensions": [
|
||||
"cpp",
|
||||
"cc",
|
||||
"cxx",
|
||||
"c++",
|
||||
"hpp",
|
||||
"hh",
|
||||
"hxx",
|
||||
"h++",
|
||||
"h",
|
||||
"ii",
|
||||
"ino",
|
||||
"inl",
|
||||
"ipp",
|
||||
"ixx",
|
||||
"hpp.in",
|
||||
"h.in"
|
||||
],
|
||||
"queryPaths": {
|
||||
"comments": "./queries/cpp/comments.scm",
|
||||
"identifiers": "./queries/cpp/identifiers.scm",
|
||||
"outline": "./queries/cpp/outline.scm"
|
||||
},
|
||||
"suppressedBy": [
|
||||
"ms-vscode.cpptools"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"pkgNlsJSON": {},
|
||||
"nlsList": [],
|
||||
"extendConfig": {},
|
||||
"webAssets": [],
|
||||
"mode": "public"
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
module.exports = {
|
||||
"extension": {
|
||||
"publisher": "alex-ext-public",
|
||||
"name": "anycode-go",
|
||||
"version": "0.0.5"
|
||||
},
|
||||
"packageJSON": {
|
||||
"name": "anycode-go",
|
||||
"publisher": "ms-vscode",
|
||||
"version": "0.0.5",
|
||||
"repository": {
|
||||
"url": "https://github.com/microsoft/vscode-anycode"
|
||||
},
|
||||
"displayName": "anycode-go",
|
||||
"description": "Go for Anycode",
|
||||
"contributes": {
|
||||
"anycodeLanguages": {
|
||||
"grammarPath": "./tree-sitter-go.wasm",
|
||||
"languageId": "go",
|
||||
"extensions": [
|
||||
"go"
|
||||
],
|
||||
"queryPaths": {
|
||||
"comments": "./queries/comments.scm",
|
||||
"identifiers": "./queries/identifiers.scm",
|
||||
"locals": "./queries/locals.scm",
|
||||
"outline": "./queries/outline.scm",
|
||||
"references": "./queries/references.scm"
|
||||
},
|
||||
"suppressedBy": [
|
||||
"golang.Go"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"pkgNlsJSON": {},
|
||||
"nlsList": [],
|
||||
"extendConfig": {},
|
||||
"webAssets": [],
|
||||
"mode": "public"
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
module.exports = {
|
||||
"extension": {
|
||||
"publisher": "alex-ext-public",
|
||||
"name": "anycode-java",
|
||||
"version": "0.0.5"
|
||||
},
|
||||
"packageJSON": {
|
||||
"name": "anycode-java",
|
||||
"publisher": "ms-vscode",
|
||||
"version": "0.0.5",
|
||||
"repository": {
|
||||
"url": "https://github.com/microsoft/vscode-anycode"
|
||||
},
|
||||
"displayName": "anycode-java",
|
||||
"description": "Java for Anycode",
|
||||
"contributes": {
|
||||
"anycodeLanguages": {
|
||||
"grammarPath": "./tree-sitter-java.wasm",
|
||||
"languageId": "java",
|
||||
"extensions": [
|
||||
"java"
|
||||
],
|
||||
"queryPaths": {
|
||||
"comments": "./queries/comments.scm",
|
||||
"folding": "./queries/folding.scm",
|
||||
"identifiers": "./queries/identifiers.scm",
|
||||
"locals": "./queries/locals.scm",
|
||||
"outline": "./queries/outline.scm",
|
||||
"references": "./queries/references.scm"
|
||||
},
|
||||
"suppressedBy": [
|
||||
"redhat.java"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"pkgNlsJSON": {},
|
||||
"nlsList": [],
|
||||
"extendConfig": {},
|
||||
"webAssets": [],
|
||||
"mode": "public"
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
module.exports = {
|
||||
"extension": {
|
||||
"publisher": "alex-ext-public",
|
||||
"name": "anycode-php",
|
||||
"version": "0.0.6"
|
||||
},
|
||||
"packageJSON": {
|
||||
"name": "anycode-php",
|
||||
"publisher": "ms-vscode",
|
||||
"version": "0.0.6",
|
||||
"repository": {
|
||||
"url": "https://github.com/microsoft/vscode-anycode"
|
||||
},
|
||||
"displayName": "anycode-php",
|
||||
"description": "PHP for Anycode",
|
||||
"contributes": {
|
||||
"anycodeLanguages": {
|
||||
"grammarPath": "./tree-sitter-php.wasm",
|
||||
"languageId": "php",
|
||||
"extensions": [
|
||||
"php",
|
||||
"php4",
|
||||
"php5",
|
||||
"phtml",
|
||||
"ctp"
|
||||
],
|
||||
"queryPaths": {
|
||||
"comments": "./queries/comments.scm",
|
||||
"identifiers": "./queries/identifiers.scm",
|
||||
"locals": "./queries/locals.scm",
|
||||
"outline": "./queries/outline.scm",
|
||||
"references": "./queries/references.scm"
|
||||
},
|
||||
"suppressedBy": [
|
||||
"bmewburn.vscode-intelephense-client"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"pkgNlsJSON": {},
|
||||
"nlsList": [],
|
||||
"extendConfig": {},
|
||||
"webAssets": [],
|
||||
"mode": "public"
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
module.exports = {
|
||||
"extension": {
|
||||
"publisher": "alex-ext-public",
|
||||
"name": "anycode-python",
|
||||
"version": "0.0.5"
|
||||
},
|
||||
"packageJSON": {
|
||||
"name": "anycode-python",
|
||||
"publisher": "ms-vscode",
|
||||
"version": "0.0.5",
|
||||
"repository": {
|
||||
"url": "https://github.com/microsoft/vscode-anycode"
|
||||
},
|
||||
"displayName": "anycode-python",
|
||||
"description": "Python for Anycode",
|
||||
"contributes": {
|
||||
"anycodeLanguages": {
|
||||
"grammarPath": "./tree-sitter-python.wasm",
|
||||
"languageId": "python",
|
||||
"extensions": [
|
||||
"py",
|
||||
"rpy",
|
||||
"pyw",
|
||||
"cpy",
|
||||
"gyp",
|
||||
"gypi",
|
||||
"pyi",
|
||||
"ipy"
|
||||
],
|
||||
"queryPaths": {
|
||||
"comments": "./queries/comments.scm",
|
||||
"identifiers": "./queries/identifiers.scm",
|
||||
"locals": "./queries/locals.scm",
|
||||
"outline": "./queries/outline.scm",
|
||||
"references": "./queries/references.scm"
|
||||
},
|
||||
"suppressedBy": [
|
||||
"ms-python.python"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"pkgNlsJSON": {},
|
||||
"nlsList": [],
|
||||
"extendConfig": {},
|
||||
"webAssets": [],
|
||||
"mode": "public"
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
module.exports = {
|
||||
"extension": {
|
||||
"publisher": "alex-ext-public",
|
||||
"name": "anycode-rust",
|
||||
"version": "0.0.5"
|
||||
},
|
||||
"packageJSON": {
|
||||
"name": "anycode-rust",
|
||||
"publisher": "ms-vscode",
|
||||
"version": "0.0.5",
|
||||
"repository": {
|
||||
"url": "https://github.com/microsoft/vscode-anycode"
|
||||
},
|
||||
"displayName": "anycode-rust",
|
||||
"description": "Rust for Anycode",
|
||||
"contributes": {
|
||||
"anycodeLanguages": {
|
||||
"grammarPath": "./tree-sitter-rust.wasm",
|
||||
"languageId": "rust",
|
||||
"extensions": [
|
||||
"rs"
|
||||
],
|
||||
"queryPaths": {
|
||||
"comments": "./queries/comments.scm",
|
||||
"folding": "./queries/folding.scm",
|
||||
"identifiers": "./queries/identifiers.scm",
|
||||
"locals": "./queries/locals.scm",
|
||||
"outline": "./queries/outline.scm",
|
||||
"references": "./queries/references.scm"
|
||||
},
|
||||
"suppressedBy": [
|
||||
"rust-lang.rust"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"pkgNlsJSON": {},
|
||||
"nlsList": [],
|
||||
"extendConfig": {},
|
||||
"webAssets": [],
|
||||
"mode": "public"
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
module.exports = {
|
||||
"extension": {
|
||||
"publisher": "alex-ext-public",
|
||||
"name": "anycode-typescript",
|
||||
"version": "0.0.5"
|
||||
},
|
||||
"packageJSON": {
|
||||
"name": "anycode-typescript",
|
||||
"publisher": "ms-vscode",
|
||||
"version": "0.0.5",
|
||||
"repository": {
|
||||
"url": "https://github.com/microsoft/vscode-anycode"
|
||||
},
|
||||
"displayName": "anycode-typescript",
|
||||
"description": "TypeScript for Anycode",
|
||||
"contributes": {
|
||||
"anycodeLanguages": {
|
||||
"grammarPath": "./tree-sitter-typescript.wasm",
|
||||
"languageId": "typescript",
|
||||
"extensions": [
|
||||
"ts"
|
||||
],
|
||||
"queryPaths": {
|
||||
"comments": "./queries/comments.scm",
|
||||
"identifiers": "./queries/identifiers.scm",
|
||||
"locals": "./queries/locals.scm",
|
||||
"outline": "./queries/outline.scm",
|
||||
"references": "./queries/references.scm"
|
||||
},
|
||||
"suppressedBy": [
|
||||
"vscode.typescript-language-features"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"pkgNlsJSON": {},
|
||||
"nlsList": [],
|
||||
"extendConfig": {},
|
||||
"webAssets": [],
|
||||
"mode": "public"
|
||||
}
|
|
@ -0,0 +1,90 @@
|
|||
module.exports = {
|
||||
"extension": {
|
||||
"publisher": "alex-ext-public",
|
||||
"name": "anycode",
|
||||
"version": "0.0.67"
|
||||
},
|
||||
"packageJSON": {
|
||||
"name": "anycode",
|
||||
"publisher": "ms-vscode",
|
||||
"version": "0.0.67",
|
||||
"repository": {
|
||||
"url": "https://github.com/microsoft/vscode-anycode"
|
||||
},
|
||||
"displayName": "anycode",
|
||||
"description": "",
|
||||
"activationEvents": [
|
||||
"onStartupFinished",
|
||||
"onCommand:workbench.action.showAllSymbols"
|
||||
],
|
||||
"contributes": {
|
||||
"configuration": {
|
||||
"title": "Anycode",
|
||||
"properties": {
|
||||
"anycode.symbolIndexSize": {
|
||||
"type": "number",
|
||||
"default": 500,
|
||||
"minimum": 0,
|
||||
"markdownDescription": "Size of the index that is used for features like symbol search and go to definition."
|
||||
},
|
||||
"anycode.language.features": {
|
||||
"markdownDescription": "Control the language features that anycode offers. This can be configured for each supported language: [Learn How to Do That](https://code.visualstudio.com/docs/getstarted/settings#_languagespecific-editor-settings)",
|
||||
"type": "object",
|
||||
"scope": "language-overridable",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"definitions": {
|
||||
"type": "boolean",
|
||||
"description": "Go to Definition based on identifiers and local variables"
|
||||
},
|
||||
"references": {
|
||||
"type": "boolean",
|
||||
"description": "Find References based on identifiers and local variables"
|
||||
},
|
||||
"workspaceSymbols": {
|
||||
"type": "boolean",
|
||||
"description": "Add symbols to workspace symbol search"
|
||||
},
|
||||
"highlights": {
|
||||
"type": "boolean",
|
||||
"description": "Highlight Occurrences of identifiers and local variables"
|
||||
},
|
||||
"outline": {
|
||||
"type": "boolean",
|
||||
"description": "Populate Outline, Quick-outline, and Breadcrumbs"
|
||||
},
|
||||
"completions": {
|
||||
"type": "boolean",
|
||||
"description": "Completions based on identifiers and symbol names"
|
||||
},
|
||||
"folding": {
|
||||
"type": "boolean",
|
||||
"description": "Fold sections of codes to a single line"
|
||||
},
|
||||
"diagnostics": {
|
||||
"type": "boolean",
|
||||
"description": "(experimental) Parse errors show as problems"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"completions": true,
|
||||
"definitions": true,
|
||||
"references": true,
|
||||
"highlights": true,
|
||||
"outline": true,
|
||||
"workspaceSymbols": true,
|
||||
"folding": false,
|
||||
"diagnostics": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"browser": "./dist/anycode.extension.browser.js"
|
||||
},
|
||||
"pkgNlsJSON": {},
|
||||
"nlsList": [],
|
||||
"extendConfig": {},
|
||||
"webAssets": [],
|
||||
"mode": "public"
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
module.exports = {
|
||||
"extension": {
|
||||
"publisher": "alex-ext-public",
|
||||
"name": "code-runner-for-web",
|
||||
"version": "0.1.5-patch.1"
|
||||
},
|
||||
"packageJSON": {
|
||||
"name": "code-runner-for-web",
|
||||
"publisher": "formulahendry",
|
||||
"version": "0.1.5-patch.1",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/formulahendry/vscode-code-runner-for-web.git"
|
||||
},
|
||||
"displayName": "Code Runner for Web",
|
||||
"description": "Run Code (Python) in browser",
|
||||
"icon": "images/logo.png",
|
||||
"activationEvents": [
|
||||
"onCommand:code-runner-for-web.run"
|
||||
],
|
||||
"contributes": {
|
||||
"commands": [
|
||||
{
|
||||
"command": "code-runner-for-web.run",
|
||||
"title": "Run Code in Web",
|
||||
"icon": "$(play)"
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
"editor/context": [
|
||||
{
|
||||
"when": "resourceLangId == python && !inOutput",
|
||||
"command": "code-runner-for-web.run",
|
||||
"group": "navigation"
|
||||
}
|
||||
],
|
||||
"editor/title/run": [
|
||||
{
|
||||
"when": "resourceLangId == python",
|
||||
"command": "code-runner-for-web.run",
|
||||
"group": "navigation"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"browser": "./dist/web/extension.js"
|
||||
},
|
||||
"pkgNlsJSON": {},
|
||||
"nlsList": [],
|
||||
"extendConfig": {},
|
||||
"webAssets": [
|
||||
"package.json"
|
||||
],
|
||||
"mode": "public"
|
||||
}
|
|
@ -0,0 +1,417 @@
|
|||
module.exports = {
|
||||
"extension": {
|
||||
"publisher": "alex-ext-public",
|
||||
"name": "codeswing",
|
||||
"version": "0.0.21"
|
||||
},
|
||||
"packageJSON": {
|
||||
"name": "codeswing",
|
||||
"publisher": "codespaces-contrib",
|
||||
"version": "0.0.21",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/lostintangent/codeswing"
|
||||
},
|
||||
"displayName": "CodeSwing",
|
||||
"description": "Interactive coding playground for building web applications (aka swings).",
|
||||
"icon": "images/icon.png",
|
||||
"activationEvents": [
|
||||
"onCommand:codeswing.newSwing",
|
||||
"onCommand:codeswing.newSwingDirectory",
|
||||
"onCommand:codeswing.newSwingFromLastTemplate",
|
||||
"onCommand:codeswing.openSwing",
|
||||
"onCommand:codeswing.openSwingInNewWindow",
|
||||
"workspaceContains:codeswing.json",
|
||||
"onStartupFinished"
|
||||
],
|
||||
"contributes": {
|
||||
"commands": [
|
||||
{
|
||||
"command": "codeswing.addLibrary",
|
||||
"title": "Add Library",
|
||||
"category": "CodeSwing",
|
||||
"icon": "$(library)"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.addSwingFile",
|
||||
"title": "Add File",
|
||||
"icon": "$(add)"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.changeLayout",
|
||||
"title": "Change Layout",
|
||||
"category": "CodeSwing",
|
||||
"icon": "$(editor-layout)"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.deleteSwingFile",
|
||||
"title": "Delete File"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.exportToCodePen",
|
||||
"title": "Export to CodePen",
|
||||
"category": "CodeSwing"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.initializeWorkspace",
|
||||
"title": "Initialize Workspace as Swing",
|
||||
"category": "CodeSwing"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.newSwingDirectory",
|
||||
"title": "New Swing in Directory...",
|
||||
"category": "CodeSwing"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.newSwing",
|
||||
"title": "New Swing...",
|
||||
"category": "CodeSwing"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.newSwingFromLastTemplate",
|
||||
"title": "New Swing from Last Template",
|
||||
"category": "CodeSwing"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.openConsole",
|
||||
"title": "Open Console",
|
||||
"category": "CodeSwing",
|
||||
"icon": "$(terminal)"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.openDeveloperTools",
|
||||
"title": "Open Dev Tools",
|
||||
"category": "CodeSwing",
|
||||
"icon": "$(tools)"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.openSwing",
|
||||
"title": "Open Swing...",
|
||||
"category": "CodeSwing"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.openSwingInNewWindow",
|
||||
"title": "Open Swing in New Window...",
|
||||
"category": "CodeSwing"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.openWorkspaceSwing",
|
||||
"title": "Re-Open Workspace Swing",
|
||||
"category": "CodeSwing"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.recordCodeTour",
|
||||
"title": "Record CodeTour"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.renameSwingFile",
|
||||
"title": "Rename File"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.run",
|
||||
"title": "Run Swing",
|
||||
"category": "CodeSwing",
|
||||
"icon": "$(play)"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.saveCurrentSwing",
|
||||
"title": "Save Current Swing As...",
|
||||
"category": "CodeSwing"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.uploadSwingFile",
|
||||
"title": "Upload File(s)",
|
||||
"icon": "$(cloud-upload)"
|
||||
}
|
||||
],
|
||||
"views": {
|
||||
"explorer": [
|
||||
{
|
||||
"id": "codeswing.activeSwing",
|
||||
"name": "CodeSwing",
|
||||
"when": "codeswing:inSwing && !codeswing:inSwingWorkspace"
|
||||
}
|
||||
]
|
||||
},
|
||||
"menus": {
|
||||
"commandPalette": [
|
||||
{
|
||||
"command": "codeswing.addLibrary",
|
||||
"when": "codeswing:inSwing"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.changeLayout",
|
||||
"when": "codeswing:inSwing"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.exportToCodePen",
|
||||
"when": "codeswing:inSwing"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.initializeWorkspace",
|
||||
"when": "!codeswing:inSwingWorkspace && !codeswing:inSwing"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.openConsole",
|
||||
"when": "codeswing:inSwing"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.newSwingFromLastTemplate",
|
||||
"when": "codeswing:hasTemplateMRU"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.openDeveloperTools",
|
||||
"when": "codeswing:inSwing && !isWeb"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.openWorkspaceSwing",
|
||||
"when": "codeswing:inSwingWorkspace && !codeswing:inSwing"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.run",
|
||||
"when": "codeswing:inSwing"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.saveCurrentSwing",
|
||||
"when": "codeswing:inSwing"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.addSwingFile",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.deleteSwingFile",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.recordCodeTour",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.renameSwingFile",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.uploadSwingFile",
|
||||
"when": "false"
|
||||
}
|
||||
],
|
||||
"editor/title": [
|
||||
{
|
||||
"command": "codeswing.run",
|
||||
"when": "codeswing:inSwing",
|
||||
"group": "navigation@1"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.openConsole",
|
||||
"when": "codeswing:inSwing",
|
||||
"group": "navigation@2"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.changeLayout",
|
||||
"when": "codeswing:inSwing",
|
||||
"group": "navigation@3"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.addLibrary",
|
||||
"when": "codeswing:inSwing",
|
||||
"group": "navigation@4"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.openDeveloperTools",
|
||||
"when": "codeswing:inSwing && !isWeb",
|
||||
"group": "navigation@5"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.recordCodeTour",
|
||||
"when": "codeswing:inSwing && codeswing:codeTourEnabled",
|
||||
"group": "codetour@1"
|
||||
}
|
||||
],
|
||||
"view/title": [
|
||||
{
|
||||
"command": "codeswing.uploadSwingFile",
|
||||
"when": "view == codeswing.activeSwing",
|
||||
"group": "navigation@1"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.addSwingFile",
|
||||
"when": "view == codeswing.activeSwing",
|
||||
"group": "navigation@2"
|
||||
}
|
||||
],
|
||||
"view/item/context": [
|
||||
{
|
||||
"command": "codeswing.addSwingFile",
|
||||
"when": "viewItem == swing.directory",
|
||||
"group": "mutation@1"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.uploadSwingFile",
|
||||
"when": "viewItem == swing.directory",
|
||||
"group": "mutation@2"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.renameSwingFile",
|
||||
"when": "viewItem == swing.file",
|
||||
"group": "mutation@1"
|
||||
},
|
||||
{
|
||||
"command": "codeswing.deleteSwingFile",
|
||||
"when": "viewItem == swing.file",
|
||||
"group": "mutation@2"
|
||||
}
|
||||
]
|
||||
},
|
||||
"jsonValidation": [
|
||||
{
|
||||
"fileMatch": "codeswing.json",
|
||||
"url": "https://gist.githubusercontent.com/lostintangent/21727eab0d79c7b9fd0dde92df7b1f50/raw/schema.json"
|
||||
},
|
||||
{
|
||||
"fileMatch": "gallery.json",
|
||||
"url": "https://gist.githubusercontent.com/lostintangent/091c0eec1f6443b526566d1cd3a85294/raw/schema.json"
|
||||
}
|
||||
],
|
||||
"configuration": {
|
||||
"type": "object",
|
||||
"title": "CodeSwing",
|
||||
"properties": {
|
||||
"codeswing.autoRun": {
|
||||
"default": "onEdit",
|
||||
"enum": [
|
||||
"onEdit",
|
||||
"onSave",
|
||||
"never"
|
||||
],
|
||||
"description": "Specifies when to automatically run the code for a swing."
|
||||
},
|
||||
"codeswing.autoSave": {
|
||||
"default": false,
|
||||
"type": "boolean",
|
||||
"description": "Specifies whether to automatically save your swing files (every 30s)."
|
||||
},
|
||||
"codeswing.clearConsoleOnRun": {
|
||||
"default": true,
|
||||
"type": "boolean",
|
||||
"description": "Specifies whether to automatically clear the console when running a swing."
|
||||
},
|
||||
"codeswing.launchBehavior": {
|
||||
"default": "openSwing",
|
||||
"enum": [
|
||||
"newSwing",
|
||||
"none",
|
||||
"openSwing"
|
||||
],
|
||||
"description": "Specifies how CodeSwing should behave when you open a swing workspace."
|
||||
},
|
||||
"codeswing.layout": {
|
||||
"default": "splitLeft",
|
||||
"enum": [
|
||||
"grid",
|
||||
"preview",
|
||||
"splitBottom",
|
||||
"splitLeft",
|
||||
"splitLeftTabbed",
|
||||
"splitRight",
|
||||
"splitRightTabbed",
|
||||
"splitTop"
|
||||
],
|
||||
"description": "Specifies how to layout the editor windows when opening a swing."
|
||||
},
|
||||
"codeswing.readmeBehavior": {
|
||||
"default": "none",
|
||||
"enum": [
|
||||
"none",
|
||||
"previewFooter",
|
||||
"previewHeader"
|
||||
],
|
||||
"description": "Specifies how the swing's readme content should be displayed."
|
||||
},
|
||||
"codeswing.rootDirectory": {
|
||||
"default": null,
|
||||
"type": "string",
|
||||
"description": "Specifies the directory to create swings in within the open workspace."
|
||||
},
|
||||
"codeswing.showConsole": {
|
||||
"default": false,
|
||||
"type": "boolean",
|
||||
"description": "Specifies whether to automatically show the console when opening a swing."
|
||||
},
|
||||
"codeswing.templateGalleries": {
|
||||
"default": [
|
||||
"web:basic",
|
||||
"web:components",
|
||||
"web:languages"
|
||||
],
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"web:basic",
|
||||
"web:components",
|
||||
"web:languages"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
}
|
||||
]
|
||||
},
|
||||
"description": "Specifies one or more URLs that point of template galleries for creating swings."
|
||||
},
|
||||
"codeswing.themePreview": {
|
||||
"default": false,
|
||||
"type": "boolean",
|
||||
"description": "Specifies whether to apply Visual Studio Code theme to the preview window."
|
||||
}
|
||||
}
|
||||
},
|
||||
"languages": [
|
||||
{
|
||||
"id": "typescriptreact",
|
||||
"filenames": [
|
||||
"script.babel"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "yaml",
|
||||
"filenames": [
|
||||
".block"
|
||||
]
|
||||
}
|
||||
],
|
||||
"keybindings": [
|
||||
{
|
||||
"command": "codeswing.run",
|
||||
"when": "codeswing:inSwing",
|
||||
"key": "cmd+shift+b",
|
||||
"win": "ctrl+shift+b"
|
||||
}
|
||||
],
|
||||
"codeswing.templateGalleries": [
|
||||
{
|
||||
"id": "web:basic",
|
||||
"url": "https://cdn.jsdelivr.net/gh/codespaces-contrib/codeswing@HEAD/templates/basic.json"
|
||||
},
|
||||
{
|
||||
"id": "web:languages",
|
||||
"url": "https://cdn.jsdelivr.net/gh/codespaces-contrib/codeswing@HEAD/templates/languages.json"
|
||||
},
|
||||
{
|
||||
"id": "web:components",
|
||||
"url": "https://cdn.jsdelivr.net/gh/codespaces-contrib/codeswing@main/templates/components.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
"browser": "./dist/extension-web.js"
|
||||
},
|
||||
"pkgNlsJSON": {},
|
||||
"nlsList": [],
|
||||
"extendConfig": {},
|
||||
"webAssets": [],
|
||||
"mode": "public"
|
||||
}
|
1441
src/forge/Newfile/extensions/alex-ext-public.css-language-features-worker.js
Executable file → Normal file
1441
src/forge/Newfile/extensions/alex-ext-public.css-language-features-worker.js
Executable file → Normal file
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,566 @@
|
|||
module.exports = {
|
||||
"extension": {
|
||||
"publisher": "alex-ext-public",
|
||||
"name": "emmet",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"packageJSON": {
|
||||
"name": "emmet",
|
||||
"publisher": "vscode",
|
||||
"version": "1.0.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/microsoft/vscode.git"
|
||||
},
|
||||
"displayName": "Emmet",
|
||||
"description": "%description%",
|
||||
"icon": "images/icon.png",
|
||||
"activationEvents": [
|
||||
"onCommand:emmet.expandAbbreviation",
|
||||
"onCommand:editor.emmet.action.wrapWithAbbreviation",
|
||||
"onCommand:editor.emmet.action.removeTag",
|
||||
"onCommand:editor.emmet.action.updateTag",
|
||||
"onCommand:editor.emmet.action.matchTag",
|
||||
"onCommand:editor.emmet.action.balanceIn",
|
||||
"onCommand:editor.emmet.action.balanceOut",
|
||||
"onCommand:editor.emmet.action.prevEditPoint",
|
||||
"onCommand:editor.emmet.action.nextEditPoint",
|
||||
"onCommand:editor.emmet.action.mergeLines",
|
||||
"onCommand:editor.emmet.action.selectPrevItem",
|
||||
"onCommand:editor.emmet.action.selectNextItem",
|
||||
"onCommand:editor.emmet.action.splitJoinTag",
|
||||
"onCommand:editor.emmet.action.toggleComment",
|
||||
"onCommand:editor.emmet.action.evaluateMathExpression",
|
||||
"onCommand:editor.emmet.action.updateImageSize",
|
||||
"onCommand:editor.emmet.action.incrementNumberByOneTenth",
|
||||
"onCommand:editor.emmet.action.incrementNumberByOne",
|
||||
"onCommand:editor.emmet.action.incrementNumberByTen",
|
||||
"onCommand:editor.emmet.action.decrementNumberByOneTenth",
|
||||
"onCommand:editor.emmet.action.decrementNumberByOne",
|
||||
"onCommand:editor.emmet.action.decrementNumberByTen",
|
||||
"onCommand:editor.emmet.action.reflectCSSValue",
|
||||
"onCommand:workbench.action.showEmmetCommands",
|
||||
"onStartupFinished"
|
||||
],
|
||||
"contributes": {
|
||||
"configuration": {
|
||||
"type": "object",
|
||||
"title": "Emmet",
|
||||
"properties": {
|
||||
"emmet.showExpandedAbbreviation": {
|
||||
"type": [
|
||||
"string"
|
||||
],
|
||||
"enum": [
|
||||
"never",
|
||||
"always",
|
||||
"inMarkupAndStylesheetFilesOnly"
|
||||
],
|
||||
"default": "always",
|
||||
"markdownDescription": "%emmetShowExpandedAbbreviation%"
|
||||
},
|
||||
"emmet.showAbbreviationSuggestions": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"markdownDescription": "%emmetShowAbbreviationSuggestions%"
|
||||
},
|
||||
"emmet.includeLanguages": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": {},
|
||||
"scope": "resource",
|
||||
"markdownDescription": "%emmetIncludeLanguages%"
|
||||
},
|
||||
"emmet.variables": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"lang": {
|
||||
"type": "string",
|
||||
"default": "en"
|
||||
},
|
||||
"charset": {
|
||||
"type": "string",
|
||||
"default": "UTF-8"
|
||||
}
|
||||
},
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": {},
|
||||
"scope": "resource",
|
||||
"markdownDescription": "%emmetVariables%"
|
||||
},
|
||||
"emmet.syntaxProfiles": {
|
||||
"type": "object",
|
||||
"default": {},
|
||||
"scope": "resource",
|
||||
"markdownDescription": "%emmetSyntaxProfiles%"
|
||||
},
|
||||
"emmet.excludeLanguages": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": [
|
||||
"markdown"
|
||||
],
|
||||
"scope": "resource",
|
||||
"markdownDescription": "%emmetExclude%"
|
||||
},
|
||||
"emmet.extensionsPath": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"markdownDescription": "%emmetExtensionsPathItem%"
|
||||
},
|
||||
"default": [],
|
||||
"scope": "machine-overridable",
|
||||
"markdownDescription": "%emmetExtensionsPath%"
|
||||
},
|
||||
"emmet.triggerExpansionOnTab": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%emmetTriggerExpansionOnTab%"
|
||||
},
|
||||
"emmet.preferences": {
|
||||
"type": "object",
|
||||
"default": {},
|
||||
"scope": "resource",
|
||||
"markdownDescription": "%emmetPreferences%",
|
||||
"properties": {
|
||||
"css.intUnit": {
|
||||
"type": "string",
|
||||
"default": "px",
|
||||
"markdownDescription": "%emmetPreferencesIntUnit%"
|
||||
},
|
||||
"css.floatUnit": {
|
||||
"type": "string",
|
||||
"default": "em",
|
||||
"markdownDescription": "%emmetPreferencesFloatUnit%"
|
||||
},
|
||||
"css.propertyEnd": {
|
||||
"type": "string",
|
||||
"default": ";",
|
||||
"markdownDescription": "%emmetPreferencesCssAfter%"
|
||||
},
|
||||
"sass.propertyEnd": {
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"markdownDescription": "%emmetPreferencesSassAfter%"
|
||||
},
|
||||
"stylus.propertyEnd": {
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"markdownDescription": "%emmetPreferencesStylusAfter%"
|
||||
},
|
||||
"css.valueSeparator": {
|
||||
"type": "string",
|
||||
"default": ": ",
|
||||
"markdownDescription": "%emmetPreferencesCssBetween%"
|
||||
},
|
||||
"sass.valueSeparator": {
|
||||
"type": "string",
|
||||
"default": ": ",
|
||||
"markdownDescription": "%emmetPreferencesSassBetween%"
|
||||
},
|
||||
"stylus.valueSeparator": {
|
||||
"type": "string",
|
||||
"default": " ",
|
||||
"markdownDescription": "%emmetPreferencesStylusBetween%"
|
||||
},
|
||||
"bem.elementSeparator": {
|
||||
"type": "string",
|
||||
"default": "__",
|
||||
"markdownDescription": "%emmetPreferencesBemElementSeparator%"
|
||||
},
|
||||
"bem.modifierSeparator": {
|
||||
"type": "string",
|
||||
"default": "_",
|
||||
"markdownDescription": "%emmetPreferencesBemModifierSeparator%"
|
||||
},
|
||||
"filter.commentBefore": {
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"markdownDescription": "%emmetPreferencesFilterCommentBefore%"
|
||||
},
|
||||
"filter.commentAfter": {
|
||||
"type": "string",
|
||||
"default": "\n<!-- /[#ID][.CLASS] -->",
|
||||
"markdownDescription": "%emmetPreferencesFilterCommentAfter%"
|
||||
},
|
||||
"filter.commentTrigger": {
|
||||
"type": "array",
|
||||
"default": [
|
||||
"id",
|
||||
"class"
|
||||
],
|
||||
"markdownDescription": "%emmetPreferencesFilterCommentTrigger%"
|
||||
},
|
||||
"format.noIndentTags": {
|
||||
"type": "array",
|
||||
"default": [
|
||||
"html"
|
||||
],
|
||||
"markdownDescription": "%emmetPreferencesFormatNoIndentTags%"
|
||||
},
|
||||
"format.forceIndentationForTags": {
|
||||
"type": "array",
|
||||
"default": [
|
||||
"body"
|
||||
],
|
||||
"markdownDescription": "%emmetPreferencesFormatForceIndentTags%"
|
||||
},
|
||||
"profile.allowCompactBoolean": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%emmetPreferencesAllowCompactBoolean%"
|
||||
},
|
||||
"css.webkitProperties": {
|
||||
"type": "string",
|
||||
"default": null,
|
||||
"markdownDescription": "%emmetPreferencesCssWebkitProperties%"
|
||||
},
|
||||
"css.mozProperties": {
|
||||
"type": "string",
|
||||
"default": null,
|
||||
"markdownDescription": "%emmetPreferencesCssMozProperties%"
|
||||
},
|
||||
"css.oProperties": {
|
||||
"type": "string",
|
||||
"default": null,
|
||||
"markdownDescription": "%emmetPreferencesCssOProperties%"
|
||||
},
|
||||
"css.msProperties": {
|
||||
"type": "string",
|
||||
"default": null,
|
||||
"markdownDescription": "%emmetPreferencesCssMsProperties%"
|
||||
},
|
||||
"css.fuzzySearchMinScore": {
|
||||
"type": "number",
|
||||
"default": 0.3,
|
||||
"markdownDescription": "%emmetPreferencesCssFuzzySearchMinScore%"
|
||||
},
|
||||
"output.inlineBreak": {
|
||||
"type": "number",
|
||||
"default": 0,
|
||||
"markdownDescription": "%emmetPreferencesOutputInlineBreak%"
|
||||
},
|
||||
"output.reverseAttributes": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%emmetPreferencesOutputReverseAttributes%"
|
||||
},
|
||||
"output.selfClosingStyle": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"html",
|
||||
"xhtml",
|
||||
"xml"
|
||||
],
|
||||
"default": "html",
|
||||
"markdownDescription": "%emmetPreferencesOutputSelfClosingStyle%"
|
||||
},
|
||||
"css.color.short": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"markdownDescription": "%emmetPreferencesCssColorShort%"
|
||||
}
|
||||
}
|
||||
},
|
||||
"emmet.showSuggestionsAsSnippets": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%emmetShowSuggestionsAsSnippets%"
|
||||
},
|
||||
"emmet.optimizeStylesheetParsing": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"markdownDescription": "%emmetOptimizeStylesheetParsing%"
|
||||
}
|
||||
}
|
||||
},
|
||||
"commands": [
|
||||
{
|
||||
"command": "editor.emmet.action.wrapWithAbbreviation",
|
||||
"title": "%command.wrapWithAbbreviation%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.removeTag",
|
||||
"title": "%command.removeTag%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.updateTag",
|
||||
"title": "%command.updateTag%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.matchTag",
|
||||
"title": "%command.matchTag%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.balanceIn",
|
||||
"title": "%command.balanceIn%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.balanceOut",
|
||||
"title": "%command.balanceOut%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.prevEditPoint",
|
||||
"title": "%command.prevEditPoint%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.nextEditPoint",
|
||||
"title": "%command.nextEditPoint%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.mergeLines",
|
||||
"title": "%command.mergeLines%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.selectPrevItem",
|
||||
"title": "%command.selectPrevItem%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.selectNextItem",
|
||||
"title": "%command.selectNextItem%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.splitJoinTag",
|
||||
"title": "%command.splitJoinTag%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.toggleComment",
|
||||
"title": "%command.toggleComment%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.evaluateMathExpression",
|
||||
"title": "%command.evaluateMathExpression%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.updateImageSize",
|
||||
"title": "%command.updateImageSize%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.incrementNumberByOneTenth",
|
||||
"title": "%command.incrementNumberByOneTenth%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.incrementNumberByOne",
|
||||
"title": "%command.incrementNumberByOne%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.incrementNumberByTen",
|
||||
"title": "%command.incrementNumberByTen%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.decrementNumberByOneTenth",
|
||||
"title": "%command.decrementNumberByOneTenth%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.decrementNumberByOne",
|
||||
"title": "%command.decrementNumberByOne%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.decrementNumberByTen",
|
||||
"title": "%command.decrementNumberByTen%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.reflectCSSValue",
|
||||
"title": "%command.reflectCSSValue%",
|
||||
"category": "Emmet"
|
||||
},
|
||||
{
|
||||
"command": "workbench.action.showEmmetCommands",
|
||||
"title": "%command.showEmmetCommands%",
|
||||
"category": ""
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
"commandPalette": [
|
||||
{
|
||||
"command": "editor.emmet.action.wrapWithAbbreviation",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.removeTag",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.updateTag",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.matchTag",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.balanceIn",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.balanceOut",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.prevEditPoint",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.nextEditPoint",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.mergeLines",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.selectPrevItem",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.selectNextItem",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.splitJoinTag",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.toggleComment",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.evaluateMathExpression",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.updateImageSize",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.incrementNumberByOneTenth",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.incrementNumberByOne",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.incrementNumberByTen",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.decrementNumberByOneTenth",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.decrementNumberByOne",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.decrementNumberByTen",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
},
|
||||
{
|
||||
"command": "editor.emmet.action.reflectCSSValue",
|
||||
"when": "!activeEditorIsReadonly"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"browser": "./dist/browser/emmetBrowserMain"
|
||||
},
|
||||
"defaultPkgNlsJSON": {
|
||||
"description": "Emmet support for VS Code",
|
||||
"command.wrapWithAbbreviation": "Wrap with Abbreviation",
|
||||
"command.removeTag": "Remove Tag",
|
||||
"command.updateTag": "Update Tag",
|
||||
"command.matchTag": "Go to Matching Pair",
|
||||
"command.balanceIn": "Balance (inward)",
|
||||
"command.balanceOut": "Balance (outward)",
|
||||
"command.prevEditPoint": "Go to Previous Edit Point",
|
||||
"command.nextEditPoint": "Go to Next Edit Point",
|
||||
"command.mergeLines": "Merge Lines",
|
||||
"command.selectPrevItem": "Select Previous Item",
|
||||
"command.selectNextItem": "Select Next Item",
|
||||
"command.splitJoinTag": "Split/Join Tag",
|
||||
"command.toggleComment": "Toggle Comment",
|
||||
"command.evaluateMathExpression": "Evaluate Math Expression",
|
||||
"command.updateImageSize": "Update Image Size",
|
||||
"command.reflectCSSValue": "Reflect CSS Value",
|
||||
"command.incrementNumberByOne": "Increment by 1",
|
||||
"command.decrementNumberByOne": "Decrement by 1",
|
||||
"command.incrementNumberByOneTenth": "Increment by 0.1",
|
||||
"command.decrementNumberByOneTenth": "Decrement by 0.1",
|
||||
"command.incrementNumberByTen": "Increment by 10",
|
||||
"command.decrementNumberByTen": "Decrement by 10",
|
||||
"command.showEmmetCommands": "Show Emmet Commands",
|
||||
"emmetSyntaxProfiles": "Define profile for specified syntax or use your own profile with specific rules.",
|
||||
"emmetExclude": "An array of languages where Emmet abbreviations should not be expanded.",
|
||||
"emmetExtensionsPath": "An array of paths, where each path can contain Emmet syntaxProfiles and/or snippet files.\nIn case of conflicts, the profiles/snippets of later paths will override those of earlier paths.\nSee https://code.visualstudio.com/docs/editor/emmet for more information and an example snippet file.",
|
||||
"emmetExtensionsPathItem": "A path containing Emmet syntaxProfiles and/or snippets.",
|
||||
"emmetShowExpandedAbbreviation": "Shows expanded Emmet abbreviations as suggestions.\nThe option `\"inMarkupAndStylesheetFilesOnly\"` applies to html, haml, jade, slim, xml, xsl, css, scss, sass, less and stylus.\nThe option `\"always\"` applies to all parts of the file regardless of markup/css.",
|
||||
"emmetShowAbbreviationSuggestions": "Shows possible Emmet abbreviations as suggestions. Not applicable in stylesheets or when emmet.showExpandedAbbreviation is set to `\"never\"`.",
|
||||
"emmetIncludeLanguages": "Enable Emmet abbreviations in languages that are not supported by default. Add a mapping here between the language and Emmet supported language.\n For example: `{\"vue-html\": \"html\", \"javascript\": \"javascriptreact\"}`",
|
||||
"emmetVariables": "Variables to be used in Emmet snippets.",
|
||||
"emmetTriggerExpansionOnTab": "When enabled, Emmet abbreviations are expanded when pressing TAB.",
|
||||
"emmetPreferences": "Preferences used to modify behavior of some actions and resolvers of Emmet.",
|
||||
"emmetPreferencesIntUnit": "Default unit for integer values.",
|
||||
"emmetPreferencesFloatUnit": "Default unit for float values.",
|
||||
"emmetPreferencesCssAfter": "Symbol to be placed at the end of CSS property when expanding CSS abbreviations.",
|
||||
"emmetPreferencesSassAfter": "Symbol to be placed at the end of CSS property when expanding CSS abbreviations in Sass files.",
|
||||
"emmetPreferencesStylusAfter": "Symbol to be placed at the end of CSS property when expanding CSS abbreviations in Stylus files.",
|
||||
"emmetPreferencesCssBetween": "Symbol to be placed at the between CSS property and value when expanding CSS abbreviations.",
|
||||
"emmetPreferencesSassBetween": "Symbol to be placed at the between CSS property and value when expanding CSS abbreviations in Sass files.",
|
||||
"emmetPreferencesStylusBetween": "Symbol to be placed at the between CSS property and value when expanding CSS abbreviations in Stylus files.",
|
||||
"emmetShowSuggestionsAsSnippets": "If `true`, then Emmet suggestions will show up as snippets allowing you to order them as per `#editor.snippetSuggestions#` setting.",
|
||||
"emmetPreferencesBemElementSeparator": "Element separator used for classes when using the BEM filter.",
|
||||
"emmetPreferencesBemModifierSeparator": "Modifier separator used for classes when using the BEM filter.",
|
||||
"emmetPreferencesFilterCommentBefore": "A definition of comment that should be placed before matched element when comment filter is applied.",
|
||||
"emmetPreferencesFilterCommentAfter": "A definition of comment that should be placed after matched element when comment filter is applied.",
|
||||
"emmetPreferencesFilterCommentTrigger": "A comma-separated list of attribute names that should exist in the abbreviation for the comment filter to be applied.",
|
||||
"emmetPreferencesFormatNoIndentTags": "An array of tag names that should never get inner indentation.",
|
||||
"emmetPreferencesFormatForceIndentTags": "An array of tag names that should always get inner indentation.",
|
||||
"emmetPreferencesAllowCompactBoolean": "If `true`, compact notation of boolean attributes are produced.",
|
||||
"emmetPreferencesCssWebkitProperties": "Comma separated CSS properties that get the 'webkit' vendor prefix when used in Emmet abbreviation that starts with `-`. Set to empty string to always avoid the 'webkit' prefix.",
|
||||
"emmetPreferencesCssMozProperties": "Comma separated CSS properties that get the 'moz' vendor prefix when used in Emmet abbreviation that starts with `-`. Set to empty string to always avoid the 'moz' prefix.",
|
||||
"emmetPreferencesCssOProperties": "Comma separated CSS properties that get the 'o' vendor prefix when used in Emmet abbreviation that starts with `-`. Set to empty string to always avoid the 'o' prefix.",
|
||||
"emmetPreferencesCssMsProperties": "Comma separated CSS properties that get the 'ms' vendor prefix when used in Emmet abbreviation that starts with `-`. Set to empty string to always avoid the 'ms' prefix.",
|
||||
"emmetPreferencesCssFuzzySearchMinScore": "The minimum score (from 0 to 1) that fuzzy-matched abbreviation should achieve. Lower values may produce many false-positive matches, higher values may reduce possible matches.",
|
||||
"emmetOptimizeStylesheetParsing": "When set to `false`, the whole file is parsed to determine if current position is valid for expanding Emmet abbreviations. When set to `true`, only the content around the current position in CSS/SCSS/Less files is parsed.",
|
||||
"emmetPreferencesOutputInlineBreak": "The number of sibling inline elements needed for line breaks to be placed between those elements. If `0`, inline elements are always expanded onto a single line.",
|
||||
"emmetPreferencesOutputReverseAttributes": "If `true`, reverses attribute merging directions when resolving snippets.",
|
||||
"emmetPreferencesOutputSelfClosingStyle": "Style of self-closing tags: html (`<br>`), xml (`<br/>`) or xhtml (`<br />`).",
|
||||
"emmetPreferencesCssColorShort": "If `true`, color values like `#f` will be expanded to `#fff` instead of `#ffffff`."
|
||||
},
|
||||
"pkgNlsJSON": {},
|
||||
"nlsList": [],
|
||||
"extendConfig": {},
|
||||
"webAssets": [
|
||||
"package.json"
|
||||
],
|
||||
"mode": "public"
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
495
src/forge/Newfile/extensions/alex-ext-public.html-language-features-worker.js
Executable file → Normal file
495
src/forge/Newfile/extensions/alex-ext-public.html-language-features-worker.js
Executable file → Normal file
|
@ -1,273 +1,284 @@
|
|||
module.exports = {
|
||||
extension: {
|
||||
publisher: 'alex-ext-public',
|
||||
name: 'html-language-features-worker',
|
||||
version: '1.53.0-patch.1',
|
||||
"extension": {
|
||||
"publisher": "alex-ext-public",
|
||||
"name": "html-language-features-worker",
|
||||
"version": "1.53.0-patch.1"
|
||||
},
|
||||
packageJSON: {
|
||||
name: 'html-language-features-worker',
|
||||
publisher: 'alex',
|
||||
version: '1.53.0-patch.1',
|
||||
displayName: '%displayName%',
|
||||
description: '%description%',
|
||||
icon: 'icons/html.png',
|
||||
activationEvents: ['onLanguage:html', 'onLanguage:handlebars'],
|
||||
kaitianContributes: {
|
||||
workerMain: 'client/dist/browser/htmlClientMain.js',
|
||||
"packageJSON": {
|
||||
"name": "html-language-features-worker",
|
||||
"publisher": "alex",
|
||||
"version": "1.53.0-patch.1",
|
||||
"displayName": "%displayName%",
|
||||
"description": "%description%",
|
||||
"icon": "icons/html.png",
|
||||
"activationEvents": [
|
||||
"onLanguage:html",
|
||||
"onLanguage:handlebars"
|
||||
],
|
||||
"kaitianContributes": {
|
||||
"workerMain": "client/dist/browser/htmlClientMain.js"
|
||||
},
|
||||
contributes: {
|
||||
configuration: {
|
||||
id: 'html',
|
||||
order: 20,
|
||||
type: 'object',
|
||||
title: 'HTML',
|
||||
properties: {
|
||||
'html.customData': {
|
||||
type: 'array',
|
||||
markdownDescription: '%html.customData.desc%',
|
||||
default: [],
|
||||
items: {
|
||||
type: 'string',
|
||||
"contributes": {
|
||||
"configuration": {
|
||||
"id": "html",
|
||||
"order": 20,
|
||||
"type": "object",
|
||||
"title": "HTML",
|
||||
"properties": {
|
||||
"html.customData": {
|
||||
"type": "array",
|
||||
"markdownDescription": "%html.customData.desc%",
|
||||
"default": [],
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
scope: 'resource',
|
||||
"scope": "resource"
|
||||
},
|
||||
'html.format.enable': {
|
||||
type: 'boolean',
|
||||
scope: 'window',
|
||||
default: true,
|
||||
description: '%html.format.enable.desc%',
|
||||
"html.format.enable": {
|
||||
"type": "boolean",
|
||||
"scope": "window",
|
||||
"default": true,
|
||||
"description": "%html.format.enable.desc%"
|
||||
},
|
||||
'html.format.wrapLineLength': {
|
||||
type: 'integer',
|
||||
scope: 'resource',
|
||||
default: 120,
|
||||
description: '%html.format.wrapLineLength.desc%',
|
||||
"html.format.wrapLineLength": {
|
||||
"type": "integer",
|
||||
"scope": "resource",
|
||||
"default": 120,
|
||||
"description": "%html.format.wrapLineLength.desc%"
|
||||
},
|
||||
'html.format.unformatted': {
|
||||
type: ['string', 'null'],
|
||||
scope: 'resource',
|
||||
default: 'wbr',
|
||||
markdownDescription: '%html.format.unformatted.desc%',
|
||||
},
|
||||
'html.format.contentUnformatted': {
|
||||
type: ['string', 'null'],
|
||||
scope: 'resource',
|
||||
default: 'pre,code,textarea',
|
||||
markdownDescription: '%html.format.contentUnformatted.desc%',
|
||||
},
|
||||
'html.format.indentInnerHtml': {
|
||||
type: 'boolean',
|
||||
scope: 'resource',
|
||||
default: false,
|
||||
markdownDescription: '%html.format.indentInnerHtml.desc%',
|
||||
},
|
||||
'html.format.preserveNewLines': {
|
||||
type: 'boolean',
|
||||
scope: 'resource',
|
||||
default: true,
|
||||
description: '%html.format.preserveNewLines.desc%',
|
||||
},
|
||||
'html.format.maxPreserveNewLines': {
|
||||
type: ['number', 'null'],
|
||||
scope: 'resource',
|
||||
default: null,
|
||||
markdownDescription: '%html.format.maxPreserveNewLines.desc%',
|
||||
},
|
||||
'html.format.indentHandlebars': {
|
||||
type: 'boolean',
|
||||
scope: 'resource',
|
||||
default: false,
|
||||
markdownDescription: '%html.format.indentHandlebars.desc%',
|
||||
},
|
||||
'html.format.endWithNewline': {
|
||||
type: 'boolean',
|
||||
scope: 'resource',
|
||||
default: false,
|
||||
description: '%html.format.endWithNewline.desc%',
|
||||
},
|
||||
'html.format.extraLiners': {
|
||||
type: ['string', 'null'],
|
||||
scope: 'resource',
|
||||
default: 'head, body, /html',
|
||||
markdownDescription: '%html.format.extraLiners.desc%',
|
||||
},
|
||||
'html.format.wrapAttributes': {
|
||||
type: 'string',
|
||||
scope: 'resource',
|
||||
default: 'auto',
|
||||
enum: [
|
||||
'auto',
|
||||
'force',
|
||||
'force-aligned',
|
||||
'force-expand-multiline',
|
||||
'aligned-multiple',
|
||||
'preserve',
|
||||
'preserve-aligned',
|
||||
"html.format.unformatted": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
],
|
||||
enumDescriptions: [
|
||||
'%html.format.wrapAttributes.auto%',
|
||||
'%html.format.wrapAttributes.force%',
|
||||
'%html.format.wrapAttributes.forcealign%',
|
||||
'%html.format.wrapAttributes.forcemultiline%',
|
||||
'%html.format.wrapAttributes.alignedmultiple%',
|
||||
'%html.format.wrapAttributes.preserve%',
|
||||
'%html.format.wrapAttributes.preservealigned%',
|
||||
"scope": "resource",
|
||||
"default": "wbr",
|
||||
"markdownDescription": "%html.format.unformatted.desc%"
|
||||
},
|
||||
"html.format.contentUnformatted": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
],
|
||||
description: '%html.format.wrapAttributes.desc%',
|
||||
"scope": "resource",
|
||||
"default": "pre,code,textarea",
|
||||
"markdownDescription": "%html.format.contentUnformatted.desc%"
|
||||
},
|
||||
'html.format.wrapAttributesIndentSize': {
|
||||
type: ['number', 'null'],
|
||||
scope: 'resource',
|
||||
default: null,
|
||||
description: '%html.format.wrapAttributesIndentSize.desc%',
|
||||
"html.format.indentInnerHtml": {
|
||||
"type": "boolean",
|
||||
"scope": "resource",
|
||||
"default": false,
|
||||
"markdownDescription": "%html.format.indentInnerHtml.desc%"
|
||||
},
|
||||
'html.format.templating': {
|
||||
type: ['boolean'],
|
||||
scope: 'resource',
|
||||
default: false,
|
||||
description: '%html.format.templating.desc%',
|
||||
"html.format.preserveNewLines": {
|
||||
"type": "boolean",
|
||||
"scope": "resource",
|
||||
"default": true,
|
||||
"description": "%html.format.preserveNewLines.desc%"
|
||||
},
|
||||
'html.format.unformattedContentDelimiter': {
|
||||
type: ['string'],
|
||||
scope: 'resource',
|
||||
default: '',
|
||||
markdownDescription:
|
||||
'%html.format.unformattedContentDelimiter.desc%',
|
||||
"html.format.maxPreserveNewLines": {
|
||||
"type": [
|
||||
"number",
|
||||
"null"
|
||||
],
|
||||
"scope": "resource",
|
||||
"default": null,
|
||||
"markdownDescription": "%html.format.maxPreserveNewLines.desc%"
|
||||
},
|
||||
'html.suggest.html5': {
|
||||
type: 'boolean',
|
||||
scope: 'resource',
|
||||
default: true,
|
||||
description: '%html.suggest.html5.desc%',
|
||||
"html.format.indentHandlebars": {
|
||||
"type": "boolean",
|
||||
"scope": "resource",
|
||||
"default": false,
|
||||
"markdownDescription": "%html.format.indentHandlebars.desc%"
|
||||
},
|
||||
'html.validate.scripts': {
|
||||
type: 'boolean',
|
||||
scope: 'resource',
|
||||
default: true,
|
||||
description: '%html.validate.scripts%',
|
||||
"html.format.endWithNewline": {
|
||||
"type": "boolean",
|
||||
"scope": "resource",
|
||||
"default": false,
|
||||
"description": "%html.format.endWithNewline.desc%"
|
||||
},
|
||||
'html.validate.styles': {
|
||||
type: 'boolean',
|
||||
scope: 'resource',
|
||||
default: true,
|
||||
description: '%html.validate.styles%',
|
||||
"html.format.extraLiners": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
],
|
||||
"scope": "resource",
|
||||
"default": "head, body, /html",
|
||||
"markdownDescription": "%html.format.extraLiners.desc%"
|
||||
},
|
||||
'html.autoClosingTags': {
|
||||
type: 'boolean',
|
||||
scope: 'resource',
|
||||
default: true,
|
||||
description: '%html.autoClosingTags%',
|
||||
"html.format.wrapAttributes": {
|
||||
"type": "string",
|
||||
"scope": "resource",
|
||||
"default": "auto",
|
||||
"enum": [
|
||||
"auto",
|
||||
"force",
|
||||
"force-aligned",
|
||||
"force-expand-multiline",
|
||||
"aligned-multiple",
|
||||
"preserve",
|
||||
"preserve-aligned"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"%html.format.wrapAttributes.auto%",
|
||||
"%html.format.wrapAttributes.force%",
|
||||
"%html.format.wrapAttributes.forcealign%",
|
||||
"%html.format.wrapAttributes.forcemultiline%",
|
||||
"%html.format.wrapAttributes.alignedmultiple%",
|
||||
"%html.format.wrapAttributes.preserve%",
|
||||
"%html.format.wrapAttributes.preservealigned%"
|
||||
],
|
||||
"description": "%html.format.wrapAttributes.desc%"
|
||||
},
|
||||
'html.hover.documentation': {
|
||||
type: 'boolean',
|
||||
scope: 'resource',
|
||||
default: true,
|
||||
description: '%html.hover.documentation%',
|
||||
"html.format.wrapAttributesIndentSize": {
|
||||
"type": [
|
||||
"number",
|
||||
"null"
|
||||
],
|
||||
"scope": "resource",
|
||||
"default": null,
|
||||
"description": "%html.format.wrapAttributesIndentSize.desc%"
|
||||
},
|
||||
'html.hover.references': {
|
||||
type: 'boolean',
|
||||
scope: 'resource',
|
||||
default: true,
|
||||
description: '%html.hover.references%',
|
||||
"html.format.templating": {
|
||||
"type": [
|
||||
"boolean"
|
||||
],
|
||||
"scope": "resource",
|
||||
"default": false,
|
||||
"description": "%html.format.templating.desc%"
|
||||
},
|
||||
'html.mirrorCursorOnMatchingTag': {
|
||||
type: 'boolean',
|
||||
scope: 'resource',
|
||||
default: false,
|
||||
description: '%html.mirrorCursorOnMatchingTag%',
|
||||
deprecationMessage:
|
||||
'%html.mirrorCursorOnMatchingTagDeprecationMessage%',
|
||||
"html.format.unformattedContentDelimiter": {
|
||||
"type": [
|
||||
"string"
|
||||
],
|
||||
"scope": "resource",
|
||||
"default": "",
|
||||
"markdownDescription": "%html.format.unformattedContentDelimiter.desc%"
|
||||
},
|
||||
'html.trace.server': {
|
||||
type: 'string',
|
||||
scope: 'window',
|
||||
enum: ['off', 'messages', 'verbose'],
|
||||
default: 'off',
|
||||
description: '%html.trace.server.desc%',
|
||||
"html.suggest.html5": {
|
||||
"type": "boolean",
|
||||
"scope": "resource",
|
||||
"default": true,
|
||||
"description": "%html.suggest.html5.desc%"
|
||||
},
|
||||
},
|
||||
"html.validate.scripts": {
|
||||
"type": "boolean",
|
||||
"scope": "resource",
|
||||
"default": true,
|
||||
"description": "%html.validate.scripts%"
|
||||
},
|
||||
"html.validate.styles": {
|
||||
"type": "boolean",
|
||||
"scope": "resource",
|
||||
"default": true,
|
||||
"description": "%html.validate.styles%"
|
||||
},
|
||||
"html.autoClosingTags": {
|
||||
"type": "boolean",
|
||||
"scope": "resource",
|
||||
"default": true,
|
||||
"description": "%html.autoClosingTags%"
|
||||
},
|
||||
"html.hover.documentation": {
|
||||
"type": "boolean",
|
||||
"scope": "resource",
|
||||
"default": true,
|
||||
"description": "%html.hover.documentation%"
|
||||
},
|
||||
"html.hover.references": {
|
||||
"type": "boolean",
|
||||
"scope": "resource",
|
||||
"default": true,
|
||||
"description": "%html.hover.references%"
|
||||
},
|
||||
"html.mirrorCursorOnMatchingTag": {
|
||||
"type": "boolean",
|
||||
"scope": "resource",
|
||||
"default": false,
|
||||
"description": "%html.mirrorCursorOnMatchingTag%",
|
||||
"deprecationMessage": "%html.mirrorCursorOnMatchingTagDeprecationMessage%"
|
||||
},
|
||||
"html.trace.server": {
|
||||
"type": "string",
|
||||
"scope": "window",
|
||||
"enum": [
|
||||
"off",
|
||||
"messages",
|
||||
"verbose"
|
||||
],
|
||||
"default": "off",
|
||||
"description": "%html.trace.server.desc%"
|
||||
}
|
||||
}
|
||||
},
|
||||
configurationDefaults: {
|
||||
'[html]': {
|
||||
'editor.suggest.insertMode': 'replace',
|
||||
},
|
||||
'[handlebars]': {
|
||||
'editor.suggest.insertMode': 'replace',
|
||||
"configurationDefaults": {
|
||||
"[html]": {
|
||||
"editor.suggest.insertMode": "replace"
|
||||
},
|
||||
"[handlebars]": {
|
||||
"editor.suggest.insertMode": "replace"
|
||||
}
|
||||
},
|
||||
jsonValidation: [
|
||||
"jsonValidation": [
|
||||
{
|
||||
fileMatch: '*.html-data.json',
|
||||
url: 'https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/master/docs/customData.schema.json',
|
||||
"fileMatch": "*.html-data.json",
|
||||
"url": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/master/docs/customData.schema.json"
|
||||
},
|
||||
{
|
||||
fileMatch: 'package.json',
|
||||
url: './schemas/package.schema.json',
|
||||
},
|
||||
"fileMatch": "package.json",
|
||||
"url": "./schemas/package.schema.json"
|
||||
}
|
||||
],
|
||||
workerMain: 'client/dist/browser/htmlClientMain.js',
|
||||
"workerMain": "client/dist/browser/htmlClientMain.js"
|
||||
},
|
||||
"browser": "./client/dist/browser/htmlClientMain"
|
||||
},
|
||||
defaultPkgNlsJSON: {
|
||||
displayName: 'HTML Language Features',
|
||||
description: 'Provides rich language support for HTML and Handlebar files',
|
||||
'html.customData.desc':
|
||||
'A list of relative file paths pointing to JSON files following the [custom data format](https://github.com/microsoft/vscode-html-languageservice/blob/master/docs/customData.md).\n\nVS Code loads custom data on startup to enhance its HTML support for the custom HTML tags, attributes and attribute values you specify in the JSON files.\n\nThe file paths are relative to workspace and only workspace folder settings are considered.',
|
||||
'html.format.enable.desc': 'Enable/disable default HTML formatter.',
|
||||
'html.format.wrapLineLength.desc':
|
||||
'Maximum amount of characters per line (0 = disable).',
|
||||
'html.format.unformatted.desc':
|
||||
"List of tags, comma separated, that shouldn't be reformatted. `null` defaults to all tags listed at https://www.w3.org/TR/html5/dom.html#phrasing-content.",
|
||||
'html.format.contentUnformatted.desc':
|
||||
"List of tags, comma separated, where the content shouldn't be reformatted. `null` defaults to the `pre` tag.",
|
||||
'html.format.indentInnerHtml.desc':
|
||||
'Indent `<head>` and `<body>` sections.',
|
||||
'html.format.preserveNewLines.desc':
|
||||
'Controls whether existing line breaks before elements should be preserved. Only works before elements, not inside tags or for text.',
|
||||
'html.format.maxPreserveNewLines.desc':
|
||||
'Maximum number of line breaks to be preserved in one chunk. Use `null` for unlimited.',
|
||||
'html.format.indentHandlebars.desc':
|
||||
'Format and indent `{{#foo}}` and `{{/foo}}`.',
|
||||
'html.format.endWithNewline.desc': 'End with a newline.',
|
||||
'html.format.extraLiners.desc':
|
||||
'List of tags, comma separated, that should have an extra newline before them. `null` defaults to `"head, body, /html"`.',
|
||||
'html.format.wrapAttributes.desc': 'Wrap attributes.',
|
||||
'html.format.wrapAttributes.auto':
|
||||
'Wrap attributes only when line length is exceeded.',
|
||||
'html.format.wrapAttributes.force': 'Wrap each attribute except first.',
|
||||
'html.format.wrapAttributes.forcealign':
|
||||
'Wrap each attribute except first and keep aligned.',
|
||||
'html.format.wrapAttributes.forcemultiline': 'Wrap each attribute.',
|
||||
'html.format.wrapAttributes.alignedmultiple':
|
||||
'Wrap when line length is exceeded, align attributes vertically.',
|
||||
'html.format.wrapAttributes.preserve': 'Preserve wrapping of attributes',
|
||||
'html.format.wrapAttributes.preservealigned':
|
||||
'Preserve wrapping of attributes but align.',
|
||||
'html.format.templating.desc':
|
||||
'Honor django, erb, handlebars and php templating language tags.',
|
||||
'html.format.unformattedContentDelimiter.desc':
|
||||
'Keep text content together between this string.',
|
||||
'html.format.wrapAttributesIndentSize.desc':
|
||||
"Alignment size when using 'force aligned' and 'aligned multiple' in `#html.format.wrapAttributes#` or `null` to use the default indent size.",
|
||||
'html.suggest.html5.desc':
|
||||
'Controls whether the built-in HTML language support suggests HTML5 tags, properties and values.',
|
||||
'html.trace.server.desc':
|
||||
'Traces the communication between VS Code and the HTML language server.',
|
||||
'html.validate.scripts':
|
||||
'Controls whether the built-in HTML language support validates embedded scripts.',
|
||||
'html.validate.styles':
|
||||
'Controls whether the built-in HTML language support validates embedded styles.',
|
||||
'html.autoClosingTags': 'Enable/disable autoclosing of HTML tags.',
|
||||
'html.mirrorCursorOnMatchingTag':
|
||||
'Enable/disable mirroring cursor on matching HTML tag.',
|
||||
'html.mirrorCursorOnMatchingTagDeprecationMessage':
|
||||
'Deprecated in favor of `editor.linkedEditing`',
|
||||
'html.hover.documentation':
|
||||
'Show tag and attribute documentation in hover.',
|
||||
'html.hover.references': 'Show references to MDN in hover.',
|
||||
"defaultPkgNlsJSON": {
|
||||
"displayName": "HTML Language Features",
|
||||
"description": "Provides rich language support for HTML and Handlebar files",
|
||||
"html.customData.desc": "A list of relative file paths pointing to JSON files following the [custom data format](https://github.com/microsoft/vscode-html-languageservice/blob/master/docs/customData.md).\n\nVS Code loads custom data on startup to enhance its HTML support for the custom HTML tags, attributes and attribute values you specify in the JSON files.\n\nThe file paths are relative to workspace and only workspace folder settings are considered.",
|
||||
"html.format.enable.desc": "Enable/disable default HTML formatter.",
|
||||
"html.format.wrapLineLength.desc": "Maximum amount of characters per line (0 = disable).",
|
||||
"html.format.unformatted.desc": "List of tags, comma separated, that shouldn't be reformatted. `null` defaults to all tags listed at https://www.w3.org/TR/html5/dom.html#phrasing-content.",
|
||||
"html.format.contentUnformatted.desc": "List of tags, comma separated, where the content shouldn't be reformatted. `null` defaults to the `pre` tag.",
|
||||
"html.format.indentInnerHtml.desc": "Indent `<head>` and `<body>` sections.",
|
||||
"html.format.preserveNewLines.desc": "Controls whether existing line breaks before elements should be preserved. Only works before elements, not inside tags or for text.",
|
||||
"html.format.maxPreserveNewLines.desc": "Maximum number of line breaks to be preserved in one chunk. Use `null` for unlimited.",
|
||||
"html.format.indentHandlebars.desc": "Format and indent `{{#foo}}` and `{{/foo}}`.",
|
||||
"html.format.endWithNewline.desc": "End with a newline.",
|
||||
"html.format.extraLiners.desc": "List of tags, comma separated, that should have an extra newline before them. `null` defaults to `\"head, body, /html\"`.",
|
||||
"html.format.wrapAttributes.desc": "Wrap attributes.",
|
||||
"html.format.wrapAttributes.auto": "Wrap attributes only when line length is exceeded.",
|
||||
"html.format.wrapAttributes.force": "Wrap each attribute except first.",
|
||||
"html.format.wrapAttributes.forcealign": "Wrap each attribute except first and keep aligned.",
|
||||
"html.format.wrapAttributes.forcemultiline": "Wrap each attribute.",
|
||||
"html.format.wrapAttributes.alignedmultiple": "Wrap when line length is exceeded, align attributes vertically.",
|
||||
"html.format.wrapAttributes.preserve": "Preserve wrapping of attributes",
|
||||
"html.format.wrapAttributes.preservealigned": "Preserve wrapping of attributes but align.",
|
||||
"html.format.templating.desc": "Honor django, erb, handlebars and php templating language tags.",
|
||||
"html.format.unformattedContentDelimiter.desc": "Keep text content together between this string.",
|
||||
"html.format.wrapAttributesIndentSize.desc": "Alignment size when using 'force aligned' and 'aligned multiple' in `#html.format.wrapAttributes#` or `null` to use the default indent size.",
|
||||
"html.suggest.html5.desc": "Controls whether the built-in HTML language support suggests HTML5 tags, properties and values.",
|
||||
"html.trace.server.desc": "Traces the communication between VS Code and the HTML language server.",
|
||||
"html.validate.scripts": "Controls whether the built-in HTML language support validates embedded scripts.",
|
||||
"html.validate.styles": "Controls whether the built-in HTML language support validates embedded styles.",
|
||||
"html.autoClosingTags": "Enable/disable autoclosing of HTML tags.",
|
||||
"html.mirrorCursorOnMatchingTag": "Enable/disable mirroring cursor on matching HTML tag.",
|
||||
"html.mirrorCursorOnMatchingTagDeprecationMessage": "Deprecated in favor of `editor.linkedEditing`",
|
||||
"html.hover.documentation": "Show tag and attribute documentation in hover.",
|
||||
"html.hover.references": "Show references to MDN in hover."
|
||||
},
|
||||
pkgNlsJSON: {},
|
||||
nlsList: [],
|
||||
extendConfig: {},
|
||||
mode: 'public',
|
||||
};
|
||||
"pkgNlsJSON": {},
|
||||
"nlsList": [],
|
||||
"extendConfig": {},
|
||||
"webAssets": [
|
||||
"package.json",
|
||||
"server/dist/browser/htmlServerMain.js",
|
||||
"README.md",
|
||||
"icons/html.png",
|
||||
"https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/master/docs/customData.schema.json",
|
||||
"schemas/package.schema.json",
|
||||
"client/dist/browser/htmlClientMain.js"
|
||||
],
|
||||
"mode": "public"
|
||||
}
|
||||
|
|
|
@ -0,0 +1,88 @@
|
|||
module.exports = {
|
||||
"extension": {
|
||||
"publisher": "alex-ext-public",
|
||||
"name": "image-preview",
|
||||
"version": "1.53.0-patch.1"
|
||||
},
|
||||
"packageJSON": {
|
||||
"name": "image-preview",
|
||||
"publisher": "alex-ext-public",
|
||||
"version": "1.53.0-patch.1",
|
||||
"displayName": "%displayName%",
|
||||
"description": "%description%",
|
||||
"icon": "icon.png",
|
||||
"activationEvents": [
|
||||
"onCustomEditor:imagePreview.previewEditor",
|
||||
"onCommand:imagePreview.zoomIn",
|
||||
"onCommand:imagePreview.zoomOut"
|
||||
],
|
||||
"kaitianContributes": {
|
||||
"workerMain": "./dist/browser/extension.js"
|
||||
},
|
||||
"contributes": {
|
||||
"customEditors": [
|
||||
{
|
||||
"viewType": "imagePreview.previewEditor",
|
||||
"displayName": "%customEditors.displayName%",
|
||||
"priority": "builtin",
|
||||
"selector": [
|
||||
{
|
||||
"filenamePattern": "*.{jpg,jpe,jpeg,png,bmp,gif,ico,webp}"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"commands": [
|
||||
{
|
||||
"command": "imagePreview.zoomIn",
|
||||
"title": "%command.zoomIn%",
|
||||
"category": "Image Preview"
|
||||
},
|
||||
{
|
||||
"command": "imagePreview.zoomOut",
|
||||
"title": "%command.zoomOut%",
|
||||
"category": "Image Preview"
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
"commandPalette": [
|
||||
{
|
||||
"command": "imagePreview.zoomIn",
|
||||
"when": "imagePreviewFocus",
|
||||
"group": "1_imagePreview"
|
||||
},
|
||||
{
|
||||
"command": "imagePreview.zoomOut",
|
||||
"when": "imagePreviewFocus",
|
||||
"group": "1_imagePreview"
|
||||
}
|
||||
]
|
||||
},
|
||||
"workerMain": "./dist/browser/extension.js"
|
||||
},
|
||||
"browser": "./dist/browser/extension.js"
|
||||
},
|
||||
"defaultPkgNlsJSON": {
|
||||
"displayName": "Image Preview",
|
||||
"description": "Provides VS Code's built-in image preview",
|
||||
"customEditors.displayName": "Image Preview",
|
||||
"command.zoomIn": "Zoom in",
|
||||
"command.zoomOut": "Zoom out"
|
||||
},
|
||||
"pkgNlsJSON": {},
|
||||
"nlsList": [],
|
||||
"extendConfig": {},
|
||||
"webAssets": [
|
||||
"package.json",
|
||||
"media/main.js",
|
||||
"media/main.css",
|
||||
"media/loading.svg",
|
||||
"media/loading-dark.svg",
|
||||
"media/loading-hc.svg",
|
||||
"README.md",
|
||||
"icon.png",
|
||||
"icon.svg",
|
||||
"dist/browser/extension.js"
|
||||
],
|
||||
"mode": "public"
|
||||
}
|
259
src/forge/Newfile/extensions/alex-ext-public.json-language-features-worker.js
Executable file → Normal file
259
src/forge/Newfile/extensions/alex-ext-public.json-language-features-worker.js
Executable file → Normal file
|
@ -1,147 +1,156 @@
|
|||
module.exports = {
|
||||
extension: {
|
||||
publisher: 'alex-ext-public',
|
||||
name: 'json-language-features-worker',
|
||||
version: '1.53.0-patch.1',
|
||||
"extension": {
|
||||
"publisher": "alex-ext-public",
|
||||
"name": "json-language-features-worker",
|
||||
"version": "1.53.0-patch.1"
|
||||
},
|
||||
packageJSON: {
|
||||
name: 'json-language-features-worker',
|
||||
publisher: 'alex',
|
||||
version: '1.53.0-patch.1',
|
||||
displayName: '%displayName%',
|
||||
description: '%description%',
|
||||
icon: 'icons/json.png',
|
||||
activationEvents: ['onLanguage:json', 'onLanguage:jsonc'],
|
||||
kaitianContributes: {
|
||||
workerMain: 'client/dist/browser/jsonClientMain.js',
|
||||
"packageJSON": {
|
||||
"name": "json-language-features-worker",
|
||||
"publisher": "alex",
|
||||
"version": "1.53.0-patch.1",
|
||||
"displayName": "%displayName%",
|
||||
"description": "%description%",
|
||||
"icon": "icons/json.png",
|
||||
"activationEvents": [
|
||||
"onLanguage:json",
|
||||
"onLanguage:jsonc"
|
||||
],
|
||||
"kaitianContributes": {
|
||||
"workerMain": "client/dist/browser/jsonClientMain.js"
|
||||
},
|
||||
contributes: {
|
||||
configuration: {
|
||||
id: 'json',
|
||||
order: 20,
|
||||
type: 'object',
|
||||
title: 'JSON',
|
||||
properties: {
|
||||
'json.schemas': {
|
||||
type: 'array',
|
||||
scope: 'resource',
|
||||
description: '%json.schemas.desc%',
|
||||
items: {
|
||||
type: 'object',
|
||||
default: {
|
||||
fileMatch: ['/myfile'],
|
||||
url: 'schemaURL',
|
||||
"contributes": {
|
||||
"configuration": {
|
||||
"id": "json",
|
||||
"order": 20,
|
||||
"type": "object",
|
||||
"title": "JSON",
|
||||
"properties": {
|
||||
"json.schemas": {
|
||||
"type": "array",
|
||||
"scope": "resource",
|
||||
"description": "%json.schemas.desc%",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"default": {
|
||||
"fileMatch": [
|
||||
"/myfile"
|
||||
],
|
||||
"url": "schemaURL"
|
||||
},
|
||||
properties: {
|
||||
url: {
|
||||
type: 'string',
|
||||
default: '/user.schema.json',
|
||||
description: '%json.schemas.url.desc%',
|
||||
"properties": {
|
||||
"url": {
|
||||
"type": "string",
|
||||
"default": "/user.schema.json",
|
||||
"description": "%json.schemas.url.desc%"
|
||||
},
|
||||
fileMatch: {
|
||||
type: 'array',
|
||||
items: {
|
||||
type: 'string',
|
||||
default: 'MyFile.json',
|
||||
description: '%json.schemas.fileMatch.item.desc%',
|
||||
"fileMatch": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"default": "MyFile.json",
|
||||
"description": "%json.schemas.fileMatch.item.desc%"
|
||||
},
|
||||
minItems: 1,
|
||||
description: '%json.schemas.fileMatch.desc%',
|
||||
"minItems": 1,
|
||||
"description": "%json.schemas.fileMatch.desc%"
|
||||
},
|
||||
schema: {
|
||||
$ref: 'http://json-schema.org/draft-07/schema#',
|
||||
description: '%json.schemas.schema.desc%',
|
||||
},
|
||||
},
|
||||
},
|
||||
"schema": {
|
||||
"$ref": "http://json-schema.org/draft-07/schema#",
|
||||
"description": "%json.schemas.schema.desc%"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
'json.format.enable': {
|
||||
type: 'boolean',
|
||||
scope: 'window',
|
||||
default: true,
|
||||
description: '%json.format.enable.desc%',
|
||||
"json.format.enable": {
|
||||
"type": "boolean",
|
||||
"scope": "window",
|
||||
"default": true,
|
||||
"description": "%json.format.enable.desc%"
|
||||
},
|
||||
'json.trace.server': {
|
||||
type: 'string',
|
||||
scope: 'window',
|
||||
enum: ['off', 'messages', 'verbose'],
|
||||
default: 'off',
|
||||
description: '%json.tracing.desc%',
|
||||
"json.trace.server": {
|
||||
"type": "string",
|
||||
"scope": "window",
|
||||
"enum": [
|
||||
"off",
|
||||
"messages",
|
||||
"verbose"
|
||||
],
|
||||
"default": "off",
|
||||
"description": "%json.tracing.desc%"
|
||||
},
|
||||
'json.colorDecorators.enable': {
|
||||
type: 'boolean',
|
||||
scope: 'window',
|
||||
default: true,
|
||||
description: '%json.colorDecorators.enable.desc%',
|
||||
deprecationMessage:
|
||||
'%json.colorDecorators.enable.deprecationMessage%',
|
||||
"json.colorDecorators.enable": {
|
||||
"type": "boolean",
|
||||
"scope": "window",
|
||||
"default": true,
|
||||
"description": "%json.colorDecorators.enable.desc%",
|
||||
"deprecationMessage": "%json.colorDecorators.enable.deprecationMessage%"
|
||||
},
|
||||
'json.maxItemsComputed': {
|
||||
type: 'number',
|
||||
default: 5000,
|
||||
description: '%json.maxItemsComputed.desc%',
|
||||
"json.maxItemsComputed": {
|
||||
"type": "number",
|
||||
"default": 5000,
|
||||
"description": "%json.maxItemsComputed.desc%"
|
||||
},
|
||||
'json.schemaDownload.enable': {
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
description: '%json.enableSchemaDownload.desc%',
|
||||
tags: ['usesOnlineServices'],
|
||||
},
|
||||
},
|
||||
"json.schemaDownload.enable": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "%json.enableSchemaDownload.desc%",
|
||||
"tags": [
|
||||
"usesOnlineServices"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
configurationDefaults: {
|
||||
'[json]': {
|
||||
'editor.quickSuggestions': {
|
||||
strings: true,
|
||||
"configurationDefaults": {
|
||||
"[json]": {
|
||||
"editor.quickSuggestions": {
|
||||
"strings": true
|
||||
},
|
||||
'editor.suggest.insertMode': 'replace',
|
||||
"editor.suggest.insertMode": "replace"
|
||||
},
|
||||
'[jsonc]': {
|
||||
'editor.quickSuggestions': {
|
||||
strings: true,
|
||||
"[jsonc]": {
|
||||
"editor.quickSuggestions": {
|
||||
"strings": true
|
||||
},
|
||||
'editor.suggest.insertMode': 'replace',
|
||||
},
|
||||
"editor.suggest.insertMode": "replace"
|
||||
}
|
||||
},
|
||||
jsonValidation: [
|
||||
"jsonValidation": [
|
||||
{
|
||||
fileMatch: '*.schema.json',
|
||||
url: 'http://json-schema.org/draft-07/schema#',
|
||||
},
|
||||
"fileMatch": "*.schema.json",
|
||||
"url": "http://json-schema.org/draft-07/schema#"
|
||||
}
|
||||
],
|
||||
workerMain: 'client/dist/browser/jsonClientMain.js',
|
||||
"workerMain": "client/dist/browser/jsonClientMain.js"
|
||||
},
|
||||
"browser": "./client/dist/browser/jsonClientMain"
|
||||
},
|
||||
defaultPkgNlsJSON: {
|
||||
displayName: 'JSON Language Features',
|
||||
description: 'Provides rich language support for JSON files.',
|
||||
'json.schemas.desc':
|
||||
'Associate schemas to JSON files in the current project',
|
||||
'json.schemas.url.desc':
|
||||
'A URL to a schema or a relative path to a schema in the current directory',
|
||||
'json.schemas.fileMatch.desc':
|
||||
"An array of file patterns to match against when resolving JSON files to schemas. `*` can be used as a wildcard. Exclusion patterns can also be defined and start with '!'. A file matches when there is at least one matching pattern and the last matching pattern is not an exclusion pattern.",
|
||||
'json.schemas.fileMatch.item.desc':
|
||||
"A file pattern that can contain '*' to match against when resolving JSON files to schemas.",
|
||||
'json.schemas.schema.desc':
|
||||
'The schema definition for the given URL. The schema only needs to be provided to avoid accesses to the schema URL.',
|
||||
'json.format.enable.desc': 'Enable/disable default JSON formatter',
|
||||
'json.tracing.desc':
|
||||
'Traces the communication between VS Code and the JSON language server.',
|
||||
'json.colorDecorators.enable.desc': 'Enables or disables color decorators',
|
||||
'json.colorDecorators.enable.deprecationMessage':
|
||||
'The setting `json.colorDecorators.enable` has been deprecated in favor of `editor.colorDecorators`.',
|
||||
'json.schemaResolutionErrorMessage': 'Unable to resolve schema.',
|
||||
'json.clickToRetry': 'Click to retry.',
|
||||
'json.maxItemsComputed.desc':
|
||||
'The maximum number of outline symbols and folding regions computed (limited for performance reasons).',
|
||||
'json.maxItemsExceededInformation.desc':
|
||||
'Show notification when exceeding the maximum number of outline symbols and folding regions.',
|
||||
'json.enableSchemaDownload.desc':
|
||||
'When enabled, JSON schemas can be fetched from http and https locations.',
|
||||
"defaultPkgNlsJSON": {
|
||||
"displayName": "JSON Language Features",
|
||||
"description": "Provides rich language support for JSON files.",
|
||||
"json.schemas.desc": "Associate schemas to JSON files in the current project",
|
||||
"json.schemas.url.desc": "A URL to a schema or a relative path to a schema in the current directory",
|
||||
"json.schemas.fileMatch.desc": "An array of file patterns to match against when resolving JSON files to schemas. `*` can be used as a wildcard. Exclusion patterns can also be defined and start with '!'. A file matches when there is at least one matching pattern and the last matching pattern is not an exclusion pattern.",
|
||||
"json.schemas.fileMatch.item.desc": "A file pattern that can contain '*' to match against when resolving JSON files to schemas.",
|
||||
"json.schemas.schema.desc": "The schema definition for the given URL. The schema only needs to be provided to avoid accesses to the schema URL.",
|
||||
"json.format.enable.desc": "Enable/disable default JSON formatter",
|
||||
"json.tracing.desc": "Traces the communication between VS Code and the JSON language server.",
|
||||
"json.colorDecorators.enable.desc": "Enables or disables color decorators",
|
||||
"json.colorDecorators.enable.deprecationMessage": "The setting `json.colorDecorators.enable` has been deprecated in favor of `editor.colorDecorators`.",
|
||||
"json.schemaResolutionErrorMessage": "Unable to resolve schema.",
|
||||
"json.clickToRetry": "Click to retry.",
|
||||
"json.maxItemsComputed.desc": "The maximum number of outline symbols and folding regions computed (limited for performance reasons).",
|
||||
"json.maxItemsExceededInformation.desc": "Show notification when exceeding the maximum number of outline symbols and folding regions.",
|
||||
"json.enableSchemaDownload.desc": "When enabled, JSON schemas can be fetched from http and https locations."
|
||||
},
|
||||
pkgNlsJSON: {},
|
||||
nlsList: [],
|
||||
extendConfig: {},
|
||||
mode: 'public',
|
||||
};
|
||||
"pkgNlsJSON": {},
|
||||
"nlsList": [],
|
||||
"extendConfig": {},
|
||||
"webAssets": [
|
||||
"package.json",
|
||||
"server/dist/browser/jsonServerMain.js",
|
||||
"README.md",
|
||||
"icons/json.png",
|
||||
"http://json-schema.org/draft-07/schema#",
|
||||
"client/dist/browser/jsonClientMain.js"
|
||||
],
|
||||
"mode": "public"
|
||||
}
|
||||
|
|
543
src/forge/Newfile/extensions/alex-ext-public.markdown-language-features-worker.js
Executable file → Normal file
543
src/forge/Newfile/extensions/alex-ext-public.markdown-language-features-worker.js
Executable file → Normal file
|
@ -1,346 +1,351 @@
|
|||
module.exports = {
|
||||
extension: {
|
||||
publisher: 'alex-ext-public',
|
||||
name: 'markdown-language-features-worker',
|
||||
version: '1.53.0-patch.1',
|
||||
"extension": {
|
||||
"publisher": "alex-ext-public",
|
||||
"name": "markdown-language-features-worker",
|
||||
"version": "1.53.0-patch.1"
|
||||
},
|
||||
packageJSON: {
|
||||
name: 'markdown-language-features-worker',
|
||||
publisher: 'alex',
|
||||
version: '1.53.0-patch.1',
|
||||
displayName: '%displayName%',
|
||||
description: '%description%',
|
||||
icon: 'icon.png',
|
||||
activationEvents: [
|
||||
'onLanguage:markdown',
|
||||
'onCommand:markdown.preview.toggleLock',
|
||||
'onCommand:markdown.preview.refresh',
|
||||
'onCommand:markdown.showPreview',
|
||||
'onCommand:markdown.showPreviewToSide',
|
||||
'onCommand:markdown.showLockedPreviewToSide',
|
||||
'onCommand:markdown.showSource',
|
||||
'onCommand:markdown.showPreviewSecuritySelector',
|
||||
'onCommand:markdown.api.render',
|
||||
'onWebviewPanel:markdown.preview',
|
||||
'onCustomEditor:vscode.markdown.preview.editor',
|
||||
"packageJSON": {
|
||||
"name": "markdown-language-features-worker",
|
||||
"publisher": "alex",
|
||||
"version": "1.53.0-patch.1",
|
||||
"displayName": "%displayName%",
|
||||
"description": "%description%",
|
||||
"icon": "icon.png",
|
||||
"activationEvents": [
|
||||
"onLanguage:markdown",
|
||||
"onCommand:markdown.preview.toggleLock",
|
||||
"onCommand:markdown.preview.refresh",
|
||||
"onCommand:markdown.showPreview",
|
||||
"onCommand:markdown.showPreviewToSide",
|
||||
"onCommand:markdown.showLockedPreviewToSide",
|
||||
"onCommand:markdown.showSource",
|
||||
"onCommand:markdown.showPreviewSecuritySelector",
|
||||
"onCommand:markdown.api.render",
|
||||
"onWebviewPanel:markdown.preview",
|
||||
"onCustomEditor:vscode.markdown.preview.editor"
|
||||
],
|
||||
kaitianContributes: {
|
||||
workerMain: './dist/browser/extension.js',
|
||||
"kaitianContributes": {
|
||||
"workerMain": "./dist/browser/extension.js"
|
||||
},
|
||||
contributes: {
|
||||
commands: [
|
||||
"contributes": {
|
||||
"commands": [
|
||||
{
|
||||
command: 'markdown.showPreview',
|
||||
title: '%markdown.preview.title%',
|
||||
category: 'Markdown',
|
||||
icon: {
|
||||
light: './media/preview-light.svg',
|
||||
dark: './media/preview-dark.svg',
|
||||
},
|
||||
"command": "markdown.showPreview",
|
||||
"title": "%markdown.preview.title%",
|
||||
"category": "Markdown",
|
||||
"icon": {
|
||||
"light": "./media/preview-light.svg",
|
||||
"dark": "./media/preview-dark.svg"
|
||||
}
|
||||
},
|
||||
{
|
||||
command: 'markdown.showPreviewToSide',
|
||||
title: '%markdown.previewSide.title%',
|
||||
category: 'Markdown',
|
||||
icon: '$(open-preview)',
|
||||
"command": "markdown.showPreviewToSide",
|
||||
"title": "%markdown.previewSide.title%",
|
||||
"category": "Markdown",
|
||||
"icon": "$(open-preview)"
|
||||
},
|
||||
{
|
||||
command: 'markdown.showLockedPreviewToSide',
|
||||
title: '%markdown.showLockedPreviewToSide.title%',
|
||||
category: 'Markdown',
|
||||
icon: '$(open-preview)',
|
||||
"command": "markdown.showLockedPreviewToSide",
|
||||
"title": "%markdown.showLockedPreviewToSide.title%",
|
||||
"category": "Markdown",
|
||||
"icon": "$(open-preview)"
|
||||
},
|
||||
{
|
||||
command: 'markdown.showSource',
|
||||
title: '%markdown.showSource.title%',
|
||||
category: 'Markdown',
|
||||
icon: '$(go-to-file)',
|
||||
"command": "markdown.showSource",
|
||||
"title": "%markdown.showSource.title%",
|
||||
"category": "Markdown",
|
||||
"icon": "$(go-to-file)"
|
||||
},
|
||||
{
|
||||
command: 'markdown.showPreviewSecuritySelector',
|
||||
title: '%markdown.showPreviewSecuritySelector.title%',
|
||||
category: 'Markdown',
|
||||
"command": "markdown.showPreviewSecuritySelector",
|
||||
"title": "%markdown.showPreviewSecuritySelector.title%",
|
||||
"category": "Markdown"
|
||||
},
|
||||
{
|
||||
command: 'markdown.preview.refresh',
|
||||
title: '%markdown.preview.refresh.title%',
|
||||
category: 'Markdown',
|
||||
"command": "markdown.preview.refresh",
|
||||
"title": "%markdown.preview.refresh.title%",
|
||||
"category": "Markdown"
|
||||
},
|
||||
{
|
||||
command: 'markdown.preview.toggleLock',
|
||||
title: '%markdown.preview.toggleLock.title%',
|
||||
category: 'Markdown',
|
||||
},
|
||||
"command": "markdown.preview.toggleLock",
|
||||
"title": "%markdown.preview.toggleLock.title%",
|
||||
"category": "Markdown"
|
||||
}
|
||||
],
|
||||
menus: {
|
||||
'editor/title': [
|
||||
"menus": {
|
||||
"editor/title": [
|
||||
{
|
||||
command: 'markdown.showPreviewToSide',
|
||||
when: 'editorLangId == markdown && !notebookEditorFocused',
|
||||
alt: 'markdown.showPreview',
|
||||
group: 'navigation',
|
||||
"command": "markdown.showPreviewToSide",
|
||||
"when": "editorLangId == markdown && !notebookEditorFocused",
|
||||
"alt": "markdown.showPreview",
|
||||
"group": "navigation"
|
||||
},
|
||||
{
|
||||
command: 'markdown.showSource',
|
||||
when: 'markdownPreviewFocus',
|
||||
group: 'navigation',
|
||||
"command": "markdown.showSource",
|
||||
"when": "markdownPreviewFocus",
|
||||
"group": "navigation"
|
||||
},
|
||||
{
|
||||
command: 'markdown.preview.refresh',
|
||||
when: 'markdownPreviewFocus',
|
||||
group: '1_markdown',
|
||||
"command": "markdown.preview.refresh",
|
||||
"when": "markdownPreviewFocus",
|
||||
"group": "1_markdown"
|
||||
},
|
||||
{
|
||||
command: 'markdown.preview.toggleLock',
|
||||
when: 'markdownPreviewFocus',
|
||||
group: '1_markdown',
|
||||
"command": "markdown.preview.toggleLock",
|
||||
"when": "markdownPreviewFocus",
|
||||
"group": "1_markdown"
|
||||
},
|
||||
{
|
||||
command: 'markdown.showPreviewSecuritySelector',
|
||||
when: 'markdownPreviewFocus',
|
||||
group: '1_markdown',
|
||||
},
|
||||
"command": "markdown.showPreviewSecuritySelector",
|
||||
"when": "markdownPreviewFocus",
|
||||
"group": "1_markdown"
|
||||
}
|
||||
],
|
||||
'explorer/context': [
|
||||
"explorer/context": [
|
||||
{
|
||||
command: 'markdown.showPreview',
|
||||
when: 'resourceLangId == markdown',
|
||||
group: 'navigation',
|
||||
},
|
||||
"command": "markdown.showPreview",
|
||||
"when": "resourceLangId == markdown",
|
||||
"group": "navigation"
|
||||
}
|
||||
],
|
||||
'editor/title/context': [
|
||||
"editor/title/context": [
|
||||
{
|
||||
command: 'markdown.showPreview',
|
||||
when: 'resourceLangId == markdown',
|
||||
group: '1_open',
|
||||
},
|
||||
"command": "markdown.showPreview",
|
||||
"when": "resourceLangId == markdown",
|
||||
"group": "1_open"
|
||||
}
|
||||
],
|
||||
commandPalette: [
|
||||
"commandPalette": [
|
||||
{
|
||||
command: 'markdown.showPreview',
|
||||
when: 'editorLangId == markdown && !notebookEditorFocused',
|
||||
group: 'navigation',
|
||||
"command": "markdown.showPreview",
|
||||
"when": "editorLangId == markdown && !notebookEditorFocused",
|
||||
"group": "navigation"
|
||||
},
|
||||
{
|
||||
command: 'markdown.showPreviewToSide',
|
||||
when: 'editorLangId == markdown && !notebookEditorFocused',
|
||||
group: 'navigation',
|
||||
"command": "markdown.showPreviewToSide",
|
||||
"when": "editorLangId == markdown && !notebookEditorFocused",
|
||||
"group": "navigation"
|
||||
},
|
||||
{
|
||||
command: 'markdown.showLockedPreviewToSide',
|
||||
when: 'editorLangId == markdown && !notebookEditorFocused',
|
||||
group: 'navigation',
|
||||
"command": "markdown.showLockedPreviewToSide",
|
||||
"when": "editorLangId == markdown && !notebookEditorFocused",
|
||||
"group": "navigation"
|
||||
},
|
||||
{
|
||||
command: 'markdown.showSource',
|
||||
when: 'markdownPreviewFocus',
|
||||
group: 'navigation',
|
||||
"command": "markdown.showSource",
|
||||
"when": "markdownPreviewFocus",
|
||||
"group": "navigation"
|
||||
},
|
||||
{
|
||||
command: 'markdown.showPreviewSecuritySelector',
|
||||
when: 'editorLangId == markdown && !notebookEditorFocused',
|
||||
"command": "markdown.showPreviewSecuritySelector",
|
||||
"when": "editorLangId == markdown && !notebookEditorFocused"
|
||||
},
|
||||
{
|
||||
command: 'markdown.showPreviewSecuritySelector',
|
||||
when: 'markdownPreviewFocus',
|
||||
"command": "markdown.showPreviewSecuritySelector",
|
||||
"when": "markdownPreviewFocus"
|
||||
},
|
||||
{
|
||||
command: 'markdown.preview.toggleLock',
|
||||
when: 'markdownPreviewFocus',
|
||||
"command": "markdown.preview.toggleLock",
|
||||
"when": "markdownPreviewFocus"
|
||||
},
|
||||
{
|
||||
command: 'markdown.preview.refresh',
|
||||
when: 'editorLangId == markdown && !notebookEditorFocused',
|
||||
"command": "markdown.preview.refresh",
|
||||
"when": "editorLangId == markdown && !notebookEditorFocused"
|
||||
},
|
||||
{
|
||||
command: 'markdown.preview.refresh',
|
||||
when: 'markdownPreviewFocus',
|
||||
},
|
||||
],
|
||||
"command": "markdown.preview.refresh",
|
||||
"when": "markdownPreviewFocus"
|
||||
}
|
||||
]
|
||||
},
|
||||
keybindings: [
|
||||
"keybindings": [
|
||||
{
|
||||
command: 'markdown.showPreview',
|
||||
key: 'shift+ctrl+v',
|
||||
mac: 'shift+cmd+v',
|
||||
when: 'editorLangId == markdown && !notebookEditorFocused',
|
||||
"command": "markdown.showPreview",
|
||||
"key": "shift+ctrl+v",
|
||||
"mac": "shift+cmd+v",
|
||||
"when": "editorLangId == markdown && !notebookEditorFocused"
|
||||
},
|
||||
{
|
||||
command: 'markdown.showPreviewToSide',
|
||||
key: 'ctrl+k v',
|
||||
mac: 'cmd+k v',
|
||||
when: 'editorLangId == markdown && !notebookEditorFocused',
|
||||
},
|
||||
"command": "markdown.showPreviewToSide",
|
||||
"key": "ctrl+k v",
|
||||
"mac": "cmd+k v",
|
||||
"when": "editorLangId == markdown && !notebookEditorFocused"
|
||||
}
|
||||
],
|
||||
configuration: {
|
||||
type: 'object',
|
||||
title: 'Markdown',
|
||||
order: 20,
|
||||
properties: {
|
||||
'markdown.styles': {
|
||||
type: 'array',
|
||||
items: {
|
||||
type: 'string',
|
||||
"configuration": {
|
||||
"type": "object",
|
||||
"title": "Markdown",
|
||||
"order": 20,
|
||||
"properties": {
|
||||
"markdown.styles": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
default: [],
|
||||
description: '%markdown.styles.dec%',
|
||||
scope: 'resource',
|
||||
"default": [],
|
||||
"description": "%markdown.styles.dec%",
|
||||
"scope": "resource"
|
||||
},
|
||||
'markdown.preview.breaks': {
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: '%markdown.preview.breaks.desc%',
|
||||
scope: 'resource',
|
||||
"markdown.preview.breaks": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "%markdown.preview.breaks.desc%",
|
||||
"scope": "resource"
|
||||
},
|
||||
'markdown.preview.linkify': {
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
description: '%markdown.preview.linkify%',
|
||||
scope: 'resource',
|
||||
"markdown.preview.linkify": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "%markdown.preview.linkify%",
|
||||
"scope": "resource"
|
||||
},
|
||||
'markdown.preview.fontFamily': {
|
||||
type: 'string',
|
||||
default:
|
||||
"-apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif",
|
||||
description: '%markdown.preview.fontFamily.desc%',
|
||||
scope: 'resource',
|
||||
"markdown.preview.fontFamily": {
|
||||
"type": "string",
|
||||
"default": "-apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif",
|
||||
"description": "%markdown.preview.fontFamily.desc%",
|
||||
"scope": "resource"
|
||||
},
|
||||
'markdown.preview.fontSize': {
|
||||
type: 'number',
|
||||
default: 14,
|
||||
description: '%markdown.preview.fontSize.desc%',
|
||||
scope: 'resource',
|
||||
"markdown.preview.fontSize": {
|
||||
"type": "number",
|
||||
"default": 14,
|
||||
"description": "%markdown.preview.fontSize.desc%",
|
||||
"scope": "resource"
|
||||
},
|
||||
'markdown.preview.lineHeight': {
|
||||
type: 'number',
|
||||
default: 1.6,
|
||||
description: '%markdown.preview.lineHeight.desc%',
|
||||
scope: 'resource',
|
||||
"markdown.preview.lineHeight": {
|
||||
"type": "number",
|
||||
"default": 1.6,
|
||||
"description": "%markdown.preview.lineHeight.desc%",
|
||||
"scope": "resource"
|
||||
},
|
||||
'markdown.preview.scrollPreviewWithEditor': {
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
description: '%markdown.preview.scrollPreviewWithEditor.desc%',
|
||||
scope: 'resource',
|
||||
"markdown.preview.scrollPreviewWithEditor": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "%markdown.preview.scrollPreviewWithEditor.desc%",
|
||||
"scope": "resource"
|
||||
},
|
||||
'markdown.preview.markEditorSelection': {
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
description: '%markdown.preview.markEditorSelection.desc%',
|
||||
scope: 'resource',
|
||||
"markdown.preview.markEditorSelection": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "%markdown.preview.markEditorSelection.desc%",
|
||||
"scope": "resource"
|
||||
},
|
||||
'markdown.preview.scrollEditorWithPreview': {
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
description: '%markdown.preview.scrollEditorWithPreview.desc%',
|
||||
scope: 'resource',
|
||||
"markdown.preview.scrollEditorWithPreview": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "%markdown.preview.scrollEditorWithPreview.desc%",
|
||||
"scope": "resource"
|
||||
},
|
||||
'markdown.preview.doubleClickToSwitchToEditor': {
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
description: '%markdown.preview.doubleClickToSwitchToEditor.desc%',
|
||||
scope: 'resource',
|
||||
"markdown.preview.doubleClickToSwitchToEditor": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "%markdown.preview.doubleClickToSwitchToEditor.desc%",
|
||||
"scope": "resource"
|
||||
},
|
||||
'markdown.preview.openMarkdownLinks': {
|
||||
type: 'string',
|
||||
default: 'inPreview',
|
||||
description:
|
||||
'%configuration.markdown.preview.openMarkdownLinks.description%',
|
||||
scope: 'resource',
|
||||
enum: ['inPreview', 'inEditor'],
|
||||
enumDescriptions: [
|
||||
'%configuration.markdown.preview.openMarkdownLinks.inPreview%',
|
||||
'%configuration.markdown.preview.openMarkdownLinks.inEditor%',
|
||||
"markdown.preview.openMarkdownLinks": {
|
||||
"type": "string",
|
||||
"default": "inPreview",
|
||||
"description": "%configuration.markdown.preview.openMarkdownLinks.description%",
|
||||
"scope": "resource",
|
||||
"enum": [
|
||||
"inPreview",
|
||||
"inEditor"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"%configuration.markdown.preview.openMarkdownLinks.inPreview%",
|
||||
"%configuration.markdown.preview.openMarkdownLinks.inEditor%"
|
||||
]
|
||||
},
|
||||
'markdown.links.openLocation': {
|
||||
type: 'string',
|
||||
default: 'currentGroup',
|
||||
description:
|
||||
'%configuration.markdown.links.openLocation.description%',
|
||||
scope: 'resource',
|
||||
enum: ['currentGroup', 'beside'],
|
||||
enumDescriptions: [
|
||||
'%configuration.markdown.links.openLocation.currentGroup%',
|
||||
'%configuration.markdown.links.openLocation.beside%',
|
||||
"markdown.links.openLocation": {
|
||||
"type": "string",
|
||||
"default": "currentGroup",
|
||||
"description": "%configuration.markdown.links.openLocation.description%",
|
||||
"scope": "resource",
|
||||
"enum": [
|
||||
"currentGroup",
|
||||
"beside"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"%configuration.markdown.links.openLocation.currentGroup%",
|
||||
"%configuration.markdown.links.openLocation.beside%"
|
||||
]
|
||||
},
|
||||
'markdown.trace': {
|
||||
type: 'string',
|
||||
enum: ['off', 'verbose'],
|
||||
default: 'off',
|
||||
description: '%markdown.trace.desc%',
|
||||
scope: 'window',
|
||||
},
|
||||
},
|
||||
"markdown.trace": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"off",
|
||||
"verbose"
|
||||
],
|
||||
"default": "off",
|
||||
"description": "%markdown.trace.desc%",
|
||||
"scope": "window"
|
||||
}
|
||||
}
|
||||
},
|
||||
configurationDefaults: {
|
||||
'[markdown]': {
|
||||
'editor.wordWrap': 'on',
|
||||
'editor.quickSuggestions': false,
|
||||
},
|
||||
"configurationDefaults": {
|
||||
"[markdown]": {
|
||||
"editor.wordWrap": "on",
|
||||
"editor.quickSuggestions": false
|
||||
}
|
||||
},
|
||||
jsonValidation: [
|
||||
"jsonValidation": [
|
||||
{
|
||||
fileMatch: 'package.json',
|
||||
url: './schemas/package.schema.json',
|
||||
},
|
||||
"fileMatch": "package.json",
|
||||
"url": "./schemas/package.schema.json"
|
||||
}
|
||||
],
|
||||
'markdown.previewStyles': [
|
||||
'./media/markdown.css',
|
||||
'./media/highlight.css',
|
||||
"markdown.previewStyles": [
|
||||
"./media/markdown.css",
|
||||
"./media/highlight.css"
|
||||
],
|
||||
'markdown.previewScripts': ['./media/index.js'],
|
||||
workerMain: './dist/browser/extension.js',
|
||||
"markdown.previewScripts": [
|
||||
"./media/index.js"
|
||||
],
|
||||
"workerMain": "./dist/browser/extension.js"
|
||||
},
|
||||
"browser": "./dist/browser/extension"
|
||||
},
|
||||
defaultPkgNlsJSON: {
|
||||
displayName: 'Markdown Language Features',
|
||||
description: 'Provides rich language support for Markdown.',
|
||||
'markdown.preview.breaks.desc':
|
||||
"Sets how line-breaks are rendered in the markdown preview. Setting it to 'true' creates a <br> for newlines inside paragraphs.",
|
||||
'markdown.preview.linkify':
|
||||
'Enable or disable conversion of URL-like text to links in the markdown preview.',
|
||||
'markdown.preview.doubleClickToSwitchToEditor.desc':
|
||||
'Double click in the markdown preview to switch to the editor.',
|
||||
'markdown.preview.fontFamily.desc':
|
||||
'Controls the font family used in the markdown preview.',
|
||||
'markdown.preview.fontSize.desc':
|
||||
'Controls the font size in pixels used in the markdown preview.',
|
||||
'markdown.preview.lineHeight.desc':
|
||||
'Controls the line height used in the markdown preview. This number is relative to the font size.',
|
||||
'markdown.preview.markEditorSelection.desc':
|
||||
'Mark the current editor selection in the markdown preview.',
|
||||
'markdown.preview.scrollEditorWithPreview.desc':
|
||||
'When a markdown preview is scrolled, update the view of the editor.',
|
||||
'markdown.preview.scrollPreviewWithEditor.desc':
|
||||
'When a markdown editor is scrolled, update the view of the preview.',
|
||||
'markdown.preview.title': 'Open Preview',
|
||||
'markdown.previewSide.title': 'Open Preview to the Side',
|
||||
'markdown.showLockedPreviewToSide.title': 'Open Locked Preview to the Side',
|
||||
'markdown.showSource.title': 'Show Source',
|
||||
'markdown.styles.dec':
|
||||
"A list of URLs or local paths to CSS style sheets to use from the markdown preview. Relative paths are interpreted relative to the folder open in the explorer. If there is no open folder, they are interpreted relative to the location of the markdown file. All '\\' need to be written as '\\\\'.",
|
||||
'markdown.showPreviewSecuritySelector.title':
|
||||
'Change Preview Security Settings',
|
||||
'markdown.trace.desc': 'Enable debug logging for the markdown extension.',
|
||||
'markdown.preview.refresh.title': 'Refresh Preview',
|
||||
'markdown.preview.toggleLock.title': 'Toggle Preview Locking',
|
||||
'configuration.markdown.preview.openMarkdownLinks.description':
|
||||
'Controls how links to other markdown files in the markdown preview should be opened.',
|
||||
'configuration.markdown.preview.openMarkdownLinks.inEditor':
|
||||
'Try to open links in the editor',
|
||||
'configuration.markdown.preview.openMarkdownLinks.inPreview':
|
||||
'Try to open links in the markdown preview',
|
||||
'configuration.markdown.links.openLocation.description':
|
||||
'Controls where links in markdown files should be opened.',
|
||||
'configuration.markdown.links.openLocation.currentGroup':
|
||||
'Open links in the active editor group.',
|
||||
'configuration.markdown.links.openLocation.beside':
|
||||
'Open links beside the active editor.',
|
||||
"defaultPkgNlsJSON": {
|
||||
"displayName": "Markdown Language Features",
|
||||
"description": "Provides rich language support for Markdown.",
|
||||
"markdown.preview.breaks.desc": "Sets how line-breaks are rendered in the markdown preview. Setting it to 'true' creates a <br> for newlines inside paragraphs.",
|
||||
"markdown.preview.linkify": "Enable or disable conversion of URL-like text to links in the markdown preview.",
|
||||
"markdown.preview.doubleClickToSwitchToEditor.desc": "Double click in the markdown preview to switch to the editor.",
|
||||
"markdown.preview.fontFamily.desc": "Controls the font family used in the markdown preview.",
|
||||
"markdown.preview.fontSize.desc": "Controls the font size in pixels used in the markdown preview.",
|
||||
"markdown.preview.lineHeight.desc": "Controls the line height used in the markdown preview. This number is relative to the font size.",
|
||||
"markdown.preview.markEditorSelection.desc": "Mark the current editor selection in the markdown preview.",
|
||||
"markdown.preview.scrollEditorWithPreview.desc": "When a markdown preview is scrolled, update the view of the editor.",
|
||||
"markdown.preview.scrollPreviewWithEditor.desc": "When a markdown editor is scrolled, update the view of the preview.",
|
||||
"markdown.preview.title": "Open Preview",
|
||||
"markdown.previewSide.title": "Open Preview to the Side",
|
||||
"markdown.showLockedPreviewToSide.title": "Open Locked Preview to the Side",
|
||||
"markdown.showSource.title": "Show Source",
|
||||
"markdown.styles.dec": "A list of URLs or local paths to CSS style sheets to use from the markdown preview. Relative paths are interpreted relative to the folder open in the explorer. If there is no open folder, they are interpreted relative to the location of the markdown file. All '\\' need to be written as '\\\\'.",
|
||||
"markdown.showPreviewSecuritySelector.title": "Change Preview Security Settings",
|
||||
"markdown.trace.desc": "Enable debug logging for the markdown extension.",
|
||||
"markdown.preview.refresh.title": "Refresh Preview",
|
||||
"markdown.preview.toggleLock.title": "Toggle Preview Locking",
|
||||
"configuration.markdown.preview.openMarkdownLinks.description": "Controls how links to other markdown files in the markdown preview should be opened.",
|
||||
"configuration.markdown.preview.openMarkdownLinks.inEditor": "Try to open links in the editor",
|
||||
"configuration.markdown.preview.openMarkdownLinks.inPreview": "Try to open links in the markdown preview",
|
||||
"configuration.markdown.links.openLocation.description": "Controls where links in markdown files should be opened.",
|
||||
"configuration.markdown.links.openLocation.currentGroup": "Open links in the active editor group.",
|
||||
"configuration.markdown.links.openLocation.beside": "Open links beside the active editor."
|
||||
},
|
||||
pkgNlsJSON: {},
|
||||
nlsList: [],
|
||||
extendConfig: {},
|
||||
mode: 'public',
|
||||
};
|
||||
"pkgNlsJSON": {},
|
||||
"nlsList": [],
|
||||
"extendConfig": {},
|
||||
"webAssets": [
|
||||
"package.json",
|
||||
"media/highlight.css",
|
||||
"media/index.js",
|
||||
"media/markdown.css",
|
||||
"media/pre.js",
|
||||
"media/preview-dark.svg",
|
||||
"media/preview-light.svg",
|
||||
"README.md",
|
||||
"icon.png",
|
||||
"schemas/package.schema.json",
|
||||
"dist/browser/extension.js"
|
||||
],
|
||||
"mode": "public"
|
||||
}
|
||||
|
|
|
@ -0,0 +1,433 @@
|
|||
module.exports = {
|
||||
"extension": {
|
||||
"publisher": "alex-ext-public",
|
||||
"name": "references-view",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"packageJSON": {
|
||||
"name": "references-view",
|
||||
"publisher": "ms-vscode",
|
||||
"version": "1.0.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Microsoft/vscode-references-view"
|
||||
},
|
||||
"displayName": "%displayName%",
|
||||
"description": "%description%",
|
||||
"icon": "media/icon.png",
|
||||
"activationEvents": [
|
||||
"onCommand:references-view.find",
|
||||
"onCommand:references-view.findReferences",
|
||||
"onCommand:references-view.findImplementations",
|
||||
"onCommand:references-view.showCallHierarchy",
|
||||
"onCommand:references-view.showTypeHierarchy",
|
||||
"onCommand:editor.action.showReferences",
|
||||
"onView:references-view.tree"
|
||||
],
|
||||
"contributes": {
|
||||
"configuration": {
|
||||
"properties": {
|
||||
"references.preferredLocation": {
|
||||
"description": "%config.references.preferredLocation%",
|
||||
"type": "string",
|
||||
"default": "peek",
|
||||
"enum": [
|
||||
"peek",
|
||||
"view"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"%config.references.preferredLocation.peek%",
|
||||
"%config.references.preferredLocation.view%"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"viewsContainers": {
|
||||
"activitybar": [
|
||||
{
|
||||
"id": "references-view",
|
||||
"icon": "$(references)",
|
||||
"title": "%container.title%"
|
||||
}
|
||||
]
|
||||
},
|
||||
"views": {
|
||||
"references-view": [
|
||||
{
|
||||
"id": "references-view.tree",
|
||||
"name": "%view.title%",
|
||||
"when": "reference-list.isActive"
|
||||
}
|
||||
]
|
||||
},
|
||||
"commands": [
|
||||
{
|
||||
"command": "references-view.findReferences",
|
||||
"title": "%cmd.references-view.findReferences%",
|
||||
"category": "%cmd.category.references%"
|
||||
},
|
||||
{
|
||||
"command": "references-view.findImplementations",
|
||||
"title": "%cmd.references-view.findImplementations%",
|
||||
"category": "%cmd.category.references%"
|
||||
},
|
||||
{
|
||||
"command": "references-view.clearHistory",
|
||||
"title": "%cmd.references-view.clearHistory%",
|
||||
"category": "%cmd.category.references%",
|
||||
"icon": "$(clear-all)"
|
||||
},
|
||||
{
|
||||
"command": "references-view.clear",
|
||||
"title": "%cmd.references-view.clear%",
|
||||
"category": "%cmd.category.references%",
|
||||
"icon": "$(clear-all)"
|
||||
},
|
||||
{
|
||||
"command": "references-view.refresh",
|
||||
"title": "%cmd.references-view.refresh%",
|
||||
"category": "%cmd.category.references%",
|
||||
"icon": "$(refresh)"
|
||||
},
|
||||
{
|
||||
"command": "references-view.pickFromHistory",
|
||||
"title": "%cmd.references-view.pickFromHistory%",
|
||||
"category": "%cmd.category.references%"
|
||||
},
|
||||
{
|
||||
"command": "references-view.removeReferenceItem",
|
||||
"title": "%cmd.references-view.removeReferenceItem%",
|
||||
"icon": "$(close)"
|
||||
},
|
||||
{
|
||||
"command": "references-view.copy",
|
||||
"title": "%cmd.references-view.copy%"
|
||||
},
|
||||
{
|
||||
"command": "references-view.copyAll",
|
||||
"title": "%cmd.references-view.copyAll%"
|
||||
},
|
||||
{
|
||||
"command": "references-view.copyPath",
|
||||
"title": "%cmd.references-view.copyPath%"
|
||||
},
|
||||
{
|
||||
"command": "references-view.refind",
|
||||
"title": "%cmd.references-view.refind%",
|
||||
"icon": "$(refresh)"
|
||||
},
|
||||
{
|
||||
"command": "references-view.showCallHierarchy",
|
||||
"title": "%cmd.references-view.showCallHierarchy%",
|
||||
"category": "Calls"
|
||||
},
|
||||
{
|
||||
"command": "references-view.showOutgoingCalls",
|
||||
"title": "%cmd.references-view.showOutgoingCalls%",
|
||||
"category": "Calls",
|
||||
"icon": "$(call-outgoing)"
|
||||
},
|
||||
{
|
||||
"command": "references-view.showIncomingCalls",
|
||||
"title": "%cmd.references-view.showIncomingCalls%",
|
||||
"category": "Calls",
|
||||
"icon": "$(call-incoming)"
|
||||
},
|
||||
{
|
||||
"command": "references-view.removeCallItem",
|
||||
"title": "%cmd.references-view.removeCallItem%",
|
||||
"icon": "$(close)"
|
||||
},
|
||||
{
|
||||
"command": "references-view.next",
|
||||
"title": "%cmd.references-view.next%",
|
||||
"enablement": "references-view.canNavigate"
|
||||
},
|
||||
{
|
||||
"command": "references-view.prev",
|
||||
"title": "%cmd.references-view.prev%",
|
||||
"enablement": "references-view.canNavigate"
|
||||
},
|
||||
{
|
||||
"command": "references-view.showTypeHierarchy",
|
||||
"title": "%cmd.references-view.showTypeHierarchy%",
|
||||
"category": "Types"
|
||||
},
|
||||
{
|
||||
"command": "references-view.showSupertypes",
|
||||
"title": "%cmd.references-view.showSupertypes%",
|
||||
"category": "Types",
|
||||
"icon": "$(type-hierarchy-super)"
|
||||
},
|
||||
{
|
||||
"command": "references-view.showSubtypes",
|
||||
"title": "%cmd.references-view.showSubtypes%",
|
||||
"category": "Types",
|
||||
"icon": "$(type-hierarchy-sub)"
|
||||
},
|
||||
{
|
||||
"command": "references-view.removeTypeItem",
|
||||
"title": "%cmd.references-view.removeTypeItem%",
|
||||
"icon": "$(close)"
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
"editor/context": [
|
||||
{
|
||||
"command": "references-view.findReferences",
|
||||
"when": "editorHasReferenceProvider",
|
||||
"group": "0_navigation@1"
|
||||
},
|
||||
{
|
||||
"command": "references-view.findImplementations",
|
||||
"when": "editorHasImplementationProvider",
|
||||
"group": "0_navigation@2"
|
||||
},
|
||||
{
|
||||
"command": "references-view.showCallHierarchy",
|
||||
"when": "editorHasCallHierarchyProvider",
|
||||
"group": "0_navigation@3"
|
||||
},
|
||||
{
|
||||
"command": "references-view.showTypeHierarchy",
|
||||
"when": "editorHasTypeHierarchyProvider",
|
||||
"group": "0_navigation@4"
|
||||
}
|
||||
],
|
||||
"view/title": [
|
||||
{
|
||||
"command": "references-view.clear",
|
||||
"group": "navigation@3",
|
||||
"when": "view == references-view.tree && reference-list.hasResult"
|
||||
},
|
||||
{
|
||||
"command": "references-view.clearHistory",
|
||||
"group": "navigation@3",
|
||||
"when": "view == references-view.tree && reference-list.hasHistory && !reference-list.hasResult"
|
||||
},
|
||||
{
|
||||
"command": "references-view.refresh",
|
||||
"group": "navigation@2",
|
||||
"when": "view == references-view.tree && reference-list.hasResult"
|
||||
},
|
||||
{
|
||||
"command": "references-view.showOutgoingCalls",
|
||||
"group": "navigation@1",
|
||||
"when": "view == references-view.tree && reference-list.hasResult && reference-list.source == callHierarchy && references-view.callHierarchyMode == showIncoming"
|
||||
},
|
||||
{
|
||||
"command": "references-view.showIncomingCalls",
|
||||
"group": "navigation@1",
|
||||
"when": "view == references-view.tree && reference-list.hasResult && reference-list.source == callHierarchy && references-view.callHierarchyMode == showOutgoing"
|
||||
},
|
||||
{
|
||||
"command": "references-view.showSupertypes",
|
||||
"group": "navigation@1",
|
||||
"when": "view == references-view.tree && reference-list.hasResult && reference-list.source == typeHierarchy && references-view.typeHierarchyMode != supertypes"
|
||||
},
|
||||
{
|
||||
"command": "references-view.showSubtypes",
|
||||
"group": "navigation@1",
|
||||
"when": "view == references-view.tree && reference-list.hasResult && reference-list.source == typeHierarchy && references-view.typeHierarchyMode != subtypes"
|
||||
}
|
||||
],
|
||||
"view/item/context": [
|
||||
{
|
||||
"command": "references-view.removeReferenceItem",
|
||||
"group": "inline",
|
||||
"when": "view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"
|
||||
},
|
||||
{
|
||||
"command": "references-view.removeCallItem",
|
||||
"group": "inline",
|
||||
"when": "view == references-view.tree && viewItem == call-item"
|
||||
},
|
||||
{
|
||||
"command": "references-view.removeTypeItem",
|
||||
"group": "inline",
|
||||
"when": "view == references-view.tree && viewItem == type-item"
|
||||
},
|
||||
{
|
||||
"command": "references-view.refind",
|
||||
"group": "inline",
|
||||
"when": "view == references-view.tree && viewItem == history-item"
|
||||
},
|
||||
{
|
||||
"command": "references-view.removeReferenceItem",
|
||||
"group": "1",
|
||||
"when": "view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"
|
||||
},
|
||||
{
|
||||
"command": "references-view.removeCallItem",
|
||||
"group": "1",
|
||||
"when": "view == references-view.tree && viewItem == call-item"
|
||||
},
|
||||
{
|
||||
"command": "references-view.removeTypeItem",
|
||||
"group": "1",
|
||||
"when": "view == references-view.tree && viewItem == type-item"
|
||||
},
|
||||
{
|
||||
"command": "references-view.refind",
|
||||
"group": "1",
|
||||
"when": "view == references-view.tree && viewItem == history-item"
|
||||
},
|
||||
{
|
||||
"command": "references-view.copy",
|
||||
"group": "2@1",
|
||||
"when": "view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"
|
||||
},
|
||||
{
|
||||
"command": "references-view.copyPath",
|
||||
"group": "2@2",
|
||||
"when": "view == references-view.tree && viewItem == file-item"
|
||||
},
|
||||
{
|
||||
"command": "references-view.copyAll",
|
||||
"group": "2@3",
|
||||
"when": "view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"
|
||||
},
|
||||
{
|
||||
"command": "references-view.showOutgoingCalls",
|
||||
"group": "1",
|
||||
"when": "view == references-view.tree && viewItem == call-item"
|
||||
},
|
||||
{
|
||||
"command": "references-view.showIncomingCalls",
|
||||
"group": "1",
|
||||
"when": "view == references-view.tree && viewItem == call-item"
|
||||
},
|
||||
{
|
||||
"command": "references-view.showSupertypes",
|
||||
"group": "1",
|
||||
"when": "view == references-view.tree && viewItem == type-item"
|
||||
},
|
||||
{
|
||||
"command": "references-view.showSubtypes",
|
||||
"group": "1",
|
||||
"when": "view == references-view.tree && viewItem == type-item"
|
||||
}
|
||||
],
|
||||
"commandPalette": [
|
||||
{
|
||||
"command": "references-view.removeReferenceItem",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "references-view.removeCallItem",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "references-view.removeTypeItem",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "references-view.copy",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "references-view.copyAll",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "references-view.copyPath",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "references-view.refind",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "references-view.findReferences",
|
||||
"when": "editorHasReferenceProvider"
|
||||
},
|
||||
{
|
||||
"command": "references-view.clear",
|
||||
"when": "reference-list.hasResult"
|
||||
},
|
||||
{
|
||||
"command": "references-view.clearHistory",
|
||||
"when": "reference-list.isActive && !reference-list.hasResult"
|
||||
},
|
||||
{
|
||||
"command": "references-view.refresh",
|
||||
"when": "reference-list.hasResult"
|
||||
},
|
||||
{
|
||||
"command": "references-view.pickFromHistory",
|
||||
"when": "reference-list.isActive"
|
||||
},
|
||||
{
|
||||
"command": "references-view.next",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "references-view.prev",
|
||||
"when": "never"
|
||||
}
|
||||
]
|
||||
},
|
||||
"keybindings": [
|
||||
{
|
||||
"command": "references-view.findReferences",
|
||||
"when": "editorHasReferenceProvider",
|
||||
"key": "shift+alt+f12"
|
||||
},
|
||||
{
|
||||
"command": "references-view.next",
|
||||
"when": "reference-list.hasResult",
|
||||
"key": "f4"
|
||||
},
|
||||
{
|
||||
"command": "references-view.prev",
|
||||
"when": "reference-list.hasResult",
|
||||
"key": "shift+f4"
|
||||
},
|
||||
{
|
||||
"command": "references-view.showCallHierarchy",
|
||||
"when": "editorHasCallHierarchyProvider",
|
||||
"key": "shift+alt+h"
|
||||
}
|
||||
]
|
||||
},
|
||||
"browser": "./dist/extension.js"
|
||||
},
|
||||
"defaultPkgNlsJSON": {
|
||||
"displayName": "Reference Search View",
|
||||
"description": "Reference Search results as separate, stable view in the sidebar",
|
||||
"config.references.preferredLocation": "Controls whether 'Peek References' or 'Find References' is invoked when selecting code lens references",
|
||||
"config.references.preferredLocation.peek": "Show references in peek editor.",
|
||||
"config.references.preferredLocation.view": "Show references in separate view.",
|
||||
"container.title": "References",
|
||||
"view.title": "Results",
|
||||
"cmd.category.references": "References",
|
||||
"cmd.references-view.findReferences": "Find All References",
|
||||
"cmd.references-view.findImplementations": "Find All Implementations",
|
||||
"cmd.references-view.clearHistory": "Clear History",
|
||||
"cmd.references-view.clear": "Clear",
|
||||
"cmd.references-view.refresh": "Refresh",
|
||||
"cmd.references-view.pickFromHistory": "Show History",
|
||||
"cmd.references-view.removeReferenceItem": "Dismiss",
|
||||
"cmd.references-view.copy": "Copy",
|
||||
"cmd.references-view.copyAll": "Copy All",
|
||||
"cmd.references-view.copyPath": "Copy Path",
|
||||
"cmd.references-view.refind": "Rerun",
|
||||
"cmd.references-view.showCallHierarchy": "Show Call Hierarchy",
|
||||
"cmd.references-view.showOutgoingCalls": "Show Outgoing Calls",
|
||||
"cmd.references-view.showIncomingCalls": "Show Incoming Calls",
|
||||
"cmd.references-view.removeCallItem": "Dismiss",
|
||||
"cmd.references-view.next": "Go to Next Reference",
|
||||
"cmd.references-view.prev": "Go to Previous Reference",
|
||||
"cmd.references-view.showTypeHierarchy": "Show Type Hierarchy",
|
||||
"cmd.references-view.showSupertypes": "Show Supertypes",
|
||||
"cmd.references-view.showSubtypes": "Show Subtypes",
|
||||
"cmd.references-view.removeTypeItem": "Dismiss"
|
||||
},
|
||||
"pkgNlsJSON": {},
|
||||
"nlsList": [],
|
||||
"extendConfig": {},
|
||||
"webAssets": [
|
||||
"package.json"
|
||||
],
|
||||
"mode": "public"
|
||||
}
|
2427
src/forge/Newfile/extensions/alex-ext-public.typescript-language-features-worker.js
Executable file → Normal file
2427
src/forge/Newfile/extensions/alex-ext-public.typescript-language-features-worker.js
Executable file → Normal file
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,337 @@
|
|||
module.exports = {
|
||||
"extension": {
|
||||
"publisher": "alex-ext-public",
|
||||
"name": "web-scm",
|
||||
"version": "0.0.11"
|
||||
},
|
||||
"packageJSON": {
|
||||
"name": "web-scm",
|
||||
"publisher": "alex-ext-public",
|
||||
"version": "0.0.10",
|
||||
"displayName": "web-scm",
|
||||
"description": "SCM for Web",
|
||||
"activationEvents": [
|
||||
"*"
|
||||
],
|
||||
"kaitianContributes": {
|
||||
"workerMain": "./out/worker/index.js"
|
||||
},
|
||||
"contributes": {
|
||||
"commands": [
|
||||
{
|
||||
"command": "git.commit",
|
||||
"title": "git commit",
|
||||
"icon": "$(check)",
|
||||
"category": "Git"
|
||||
},
|
||||
{
|
||||
"command": "git.refresh",
|
||||
"title": "git refresh",
|
||||
"icon": "$(refresh)",
|
||||
"category": "Git"
|
||||
},
|
||||
{
|
||||
"command": "git.branch",
|
||||
"title": "create branch",
|
||||
"icon": "$(branch)",
|
||||
"category": "Git"
|
||||
},
|
||||
{
|
||||
"command": "git.branchFrom",
|
||||
"title": "create branch from",
|
||||
"icon": "$(branch)",
|
||||
"category": "Git"
|
||||
},
|
||||
{
|
||||
"command": "git.openFile",
|
||||
"title": "git open file",
|
||||
"icon": "$(go-to-file)",
|
||||
"category": "Git"
|
||||
},
|
||||
{
|
||||
"command": "git.stage",
|
||||
"title": "git stage",
|
||||
"icon": "$(add)",
|
||||
"category": "Git"
|
||||
},
|
||||
{
|
||||
"command": "git.clean",
|
||||
"title": "git clean",
|
||||
"icon": "$(discard)",
|
||||
"category": "Git"
|
||||
},
|
||||
{
|
||||
"command": "git.cleanAll",
|
||||
"title": "git cleanAll",
|
||||
"icon": "$(discard)",
|
||||
"category": "Git"
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
"scm/title": [
|
||||
{
|
||||
"command": "git.commit",
|
||||
"group": "navigation",
|
||||
"when": "scmProvider == webscm"
|
||||
},
|
||||
{
|
||||
"command": "git.refresh",
|
||||
"group": "navigation",
|
||||
"when": "scmProvider == webscm"
|
||||
},
|
||||
{
|
||||
"command": "git.branch",
|
||||
"when": "scmProvider == webscm && createBranchAble"
|
||||
},
|
||||
{
|
||||
"command": "git.branchFrom",
|
||||
"when": "scmProvider == webscm && createBranchAble"
|
||||
}
|
||||
],
|
||||
"scm/resourceState/context": [
|
||||
{
|
||||
"command": "git.openFile",
|
||||
"when": "scmProvider == webscm",
|
||||
"group": "inline"
|
||||
},
|
||||
{
|
||||
"command": "git.clean",
|
||||
"when": "scmProvider == webscm",
|
||||
"group": "inline"
|
||||
}
|
||||
],
|
||||
"scm/resourceGroup/context": [
|
||||
{
|
||||
"command": "git.cleanAll",
|
||||
"when": "scmProvider == webscm",
|
||||
"group": "inline"
|
||||
}
|
||||
],
|
||||
"scm/change/title": [
|
||||
{
|
||||
"command": "git.cleanAll",
|
||||
"when": "originalResourceScheme == git"
|
||||
}
|
||||
]
|
||||
},
|
||||
"colors": [
|
||||
{
|
||||
"id": "gitDecoration.addedResourceForeground",
|
||||
"description": "%colors.added%",
|
||||
"defaults": {
|
||||
"light": "#587c0c",
|
||||
"dark": "#81b88b",
|
||||
"highContrast": "#1b5225",
|
||||
"highContrastLight": "#374e06"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "gitDecoration.modifiedResourceForeground",
|
||||
"description": "%colors.modified%",
|
||||
"defaults": {
|
||||
"light": "#895503",
|
||||
"dark": "#E2C08D",
|
||||
"highContrast": "#E2C08D",
|
||||
"highContrastLight": "#895503"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "gitDecoration.deletedResourceForeground",
|
||||
"description": "%colors.deleted%",
|
||||
"defaults": {
|
||||
"light": "#ad0707",
|
||||
"dark": "#c74e39",
|
||||
"highContrast": "#c74e39",
|
||||
"highContrastLight": "#ad0707"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "gitDecoration.renamedResourceForeground",
|
||||
"description": "%colors.renamed%",
|
||||
"defaults": {
|
||||
"light": "#007100",
|
||||
"dark": "#73C991",
|
||||
"highContrast": "#73C991",
|
||||
"highContrastLight": "#007100"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "gitDecoration.untrackedResourceForeground",
|
||||
"description": "%colors.untracked%",
|
||||
"defaults": {
|
||||
"light": "#007100",
|
||||
"dark": "#73C991",
|
||||
"highContrast": "#73C991",
|
||||
"highContrastLight": "#007100"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "gitDecoration.ignoredResourceForeground",
|
||||
"description": "%colors.ignored%",
|
||||
"defaults": {
|
||||
"light": "#8E8E90",
|
||||
"dark": "#8C8C8C",
|
||||
"highContrast": "#A7A8A9",
|
||||
"highContrastLight": "#8e8e90"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "gitDecoration.stageModifiedResourceForeground",
|
||||
"description": "%colors.stageModified%",
|
||||
"defaults": {
|
||||
"light": "#895503",
|
||||
"dark": "#E2C08D",
|
||||
"highContrast": "#E2C08D",
|
||||
"highContrastLight": "#895503"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "gitDecoration.stageDeletedResourceForeground",
|
||||
"description": "%colors.stageDeleted%",
|
||||
"defaults": {
|
||||
"light": "#ad0707",
|
||||
"dark": "#c74e39",
|
||||
"highContrast": "#c74e39",
|
||||
"highContrastLight": "#ad0707"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "gitDecoration.conflictingResourceForeground",
|
||||
"description": "%colors.conflict%",
|
||||
"defaults": {
|
||||
"light": "#ad0707",
|
||||
"dark": "#e4676b",
|
||||
"highContrast": "#c74e39",
|
||||
"highContrastLight": "#ad0707"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "gitDecoration.submoduleResourceForeground",
|
||||
"description": "%colors.submodule%",
|
||||
"defaults": {
|
||||
"light": "#1258a7",
|
||||
"dark": "#8db9e2",
|
||||
"highContrast": "#8db9e2",
|
||||
"highContrastLight": "#1258a7"
|
||||
}
|
||||
}
|
||||
],
|
||||
"keybindings": [
|
||||
{
|
||||
"command": "git.commit",
|
||||
"key": "ctrl+enter",
|
||||
"mac": "cmd+enter",
|
||||
"when": "scmRepository"
|
||||
}
|
||||
],
|
||||
"workerMain": "./out/worker/index.js"
|
||||
}
|
||||
},
|
||||
"defaultPkgNlsJSON": {
|
||||
"common.cancel": "Cancel",
|
||||
"common.certain": "Certain",
|
||||
"alex.git.refresh": "git refresh",
|
||||
"alex.git.inputBox.placeholder": "Message ({0} commit and push directly)",
|
||||
"changes": "Changes",
|
||||
"staged.changes": "Staged Changes",
|
||||
"merge.changes": "Merge Changes",
|
||||
"untracked.changes": "Untracked Changes",
|
||||
"git.title.workingTree": "{0} (WorkingTree)",
|
||||
"git.title.untracked": "{0} (Untracked)",
|
||||
"git.title.deleted": "{0} (Deleted)",
|
||||
"git.title.added": "{0} (Added)",
|
||||
"git error details": "Git Error",
|
||||
"deleted": "Deleted",
|
||||
"added": "Added",
|
||||
"modified": "Modified",
|
||||
"diff": "Diff",
|
||||
"discard": "Discard Changes",
|
||||
"confirm delete": "Are you sure you want to DELETE {0}?\nThis is IRREVERSIBLE!\nThis file will be FOREVER LOST if you proceed.",
|
||||
"restore file": "Restore file",
|
||||
"confirm restore": "Are you sure you want to restore {0}?",
|
||||
"confirm discard": "Are you sure you want to discard changes in {0}?",
|
||||
"delete file": "Delete file",
|
||||
"delete files": "Delete Files",
|
||||
"restore files": "Restore files",
|
||||
"confirm restore multiple": "Are you sure you want to restore {0} files?",
|
||||
"confirm discard multiple": "Are you sure you want to discard changes in {0} files?",
|
||||
"warn untracked": "This will DELETE {0} untracked files!\nThis is IRREVERSIBLE!\nThese files will be FOREVER LOST.",
|
||||
"there are untracked files single": "The following untracked file will be DELETED FROM DISK if discarded: {0}.",
|
||||
"there are untracked files": "There are {0} untracked files which will be DELETED FROM DISK if discarded.",
|
||||
"confirm discard all 2": "{0}\n\nThis is IRREVERSIBLE, your current working set will be FOREVER LOST.",
|
||||
"yes discard tracked": "Discard 1 Tracked File",
|
||||
"yes discard tracked multiple": "Discard {0} Tracked Files",
|
||||
"discardAll": "Discard All {0} Files",
|
||||
"confirm discard all single": "Are you sure you want to discard changes in {0}?",
|
||||
"confirm discard all": "Are you sure you want to discard ALL changes in {0} files?\nThis is IRREVERSIBLE!\nYour current working set will be FOREVER LOST if you proceed.",
|
||||
"discardAll multiple": "Discard 1 File",
|
||||
"confirm delete multiple": "Are you sure you want to DELETE {0} files?\nThis is IRREVERSIBLE!\nThese files will be FOREVER LOST if you proceed.",
|
||||
"commit message": "Commit message",
|
||||
"provide commit message": "Please provide a commit message",
|
||||
"commit success": "Commit to {0} success \n Whether to go to {1} to create a PR",
|
||||
"commit failed": "Commit failed",
|
||||
"confirm stage files with merge conflicts": "Are you sure you want to stage {0} files with merge conflicts",
|
||||
"confirm stage file with merge conflicts": "Are you sure you want to stage {0} with merge conflicts?"
|
||||
},
|
||||
"pkgNlsJSON": {
|
||||
"zh-CN": {
|
||||
"common.cancel": "取消",
|
||||
"common.certain": "确定",
|
||||
"common.toplatform": "提交成功,是否去 {0} 创建 PR",
|
||||
"alex.git.refresh": "git refresh",
|
||||
"alex.git.inputBox.placeholder": "消息({0} 直接提交并推送) ",
|
||||
"changes": "更改",
|
||||
"staged.changes": "暂存的更改",
|
||||
"merge.changes": "合并的更改",
|
||||
"untracked.changes": "未追踪的更改",
|
||||
"git.title.workingTree": "{0} (工作树)",
|
||||
"git.title.untracked": "{0} (未追踪)",
|
||||
"git.title.deleted": "{0} (已删除)",
|
||||
"git.title.added": "{0} (新增)",
|
||||
"git error details": "Git Error",
|
||||
"deleted": "已删除",
|
||||
"added": "新增",
|
||||
"modified": "修改",
|
||||
"diff": "更改",
|
||||
"discard": "放弃更改",
|
||||
"confirm delete": "确定要删除 {0} 吗?",
|
||||
"restore file": "恢复文件",
|
||||
"confirm restore": "确认是否还原 {0}",
|
||||
"confirm discard": "确定要放弃 {0} 中更改吗?",
|
||||
"delete file": "删除文件",
|
||||
"delete files": "删除文件",
|
||||
"restore files": "还原文件",
|
||||
"confirm restore multiple": "确认还原 {0} 个文件?",
|
||||
"confirm discard multiple": "确认放弃在 {0} 个文件中的更改?",
|
||||
"warn untracked": "确认删除 {0} 个文件!\nT此操作不可撤消!文件将被永久删除。",
|
||||
"there are untracked files single": "若放弃下面未跟踪的文件,其将被从硬盘上删除: {0}。",
|
||||
"there are untracked files": "若放弃 {0} 个未跟踪的文件,其将被从硬盘上删除。",
|
||||
"confirm discard all 2": "{0}\n\n此操作不可撤销,你当前的工作集将会永远丢失。",
|
||||
"yes discard tracked": "放弃1个文件",
|
||||
"yes discard tracked multiple": "放弃 {0} 个追踪的文件",
|
||||
"discardAll": "放弃 所有 {0} 个文件",
|
||||
"confirm discard all single": "确定放弃 {0} 中的更改吗?",
|
||||
"confirm discard all": "确定要放弃在 {0} 个文件中的所有更改吗?此操作不可撤销!你当前的工作集将会永远丢失。",
|
||||
"discardAll multiple": "放弃1个文件",
|
||||
"confirm delete multiple": "确认删除 {0} 个文件!\nT此操作不可撤消!文件将被永久删除。",
|
||||
"commit message": "提交信息",
|
||||
"provide commit message": "请输入提交信息",
|
||||
"commit success": "向分支 {0} 提交成功",
|
||||
"commit failed": "提交失败",
|
||||
"confirm stage files with merge conflicts": "确定要暂存含有合并冲突的 {0} 个文件吗?",
|
||||
"confirm stage file with merge conflicts": "确定要暂存含有合并冲突的 {0} 吗?"
|
||||
}
|
||||
},
|
||||
"nlsList": [
|
||||
{
|
||||
"filename": "package.nls.zh-cn.json",
|
||||
"languageId": ".zh-cn"
|
||||
}
|
||||
],
|
||||
"extendConfig": {},
|
||||
"webAssets": [
|
||||
"package.json",
|
||||
"out/worker/index.js"
|
||||
],
|
||||
"mode": "public"
|
||||
}
|
|
@ -3,6 +3,8 @@ export const ExtensionCommand={
|
|||
linkToCommit : 'code.blame.linktocommit',
|
||||
onActive : 'code.blame.extension.active',
|
||||
setPerference : 'code.blame.setPerference',
|
||||
acrToggleBlame : 'code.blame.acrToggleBlame',
|
||||
getBlameData : 'code.blame.getBlameData',
|
||||
}
|
||||
|
||||
export default class IDEPlugin {
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
.kt-dialog-buttonWrap .kt-dialog-buttonWrap button{
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.alex-root{
|
||||
position: fixed;
|
||||
|
||||
color: var(--foreground);
|
||||
background-color: var(--editor-background);
|
||||
font-size: var(--base-font-size);
|
||||
}
|
||||
|
||||
.ide-overlay .quick-open-overlay quick-open-container{
|
||||
top: 0px!important;
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
import React from 'react';
|
||||
import './welcome.scss';
|
||||
import ideLogo from '../codeReview/ideLogo.svg';
|
||||
|
||||
|
||||
function Welcome() {
|
||||
return (<div className='welcome'>
|
||||
<div className='text-center'>
|
||||
<img className='welcome-logo' src={ideLogo} />
|
||||
</div>
|
||||
<h1>WebIDE功能特性</h1>
|
||||
<div className="break_word_comments imageLayerParent markdown-body">
|
||||
<h3 id="h3-1-"><a className="reference-link" name="1. 语言服务"></a><span className="header-link octicon octicon-link"></span>1. 语言服务</h3>
|
||||
<p>● 支持近 40 种语言的语法高亮<br />● 支持 JavaScript/TypeScript、HTML、CSS、JSON、Markdown 的基于 LSP (Language Server Protocol) 语言特性功能,具备智能提示和大纲信息以及单文件内跳转。<br/>● 支持 Java、Go、Python、C++、Php 的基于 Tree Sitter 的在线语言服务能力,提供查看引用、符号搜索等特性</p>
|
||||
<h3 id="h3-2-"><a className="reference-link" name="2. 分支"></a><span className="header-link octicon octicon-link"></span>2. 分支</h3><p>支持分支切换:点击左下角分支名即可切换分支。</p>
|
||||
<h3 id="h3-3-"><a className="reference-link" name="3. 搜索"></a><span className="header-link octicon octicon-link"></span>3. 搜索</h3><p>当前支持 Gitlink 仓库内代码搜索(支持单词匹配和文件过滤)和文件搜索。</p>
|
||||
<h3 id="h3-4-"><a className="reference-link" name="4. 行高亮"></a><span className="header-link octicon octicon-link"></span>4. 行高亮</h3><p>支持单行或多行高亮,点击行号即可高亮行,按住 <strong>Shift</strong> 可选中连续多行。</p>
|
||||
<h3 id="h3-5-blame"><a className="reference-link" name="5. Blame"></a><span className="header-link octicon octicon-link"></span>5. Blame</h3><p>支持查看单行 blame 信息,hover 后可展示详细信息。</p>
|
||||
<h3 id="h3-6-graph"><a className="reference-link" name="6. Graph"></a><span className="header-link octicon octicon-link"></span>6. Graph</h3><p>支持 graph 视图,可查看分支 commits 历史以及每个 commit 详细文件变更,并支持文件 diff 查看。底部状态栏左下角点击 Git Graph 或在命令面板输入 View Git Graph,即可打开 Git Graph 视图。</p>
|
||||
<h3 id="h3-7-webscm"><a className="reference-link" name="7. WebSCM"></a><span className="header-link octicon octicon-link"></span>7. WebSCM</h3><p>可以在极速版新建分支,修改代码后在 SCM 面板看到变更文件列表,写完 commit message 后提交到 Gitlink 上。如果想快速修改一些文件可以不用在本地修改,直接通过极速版修改代码一次性提</p>
|
||||
<h3 id="h3-8-"><a className="reference-link" name="8. 代码在线运行"></a><span className="header-link octicon octicon-link"></span>8. 代码在线运行</h3><p>● 集成了基于 skypack 的更加轻量的 <a className="link" href="https://marketplace.visualstudio.com/items?itemName=codespaces-Contrib.codeswing" target="_blank" rel="noopener"><ne-text id="u668cf4f4">CodeSwing</ne-text></a> 插件,可以在极速版去运行前端代码。<br/>
|
||||
● 集成了基于 <a className="link" href="https://pyodide.org/en/latest/usage/packages-in-pyodide.html" target="_blank" rel="noopener"><ne-text id="u2caa2beb">Pyodide</ne-text></a> 的 <a className="link" href="https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner-for-web" target="_blank" rel="noopener"><ne-text id="ufb2dbccf">Code-Runner-For-Web</ne-text></a> 插件,可以将 Python 的运行搬到浏览器上。</p>
|
||||
</div>
|
||||
</div>)
|
||||
}
|
||||
|
||||
export default Welcome;
|
|
@ -0,0 +1,23 @@
|
|||
.kt_editor_background___Hnmig {
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.welcome {
|
||||
padding: 3% 4%;
|
||||
|
||||
h1,h2,h3,p{
|
||||
color: var(--foreground);
|
||||
background-color: var(--editor-background);
|
||||
// font-size: var(--base-font-size);
|
||||
}
|
||||
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.welcome-logo {
|
||||
width: 150px;
|
||||
// margin-bottom: 20px;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,57 @@
|
|||
export const PLUGIN_ID = "alex-app";
|
||||
|
||||
let handleHashChange;
|
||||
|
||||
export const activate = ({ commands }) => {
|
||||
let ignoreHash = null;
|
||||
commands.registerCommand(
|
||||
"code-service.replace-browser-url",
|
||||
(path) => {
|
||||
console.log('path:'+path);
|
||||
let pathArr=path.split('/');
|
||||
if(pathArr[3]=='blob'){
|
||||
pathArr[3]='webIDE/tree'
|
||||
}
|
||||
const fullPath = pathArr.join('/');
|
||||
window.history.replaceState(null, "", fullPath);
|
||||
}
|
||||
);
|
||||
// scm 插件使用 英文 en-us
|
||||
// TODO alex内暴露命令
|
||||
commands.registerCommand(
|
||||
'alex.env.language',
|
||||
() => {
|
||||
return 'zh-cn'
|
||||
}
|
||||
),
|
||||
commands.registerCommand(
|
||||
"code-service.replace-browser-url-hash",
|
||||
(hash) => {
|
||||
console.log(11111);
|
||||
if (hash !== window.location.hash) {
|
||||
ignoreHash = hash;
|
||||
const { href } = window.location;
|
||||
const hashIndex = href.indexOf("#");
|
||||
const url = hashIndex === -1 ? href : href.slice(0, hashIndex);
|
||||
window.location.replace(`${url}${hash}`);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
[
|
||||
'workbench.action.closePanel',
|
||||
'workbench.action.closeSidebar',
|
||||
'vscode.setEditorLayout',
|
||||
].map((id) => commands.registerCommand(id , () =>{}));
|
||||
|
||||
handleHashChange = () => {
|
||||
const { hash } = window.location;
|
||||
if (ignoreHash === hash) return;
|
||||
ignoreHash = null;
|
||||
commands.executeCommand("code-service.set-line-hash", hash);
|
||||
};
|
||||
window.addEventListener("hashchange", handleHashChange);
|
||||
};
|
||||
export const deactivate = () => {
|
||||
window.removeEventListener("hashchange", handleHashChange);
|
||||
};
|
|
@ -0,0 +1,75 @@
|
|||
export const ExtensionCommand={
|
||||
toggleBlame : 'code.blame.toggleBlame',
|
||||
linkToCommit : 'code.blame.linktocommit',
|
||||
onActive : 'code.blame.extension.active',
|
||||
setPerference : 'code.blame.setPerference',
|
||||
acrToggleBlame : 'code.blame.acrToggleBlame',
|
||||
getBlameData : 'code.blame.getBlameData',
|
||||
}
|
||||
|
||||
export const SlotLocation = {
|
||||
top: 'top',
|
||||
left: 'left',
|
||||
right: 'right',
|
||||
main: 'main',
|
||||
statusBar: 'statusBar',
|
||||
bottom: 'bottom',
|
||||
extra: 'extra',
|
||||
float: 'float',
|
||||
action: 'action',
|
||||
};
|
||||
|
||||
export default class IDEPlugin {
|
||||
// // @ts-ignore
|
||||
// commands: IPluginAPI['commands'];
|
||||
// onActivate: () => void;
|
||||
// linkToCommit: (commitId: string) => void;
|
||||
/**
|
||||
* 插件 ID,用于唯一标识插件
|
||||
*/
|
||||
PLUGIN_ID = 'antcode-communication';
|
||||
|
||||
constructor(onActive, linkToCommit) {
|
||||
this.onActivate = onActive;
|
||||
this.linkToCommit = linkToCommit;
|
||||
}
|
||||
|
||||
/**
|
||||
* 激活插件
|
||||
*/
|
||||
activate = (ctx) => {
|
||||
const { commands, context } = ctx;
|
||||
this.commands = commands;
|
||||
context.subscriptions.push(
|
||||
commands.registerCommand(ExtensionCommand.onActive, () => {
|
||||
this.onActivate();
|
||||
}),
|
||||
commands.registerCommand(ExtensionCommand.linkToCommit, (params) => {
|
||||
const { commitId } = params;
|
||||
this.linkToCommit(commitId);
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* 注销插件,可在此时机清理副作用
|
||||
*/
|
||||
deactivate() {}
|
||||
|
||||
/**
|
||||
* 修改配置项
|
||||
* @param name 配置项名称
|
||||
* @param value 值
|
||||
* @param global 是否全局生效
|
||||
*/
|
||||
setPerference(name, value, global) {
|
||||
this.commands.executeCommand(
|
||||
ExtensionCommand.setPerference,
|
||||
name,
|
||||
value,
|
||||
!!global
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,72 @@
|
|||
import localforage from 'localforage';
|
||||
|
||||
export const PLUGIN_ID = 'web-scm';
|
||||
|
||||
|
||||
export const activate = ({ commands }) => {
|
||||
console.log(localforage);
|
||||
if (!localforage.supports(localforage.INDEXEDDB)) {
|
||||
throw new Error('[SCM] IndexedDB Not Support');
|
||||
}
|
||||
|
||||
// 只存储在IndexedDB
|
||||
localforage.config({
|
||||
driver: localforage.INDEXEDDB,
|
||||
name: 'WEB_SCM',
|
||||
storeName: 'WEB_SCM_TABLE',
|
||||
});
|
||||
|
||||
commands.registerCommand('web-scm.localforage.get', async (key) => {
|
||||
return await localforage.getItem(key);
|
||||
});
|
||||
commands.registerCommand(
|
||||
'web-scm.localforage.set',
|
||||
async (key, value) => {
|
||||
return await localforage.setItem(key, value);
|
||||
}
|
||||
);
|
||||
commands.registerCommand(
|
||||
'web-scm.localforage.remove',
|
||||
async (key, valye) => {
|
||||
return await localforage.removeItem(key);
|
||||
}
|
||||
);
|
||||
commands.registerCommand(
|
||||
'web-scm.localforage.removeModify',
|
||||
async (key, value) => {
|
||||
return await localforage.removeItem(key);
|
||||
}
|
||||
);
|
||||
commands.registerCommand('web-scm.localforage.clear', async () => {
|
||||
return await localforage.clear();
|
||||
});
|
||||
commands.registerCommand(
|
||||
'web-scm.localforage.iterate',
|
||||
async (basePath) => {
|
||||
const files = [];
|
||||
await localforage.iterate((value, key) => {
|
||||
if (key.startsWith(basePath)) {
|
||||
if (key.endsWith(':MODIFY')) {
|
||||
files.push(value);
|
||||
}
|
||||
// if (
|
||||
// value.type === Status.ADDED ||
|
||||
// value.type === Status.UNTRACKED
|
||||
// ) {
|
||||
// } else if (value.type === Status.DELETED) {
|
||||
// } else if (value.type === Status.MODIFIED) {
|
||||
// }
|
||||
}
|
||||
});
|
||||
return files;
|
||||
}
|
||||
);
|
||||
|
||||
commands.registerCommand("web-scm.windowOpen", async (path) => {
|
||||
window.open(path);
|
||||
});
|
||||
|
||||
commands.registerCommand("web-scm.yuyanlog", (code, msg, extra) => { });
|
||||
|
||||
|
||||
};
|
|
@ -0,0 +1,147 @@
|
|||
import React , { useEffect, useState, useMemo }from 'react';
|
||||
import { AppRenderer, requireModule } from 'alex';
|
||||
import { SlotLocation } from './plugins/idePlugin';
|
||||
|
||||
import css from './extensions/alex-ext-public.css-language-features-worker.js';
|
||||
import html from './extensions/alex-ext-public.html-language-features-worker.js';
|
||||
import json from './extensions/alex-ext-public.json-language-features-worker.js';
|
||||
import markdown from './extensions/alex-ext-public.markdown-language-features-worker.js';
|
||||
import typescript from './extensions/alex-ext-public.typescript-language-features-worker.js';
|
||||
import anycode from './extensions/alex-ext-public.anycode.js';
|
||||
import anycodeCSharp from './extensions/alex-ext-public.anycode-c-sharp.js';
|
||||
import anycodeCpp from './extensions/alex-ext-public.anycode-cpp.js';
|
||||
import anycodeGo from './extensions/alex-ext-public.anycode-go.js';
|
||||
import anycodeJava from './extensions/alex-ext-public.anycode-java.js';
|
||||
import anycodePhp from './extensions/alex-ext-public.anycode-php.js';
|
||||
import anycodePython from './extensions/alex-ext-public.anycode-python.js';
|
||||
import anycodeRust from './extensions/alex-ext-public.anycode-rust.js';
|
||||
import anycodeTypescript from './extensions/alex-ext-public.anycode-typescript.js';
|
||||
import codeRunner from './extensions/alex-ext-public.code-runner-for-web.js';
|
||||
import emmet from './extensions/alex-ext-public.emmet.js';
|
||||
import codeswing from './extensions/alex-ext-public.codeswing.js';
|
||||
import referencesView from './extensions/alex-ext-public.references-view.js';
|
||||
import gitlens from './extensions/alex-ext-public.gitlens.js';
|
||||
import graph from './extensions/alex-ext-public.git-graph.js';
|
||||
import imagePreview from './extensions/alex-ext-public.image-preview.js';
|
||||
import webSCM from './extensions/alex-ext-public.web-scm.js';
|
||||
import * as SCMPlugin from './plugins/web-scm.plugin';
|
||||
import * as AlexApp from './plugins/alex-app.plugin';
|
||||
|
||||
|
||||
import Welcome from './module/Welcome';
|
||||
|
||||
import './index.scss';
|
||||
|
||||
const CodeServiceModule = requireModule(
|
||||
'@alipay/alex-code-service'
|
||||
).CodeServiceModule;
|
||||
const CodeAPIModule = requireModule('@alipay/alex-code-api').CodeAPIModule;
|
||||
|
||||
const layoutConfig = {
|
||||
[SlotLocation.top]: {
|
||||
modules: ['@opensumi/ide-menu-bar'],
|
||||
},
|
||||
[SlotLocation.action]: {
|
||||
modules: [''],
|
||||
},
|
||||
[SlotLocation.left]: {
|
||||
modules: [
|
||||
'@opensumi/ide-explorer',
|
||||
// 暂时移除搜索能力
|
||||
// '@opensumi/ide-search',
|
||||
'@opensumi/ide-extension-manager',
|
||||
'@opensumi/ide-scm',
|
||||
],
|
||||
},
|
||||
[SlotLocation.main]: {
|
||||
modules: ['@opensumi/ide-editor'],
|
||||
},
|
||||
[SlotLocation.bottom]: {
|
||||
modules: ['@opensumi/ide-output', '@opensumi/ide-markers'],
|
||||
},
|
||||
[SlotLocation.statusBar]: {
|
||||
modules: ['@opensumi/ide-status-bar'],
|
||||
},
|
||||
[SlotLocation.extra]: {
|
||||
modules: ['breadcrumb-menu'],
|
||||
},
|
||||
[SlotLocation.action]: {
|
||||
modules: ['@opensumi/ide-toolbar-action'],
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
const platform = 'gitlink';
|
||||
|
||||
const WebIDE = ( props) => {
|
||||
const { match: { params: { owner, projectsId, branchName } }, } = props;
|
||||
let origin=window.location.origin;
|
||||
if(origin.indexOf('localhost')>-1){
|
||||
origin='https://testforgeplus.trustie.net';
|
||||
}
|
||||
|
||||
return (<AppRenderer
|
||||
appConfig={{
|
||||
plugins: [SCMPlugin, AlexApp],
|
||||
modules: [
|
||||
CodeServiceModule.Config({
|
||||
platform: platform,
|
||||
owner: owner,
|
||||
name: projectsId,
|
||||
refPath: 'tree/'+branchName,
|
||||
commit: '',
|
||||
hash: window.location.hash,
|
||||
gitlink: {
|
||||
// webpack 代理转发
|
||||
// 使用代理本地开发时 因为接口返回头像为地址为相对地址 内部做了拼接
|
||||
// gitlens插件的头像在本地开发会无法展示
|
||||
// endpoint: '/code-service',
|
||||
// endpoint:''
|
||||
origin: origin,
|
||||
endpoint: origin
|
||||
},
|
||||
}),
|
||||
CodeAPIModule,
|
||||
],
|
||||
extensionMetadata: [
|
||||
css,
|
||||
html,
|
||||
json,
|
||||
markdown,
|
||||
typescript,
|
||||
// TODO 后续增加插件 这些插件暂时还没有在公网发布
|
||||
gitlens,
|
||||
graph,
|
||||
imagePreview,
|
||||
webSCM,
|
||||
referencesView,
|
||||
codeswing,
|
||||
emmet,
|
||||
anycodeCSharp,
|
||||
anycodeCpp,
|
||||
anycodeGo,
|
||||
anycodeJava,
|
||||
anycodePhp,
|
||||
anycodePython,
|
||||
anycodeRust,
|
||||
anycodeTypescript,
|
||||
anycode,
|
||||
codeRunner,
|
||||
],
|
||||
workspaceDir: `${platform}/${owner}/${projectsId}`,
|
||||
layoutConfig,
|
||||
defaultPreferences: {
|
||||
'general.theme': 'opensumi-light',
|
||||
},
|
||||
}}
|
||||
runtimeConfig={{
|
||||
biz: 'alex',
|
||||
// scm文件树
|
||||
scmFileTree: true,
|
||||
EditorEmpty: Welcome,
|
||||
WelcomePage: Welcome
|
||||
}}
|
||||
/>
|
||||
)};
|
||||
|
||||
export default WebIDE;
|
|
@ -349,6 +349,7 @@ body {
|
|||
.copy-desc {
|
||||
width: 6rem;
|
||||
padding-top: 1px;
|
||||
flex:none
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue