mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Update Seti to support Notebook.
This commit is contained in:
parent
8eb145d146
commit
823317a8f2
|
@ -6,7 +6,7 @@
|
|||
"git": {
|
||||
"name": "seti-ui",
|
||||
"repositoryUrl": "https://github.com/jesseweed/seti-ui",
|
||||
"commitHash": "529789dc4eee3e2fdc5985f082ee58adfb97696c"
|
||||
"commitHash": "921e46b4c378059032c2a9247a6cc96d0f9e57b4"
|
||||
}
|
||||
},
|
||||
"version": "0.1.0"
|
||||
|
|
Binary file not shown.
File diff suppressed because it is too large
Load diff
|
@ -35,6 +35,8 @@ import { SideBySideEditor } from 'vs/workbench/browser/parts/editor/sideBySideEd
|
|||
import { IJSONSchema } from 'vs/base/common/jsonSchema';
|
||||
import { IEditorResolverService } from 'vs/workbench/services/editor/common/editorResolverService';
|
||||
import { IPathService } from 'vs/workbench/services/path/common/pathService';
|
||||
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
|
||||
import { extname } from 'vs/base/common/resources';
|
||||
|
||||
export const CLOSE_SAVED_EDITORS_COMMAND_ID = 'workbench.action.closeUnmodifiedEditors';
|
||||
export const CLOSE_EDITORS_IN_GROUP_COMMAND_ID = 'workbench.action.closeEditorsInGroup';
|
||||
|
@ -931,6 +933,7 @@ function registerCloseEditorCommands() {
|
|||
const editorGroupService = accessor.get(IEditorGroupsService);
|
||||
const editorService = accessor.get(IEditorService);
|
||||
const editorResolverService = accessor.get(IEditorResolverService);
|
||||
const telemetryService = accessor.get(ITelemetryService);
|
||||
|
||||
const { group, editor } = resolveCommandsContext(editorGroupService, getCommandsContext(resourceOrContext, context));
|
||||
|
||||
|
@ -953,6 +956,28 @@ function registerCloseEditorCommands() {
|
|||
}
|
||||
]);
|
||||
|
||||
type WorkbenchEditorReopenClassification = {
|
||||
scheme: { classification: 'SystemMetaData'; purpose: 'FeatureInsight' };
|
||||
ext: { classification: 'SystemMetaData'; purpose: 'FeatureInsight' };
|
||||
from: { classification: 'SystemMetaData'; purpose: 'FeatureInsight' };
|
||||
to: { classification: 'SystemMetaData'; purpose: 'FeatureInsight' };
|
||||
|
||||
};
|
||||
|
||||
type WorkbenchEditorReopenEvent = {
|
||||
scheme: string;
|
||||
ext: string;
|
||||
from: string;
|
||||
to: string;
|
||||
};
|
||||
|
||||
telemetryService.publicLog2<WorkbenchEditorReopenEvent, WorkbenchEditorReopenClassification>('workbenchEditorReopen', {
|
||||
scheme: editor.resource?.scheme ?? '',
|
||||
ext: editor.resource ? extname(editor.resource) : '',
|
||||
from: editor.editorId ?? '',
|
||||
to: resolvedEditor.editor.editorId ?? ''
|
||||
});
|
||||
|
||||
// Make sure it becomes active too
|
||||
await resolvedEditor.group.openEditor(resolvedEditor.editor);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue