Skip to content

Commit 218e85d

Browse files
committed
Flip the jump back icon in palette, remove debug log
1 parent 47962d6 commit 218e85d

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

packages/code-jumpers/src/jumpers/fileeditor.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export class FileEditorJumper extends CodeJumper {
5555

5656
getCurrentPosition(): IGlobalPosition {
5757
let position = this.editor.editor.getCursorPosition();
58-
console.log('file path: ', this.editor.context.path);
5958
return {
6059
editor_index: null,
6160
line: position.line,

packages/jupyterlab-lsp/src/features/jump_to.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ export const jumpToIcon = new LabIcon({
3434
svgstr: jumpToSvg
3535
});
3636

37+
const jumpBackIcon = new LabIcon({
38+
name: 'lsp:jump-back',
39+
svgstr: jumpToSvg.replace('jp-icon3', 'lsp-icon-flip-x jp-icon3')
40+
});
41+
3742
const FEATURE_ID = PLUGIN_ID + ':jump_to';
3843

3944
export class CMJumpToDefinition extends CodeMirrorIntegration {
@@ -254,7 +259,7 @@ const COMMANDS: IFeatureCommand[] = [
254259
},
255260
is_enabled: ({ connection }) => connection.isDefinitionSupported(),
256261
label: 'Jump back',
257-
icon: jumpToIcon,
262+
icon: jumpBackIcon,
258263
// do not attach to any of the context menus
259264
attach_to: new Set<CommandEntryPoint>()
260265
}

packages/jupyterlab-lsp/style/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@
88
.lsp-document-locator span:not(:last-child)::after {
99
content: ' > ';
1010
}
11+
12+
.lsp-icon-flip-x {
13+
transform: scaleX(-1);
14+
transform-origin: center center;
15+
}

0 commit comments

Comments
 (0)