Skip to content

Commit 267ddd9

Browse files
committed
fixed linter issues
1 parent c3b43dd commit 267ddd9

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/client/providers/execInTerminalProvider.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function execInTerminal(fileUri?: vscode.Uri) {
2828

2929
let currentPythonPath = pythonSettings.pythonPath;
3030
if (currentPythonPath.indexOf(' ') > 0 ) {
31-
currentPythonPath = `"${currentPythonPath}"`
31+
currentPythonPath = `"${currentPythonPath}"`;
3232
}
3333

3434
if (fileUri === undefined || typeof fileUri.fsPath !== 'string') {
@@ -66,7 +66,7 @@ function execInTerminal(fileUri?: vscode.Uri) {
6666
}
6767
const launchArgs = settings.PythonSettings.getInstance().terminal.launchArgs;
6868
const launchArgsString = launchArgs.length > 0 ? " ".concat(launchArgs.join(" ")) : "";
69-
const command = `${currentPythonPath}${launchArgsString} ${filePath}`
69+
const command = `${currentPythonPath}${launchArgsString} ${filePath}`;
7070
if (IS_WINDOWS) {
7171
const commandWin = command.replace(/\\/g, "/");
7272
if (IS_POWERSHELL) {
@@ -88,7 +88,7 @@ function execSelectionInTerminal() {
8888

8989
let currentPythonPath = settings.PythonSettings.getInstance().pythonPath;
9090
if (currentPythonPath.indexOf(' ') > 0 ) {
91-
currentPythonPath = `"${currentPythonPath}"`
91+
currentPythonPath = `"${currentPythonPath}"`;
9292
}
9393

9494
const activeEditor = vscode.window.activeTextEditor;
@@ -103,7 +103,7 @@ function execSelectionInTerminal() {
103103
const code = vscode.window.activeTextEditor.document.getText(new vscode.Range(selection.start, selection.end));
104104
const launchArgs = settings.PythonSettings.getInstance().terminal.launchArgs;
105105
const launchArgsString = launchArgs.length > 0 ? " ".concat(launchArgs.join(" ")) : "";
106-
const command = `${currentPythonPath}${launchArgsString}`
106+
const command = `${currentPythonPath}${launchArgsString}`;
107107
if (!terminal) {
108108
terminal = vscode.window.createTerminal(`Python`);
109109
if (IS_WINDOWS) {
@@ -119,13 +119,13 @@ function execSelectionInTerminal() {
119119
terminal.sendText(command);
120120
}
121121
}
122-
const unix_code = code.replace(/\r\n/g, "\n")
122+
const unix_code = code.replace(/\r\n/g, "\n");
123123
if (IS_WINDOWS) {
124124
terminal.sendText(unix_code.replace(/\n/g, "\r\n"));
125125
}
126126
else
127127
{
128-
terminal.sendText(unix_code)
128+
terminal.sendText(unix_code);
129129
}
130130
terminal.show();
131131
}
@@ -136,7 +136,7 @@ function execSelectionInDjangoShell() {
136136

137137
let currentPythonPath = settings.PythonSettings.getInstance().pythonPath;
138138
if (currentPythonPath.indexOf(' ') > 0 ) {
139-
currentPythonPath = `"${currentPythonPath}"`
139+
currentPythonPath = `"${currentPythonPath}"`;
140140
}
141141

142142
const activeEditor = vscode.window.activeTextEditor;
@@ -145,15 +145,15 @@ function execSelectionInDjangoShell() {
145145
}
146146

147147
const workspaceRoot = vscode.workspace.rootPath;
148-
const djangoShellCmd = `"${workspaceRoot}/manage.py" shell`
148+
const djangoShellCmd = `"${workspaceRoot}/manage.py" shell`;
149149
const selection = vscode.window.activeTextEditor.selection;
150150
if (selection.isEmpty) {
151151
return;
152152
}
153153
const code = vscode.window.activeTextEditor.document.getText(new vscode.Range(selection.start, selection.end));
154154
const launchArgs = settings.PythonSettings.getInstance().terminal.launchArgs;
155155
const launchArgsString = launchArgs.length > 0 ? " ".concat(launchArgs.join(" ")) : "";
156-
const command = `${currentPythonPath}${launchArgsString} ${djangoShellCmd}`
156+
const command = `${currentPythonPath}${launchArgsString} ${djangoShellCmd}`;
157157
if (!terminal) {
158158
terminal = vscode.window.createTerminal(`Django Shell`);
159159
if (IS_WINDOWS) {
@@ -169,13 +169,13 @@ function execSelectionInDjangoShell() {
169169
terminal.sendText(command);
170170
}
171171
}
172-
const unix_code = code.replace(/\r\n/g, "\n")
172+
const unix_code = code.replace(/\r\n/g, "\n");
173173
if (IS_WINDOWS) {
174174
terminal.sendText(unix_code.replace(/\n/g, "\r\n"));
175175
}
176176
else
177177
{
178-
terminal.sendText(unix_code)
178+
terminal.sendText(unix_code);
179179
}
180180
terminal.show();
181181
}

0 commit comments

Comments
 (0)