mirror of
https://github.com/coder/code-server.git
synced 2025-08-01 19:30:05 +08:00
chore(vscode): update to 1.54.2
This commit is contained in:
@ -22,10 +22,7 @@ export function runSelectedScript(context: vscode.ExtensionContext) {
|
||||
}
|
||||
let document = editor.document;
|
||||
let contents = document.getText();
|
||||
let selection = editor.selection;
|
||||
let offset = document.offsetAt(selection.anchor);
|
||||
|
||||
let script = findScriptAtPosition(contents, offset);
|
||||
let script = findScriptAtPosition(editor.document, contents, editor.selection.anchor);
|
||||
if (script) {
|
||||
runScript(context, script, document);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user