Skip to content

Commit

Permalink
v2.19.11
Browse files Browse the repository at this point in the history
  • Loading branch information
erha19 committed Sep 1, 2022
1 parent 7213eb8 commit 15ec330
Show file tree
Hide file tree
Showing 62 changed files with 482 additions and 464 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.19.10",
"version": "2.19.9",
"npmClient": "npm",
"packages": ["packages/*", "tools/dev-tool", "tools/playwright"],
"command": {
Expand Down
24 changes: 12 additions & 12 deletions packages/addons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opensumi/ide-addons",
"version": "2.19.10",
"version": "2.19.11",
"files": [
"lib"
],
Expand All @@ -16,19 +16,19 @@
"url": "[email protected]:opensumi/core.git"
},
"dependencies": {
"@opensumi/ide-core-common": "2.19.10",
"@opensumi/ide-core-node": "2.19.10"
"@opensumi/ide-core-common": "2.19.11",
"@opensumi/ide-core-node": "2.19.11"
},
"devDependencies": {
"@opensumi/ide-components": "2.19.10",
"@opensumi/ide-core-browser": "2.19.10",
"@opensumi/ide-components": "2.19.11",
"@opensumi/ide-core-browser": "2.19.11",
"@opensumi/ide-dev-tool": "^1.3.1",
"@opensumi/ide-editor": "2.19.10",
"@opensumi/ide-file-search": "2.19.10",
"@opensumi/ide-file-service": "2.19.10",
"@opensumi/ide-overlay": "2.19.10",
"@opensumi/ide-quick-open": "2.19.10",
"@opensumi/ide-workspace": "2.19.10",
"@opensumi/ide-workspace-edit": "2.19.10"
"@opensumi/ide-editor": "2.19.11",
"@opensumi/ide-file-search": "2.19.11",
"@opensumi/ide-file-service": "2.19.11",
"@opensumi/ide-overlay": "2.19.11",
"@opensumi/ide-quick-open": "2.19.11",
"@opensumi/ide-workspace": "2.19.11",
"@opensumi/ide-workspace-edit": "2.19.11"
}
}
16 changes: 8 additions & 8 deletions packages/comments/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opensumi/ide-comments",
"version": "2.19.10",
"version": "2.19.11",
"files": [
"lib"
],
Expand All @@ -16,18 +16,18 @@
"url": "[email protected]:opensumi/core.git"
},
"dependencies": {
"@opensumi/ide-core-common": "2.19.10",
"@opensumi/ide-core-common": "2.19.11",
"marked": "4.0.10",
"react-mentions": "^3.3.1"
},
"devDependencies": {
"@opensumi/ide-components": "2.19.10",
"@opensumi/ide-core-browser": "2.19.10",
"@opensumi/ide-components": "2.19.11",
"@opensumi/ide-core-browser": "2.19.11",
"@opensumi/ide-dev-tool": "^1.3.1",
"@opensumi/ide-editor": "2.19.10",
"@opensumi/ide-main-layout": "2.19.10",
"@opensumi/ide-monaco-enhance": "2.19.10",
"@opensumi/ide-theme": "2.19.10",
"@opensumi/ide-editor": "2.19.11",
"@opensumi/ide-main-layout": "2.19.11",
"@opensumi/ide-monaco-enhance": "2.19.11",
"@opensumi/ide-theme": "2.19.11",
"@types/marked": "4.0.1"
}
}
4 changes: 2 additions & 2 deletions packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opensumi/ide-components",
"version": "2.19.10",
"version": "2.19.11",
"description": "@opensumi/ide-components",
"license": "MIT",
"main": "lib/index.js",
Expand All @@ -16,7 +16,7 @@
},
"dependencies": {
"@ant-design/icons": "^4.6.4",
"@opensumi/ide-utils": "2.19.10",
"@opensumi/ide-utils": "2.19.11",
"@types/react-window": "^1.8.5",
"fuzzy": "^0.1.3",
"lodash": "^4.17.15",
Expand Down
6 changes: 3 additions & 3 deletions packages/connection/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opensumi/ide-connection",
"version": "2.19.10",
"version": "2.19.11",
"files": [
"lib"
],
Expand All @@ -16,13 +16,13 @@
"url": "[email protected]:opensumi/core.git"
},
"dependencies": {
"@opensumi/ide-core-common": "2.19.10",
"@opensumi/ide-core-common": "2.19.11",
"@opensumi/vscode-jsonrpc": "^8.0.0-next.2",
"path-match": "^1.2.4",
"ws": "^7.2.0"
},
"devDependencies": {
"@opensumi/ide-components": "2.19.10",
"@opensumi/ide-components": "2.19.11",
"@opensumi/ide-dev-tool": "^1.3.1",
"mock-socket": "^9.0.2"
}
Expand Down
8 changes: 4 additions & 4 deletions packages/core-browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opensumi/ide-core-browser",
"version": "2.19.10",
"version": "2.19.11",
"description": "@opensumi/ide-core-browser",
"files": [
"lib"
Expand All @@ -17,9 +17,9 @@
"build": "tsc --build ../../configs/ts/references/tsconfig.core-browser.json"
},
"dependencies": {
"@opensumi/ide-components": "2.19.10",
"@opensumi/ide-connection": "2.19.10",
"@opensumi/ide-core-common": "2.19.10",
"@opensumi/ide-components": "2.19.11",
"@opensumi/ide-connection": "2.19.11",
"@opensumi/ide-core-common": "2.19.11",
"@opensumi/vscode-debugprotocol": "1.49.0-beta.1",
"@vscode/codicons": "0.0.27",
"ajv": "^6.10.0",
Expand Down
5 changes: 5 additions & 0 deletions packages/core-browser/src/react-providers/config-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ export interface AppConfig {
* 但这会导致 workerHost 的 origin 为 null,使某些请求失败
*/
useIframeWrapWorkerHost?: boolean;

/**
* 忽略 Worker Host 可能出现的跨域问题
*/
ignoreWorkerHostCors?: boolean;
/**
* 自定义客户端 id,是 websocket 服务的唯一标识
* 也是传给声明了 backServices 的后端 Service 的唯一标识
Expand Down
4 changes: 2 additions & 2 deletions packages/core-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opensumi/ide-core-common",
"version": "2.19.10",
"version": "2.19.11",
"description": "@opensumi/ide-core-common",
"files": [
"lib"
Expand All @@ -18,7 +18,7 @@
},
"dependencies": {
"@opensumi/di": "^1.4.0",
"@opensumi/ide-utils": "2.19.10",
"@opensumi/ide-utils": "2.19.11",
"jschardet": "3.0.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core-electron-main/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opensumi/ide-core-electron-main",
"version": "2.19.10",
"version": "2.19.11",
"files": [
"lib",
"browser-preload"
Expand All @@ -17,7 +17,7 @@
"url": "[email protected]:opensumi/core.git"
},
"dependencies": {
"@opensumi/ide-core-common": "2.19.10",
"@opensumi/ide-core-common": "2.19.11",
"tree-kill": "^1.2.2"
},
"peerDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/core-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opensumi/ide-core-node",
"version": "2.19.10",
"version": "2.19.11",
"description": "@opensumi/ide-core-node",
"files": [
"lib"
Expand All @@ -17,8 +17,8 @@
"url": "[email protected]:opensumi/core.git"
},
"dependencies": {
"@opensumi/ide-connection": "2.19.10",
"@opensumi/ide-core-common": "2.19.10",
"@opensumi/ide-connection": "2.19.11",
"@opensumi/ide-core-common": "2.19.11",
"keytar": "^7.7.0"
},
"devDependencies": {
Expand Down
44 changes: 22 additions & 22 deletions packages/debug/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opensumi/ide-debug",
"version": "2.19.10",
"version": "2.19.11",
"files": [
"lib"
],
Expand All @@ -16,32 +16,32 @@
"url": "[email protected]:opensumi/core.git"
},
"dependencies": {
"@opensumi/ide-connection": "2.19.10",
"@opensumi/ide-core-common": "2.19.10",
"@opensumi/ide-core-node": "2.19.10",
"@opensumi/ide-file-service": "2.19.10",
"@opensumi/ide-task": "2.19.10",
"@opensumi/ide-terminal-next": "2.19.10",
"@opensumi/ide-connection": "2.19.11",
"@opensumi/ide-core-common": "2.19.11",
"@opensumi/ide-core-node": "2.19.11",
"@opensumi/ide-file-service": "2.19.11",
"@opensumi/ide-task": "2.19.11",
"@opensumi/ide-terminal-next": "2.19.11",
"anser": "^1.4.9",
"btoa": "^1.2.1"
},
"devDependencies": {
"@opensumi/ide-components": "2.19.10",
"@opensumi/ide-core-browser": "2.19.10",
"@opensumi/ide-components": "2.19.11",
"@opensumi/ide-core-browser": "2.19.11",
"@opensumi/ide-dev-tool": "^1.3.1",
"@opensumi/ide-editor": "2.19.10",
"@opensumi/ide-main-layout": "2.19.10",
"@opensumi/ide-monaco": "2.19.10",
"@opensumi/ide-monaco-enhance": "2.19.10",
"@opensumi/ide-output": "2.19.10",
"@opensumi/ide-overlay": "2.19.10",
"@opensumi/ide-preferences": "2.19.10",
"@opensumi/ide-quick-open": "2.19.10",
"@opensumi/ide-storage": "2.19.10",
"@opensumi/ide-theme": "2.19.10",
"@opensumi/ide-variable": "2.19.10",
"@opensumi/ide-workspace": "2.19.10",
"@opensumi/ide-workspace-edit": "2.19.10",
"@opensumi/ide-editor": "2.19.11",
"@opensumi/ide-main-layout": "2.19.11",
"@opensumi/ide-monaco": "2.19.11",
"@opensumi/ide-monaco-enhance": "2.19.11",
"@opensumi/ide-output": "2.19.11",
"@opensumi/ide-overlay": "2.19.11",
"@opensumi/ide-preferences": "2.19.11",
"@opensumi/ide-quick-open": "2.19.11",
"@opensumi/ide-storage": "2.19.11",
"@opensumi/ide-theme": "2.19.11",
"@opensumi/ide-variable": "2.19.11",
"@opensumi/ide-workspace": "2.19.11",
"@opensumi/ide-workspace-edit": "2.19.11",
"@types/btoa": "^1.2.3"
}
}
8 changes: 4 additions & 4 deletions packages/decoration/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opensumi/ide-decoration",
"version": "2.19.10",
"version": "2.19.9",
"files": [
"lib"
],
Expand All @@ -16,11 +16,11 @@
"url": "[email protected]:opensumi/core.git"
},
"dependencies": {
"@opensumi/ide-core-common": "2.19.10",
"@opensumi/ide-core-node": "2.19.10"
"@opensumi/ide-core-common": "2.19.9",
"@opensumi/ide-core-node": "2.19.9"
},
"devDependencies": {
"@opensumi/ide-core-browser": "2.19.10",
"@opensumi/ide-core-browser": "2.19.9",
"@opensumi/ide-dev-tool": "^1.3.1"
}
}
22 changes: 11 additions & 11 deletions packages/editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opensumi/ide-editor",
"version": "2.19.10",
"version": "2.19.11",
"files": [
"lib"
],
Expand All @@ -16,19 +16,19 @@
"url": "[email protected]:opensumi/core.git"
},
"dependencies": {
"@opensumi/ide-core-common": "2.19.10",
"@opensumi/ide-core-node": "2.19.10",
"@opensumi/ide-file-service": "2.19.10",
"@opensumi/ide-monaco": "2.19.10",
"@opensumi/ide-core-common": "2.19.11",
"@opensumi/ide-core-node": "2.19.11",
"@opensumi/ide-file-service": "2.19.11",
"@opensumi/ide-monaco": "2.19.11",
"vscode-oniguruma": "1.5.1"
},
"devDependencies": {
"@opensumi/ide-components": "2.19.10",
"@opensumi/ide-core-browser": "2.19.10",
"@opensumi/ide-components": "2.19.11",
"@opensumi/ide-core-browser": "2.19.11",
"@opensumi/ide-dev-tool": "^1.3.1",
"@opensumi/ide-overlay": "2.19.10",
"@opensumi/ide-quick-open": "2.19.10",
"@opensumi/ide-theme": "2.19.10",
"@opensumi/ide-workspace": "2.19.10"
"@opensumi/ide-overlay": "2.19.11",
"@opensumi/ide-quick-open": "2.19.11",
"@opensumi/ide-theme": "2.19.11",
"@opensumi/ide-workspace": "2.19.11"
}
}
32 changes: 21 additions & 11 deletions packages/editor/src/browser/tab.view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -410,15 +410,24 @@ export type IEditorActionsProps = IEditorActionsBaseProps & React.HTMLAttributes
export const EditorActions = forwardRef<HTMLDivElement, IEditorActionsProps>(
(props: IEditorActionsProps, ref: React.Ref<typeof EditorActions>) => {
const { group, className } = props;

const acquireArgs = useCallback(
() =>
(group.currentResource
? [
group.currentResource.uri,
group,
group.currentOrPreviousFocusedEditor?.currentUri || group.currentEditor?.currentUri,
]
: undefined) as [URI, IEditorGroup, MaybeNull<URI>] | undefined,
[group],
);

const editorActionRegistry = useInjectable<IEditorActionRegistry>(IEditorActionRegistry);
const editorService: WorkbenchEditorServiceImpl = useInjectable(WorkbenchEditorService);
const menu = editorActionRegistry.getMenu(group);
const [hasFocus, setHasFocus] = useState<boolean>(editorService.currentEditorGroup === group);
const [args, setArgs] = useState<[URI, IEditorGroup, MaybeNull<URI>] | undefined>(
group.currentResource
? [group.currentResource.uri, group, group.currentOrPreviousFocusedEditor?.currentUri]
: undefined,
);
const [args, setArgs] = useState<[URI, IEditorGroup, MaybeNull<URI>] | undefined>(acquireArgs());

useEffect(() => {
const disposableCollection = new DisposableCollection();
Expand All @@ -429,17 +438,18 @@ export const EditorActions = forwardRef<HTMLDivElement, IEditorActionsProps>(
);
disposableCollection.push(
editorService.onActiveResourceChange(() => {
setArgs(
group.currentResource
? [group.currentResource.uri, group, group.currentOrPreviousFocusedEditor?.currentUri]
: undefined,
);
setArgs(acquireArgs());
}),
);
disposableCollection.push(
group.onDidEditorGroupTabChanged(() => {
setArgs(acquireArgs());
}),
);
return () => {
disposableCollection.dispose();
};
}, []);
}, [group]);

// 第三个参数是当前编辑器的URI(如果有)
return (
Expand Down
Loading

0 comments on commit 15ec330

Please sign in to comment.