Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
yangbobo2021 committed Nov 28, 2024
1 parent d1321f4 commit 656c228
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/ide_service/vscode_service.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import os

from .rpc import rpc_call
from .types import LocationWithText

Expand Down Expand Up @@ -66,6 +64,7 @@ def active_text_editor():
code = "return vscode.window.activeTextEditor;"
return run_code(code=code)


def get_selected_text():
code = """
const editor = vscode.window.activeTextEditor;
Expand All @@ -77,6 +76,7 @@ def get_selected_text():
"""
return run_code(code=code)


def open_folder(folder: str):
folder = folder.replace("\\", "/")
code = (
Expand All @@ -100,6 +100,7 @@ def get_visible_text():
"""
return run_code(code=code)


def visible_lines():
active_document = active_text_editor()
fail_result = {
Expand Down

0 comments on commit 656c228

Please sign in to comment.