Skip to content

Commit 8d04001

Browse files
Nikola HristovNikola Hristov
authored andcommitted
1 parent b2f6a7e commit 8d04001

File tree

13 files changed

+28
-0
lines changed

13 files changed

+28
-0
lines changed

Source/extension/common/constants.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,23 @@ import * as path from "path";
77
export const PYTHON_LANGUAGE = "python";
88

99
const folderName = path.basename(__dirname);
10+
1011
export const EXTENSION_ROOT_DIR =
1112
folderName === "common"
1213
? path.dirname(path.dirname(path.dirname(__dirname)))
1314
: path.dirname(__dirname);
15+
1416
export const BUNDLED_PYTHON_SCRIPTS_DIR = path.join(
1517
EXTENSION_ROOT_DIR,
1618
"bundled",
1719
);
20+
1821
export const SERVER_SCRIPT_PATH = path.join(
1922
BUNDLED_PYTHON_SCRIPTS_DIR,
2023
"tool",
2124
`server.py`,
2225
);
26+
2327
export const DEBUG_SERVER_SCRIPT_PATH = path.join(
2428
BUNDLED_PYTHON_SCRIPTS_DIR,
2529
"tool",

Source/extension/common/log/logging.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class OutputChannelLogger {
3131
}
3232

3333
let channel: OutputChannelLogger | undefined;
34+
3435
export function registerLogger(logChannel: LogOutputChannel): Disposable {
3536
channel = new OutputChannelLogger(logChannel);
3637

Source/extension/common/multiStepInput.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ type MultiStepInputInputBoxResponseType<P> =
9999
| string
100100
| (P extends { buttons: (infer I)[] } ? I : never)
101101
| undefined;
102+
102103
export interface IMultiStepInput<S> {
103104
run(start: InputStep<S>, state: S): Promise<void>;
104105
showQuickPick<T extends QuickPickItem, P extends IQuickPickParameters<T>>({
@@ -377,6 +378,7 @@ export class MultiStepInput<S> implements IMultiStepInput<S> {
377378
}
378379

379380
export const IMultiStepInputFactory = Symbol("IMultiStepInputFactory");
381+
380382
export interface IMultiStepInputFactory {
381383
create<S>(): IMultiStepInput<S>;
382384
}

Source/extension/common/persistentState.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,15 @@ export class PersistentState<T> implements IPersistentState<T> {
8686

8787
export const GLOBAL_PERSISTENT_KEYS_DEPRECATED =
8888
"PYTHON_EXTENSION_GLOBAL_STORAGE_KEYS";
89+
8990
export const WORKSPACE_PERSISTENT_KEYS_DEPRECATED =
9091
"PYTHON_EXTENSION_WORKSPACE_STORAGE_KEYS";
9192

9293
const GLOBAL_PERSISTENT_KEYS = "PYTHON_GLOBAL_STORAGE_KEYS";
9394

9495
const WORKSPACE_PERSISTENT_KEYS = "PYTHON_WORKSPACE_STORAGE_KEYS";
9596
type KeysStorageType = "global" | "workspace";
97+
9698
export type KeysStorage = { key: string; defaultValue: unknown };
9799

98100
export class PersistentStateFactory implements IPersistentStateFactory {

Source/extension/common/python.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export interface IInterpreterDetails {
3737

3838
const onDidChangePythonInterpreterEvent =
3939
new EventEmitter<IInterpreterDetails>();
40+
4041
export const onDidChangePythonInterpreter: Event<IInterpreterDetails> =
4142
onDidChangePythonInterpreterEvent.event;
4243
async function activateExtension() {

Source/extension/common/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export interface IDisposable {
1212
}
1313

1414
export const IDisposableRegistry = Symbol("IDisposableRegistry");
15+
1516
export type IDisposableRegistry = IDisposable[];
1617

1718
export interface IPersistentState<T> {
@@ -40,4 +41,5 @@ export interface IPersistentStateFactory {
4041
}
4142

4243
export const IExtensionContext = Symbol("ExtensionContext");
44+
4345
export interface IExtensionContext extends ExtensionContext {}

Source/extension/common/vscodeapi.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,18 @@ export function showErrorMessage<T extends string>(
9393
message: string,
9494
...items: T[]
9595
): Thenable<T | undefined>;
96+
9697
export function showErrorMessage<T extends string>(
9798
message: string,
9899
options: MessageOptions,
99100
...items: T[]
100101
): Thenable<T | undefined>;
102+
101103
export function showErrorMessage<T extends MessageItem>(
102104
message: string,
103105
...items: T[]
104106
): Thenable<T | undefined>;
107+
105108
export function showErrorMessage<T extends MessageItem>(
106109
message: string,
107110
options: MessageOptions,
@@ -119,15 +122,18 @@ export function showInformationMessage<T extends string>(
119122
message: string,
120123
...items: T[]
121124
): Thenable<T | undefined>;
125+
122126
export function showInformationMessage<T extends string>(
123127
message: string,
124128
options: MessageOptions,
125129
...items: T[]
126130
): Thenable<T | undefined>;
131+
127132
export function showInformationMessage<T extends MessageItem>(
128133
message: string,
129134
...items: T[]
130135
): Thenable<T | undefined>;
136+
131137
export function showInformationMessage<T extends MessageItem>(
132138
message: string,
133139
options: MessageOptions,

Source/extension/debugger/adapter/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export type PythonEnvironment = {
3636

3737
// eslint-disable-next-line @typescript-eslint/naming-convention
3838
export const IPromptShowState = Symbol("IPromptShowState");
39+
3940
export interface IPromptShowState {
4041
shouldShowPrompt(): boolean;
4142

Source/extension/debugger/configuration/launch.json/completionProvider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
import { DebugConfigStrings } from "../../../common/utils/localize";
1919

2020
const configurationNodeName = "configurations";
21+
2122
export enum JsonLanguages {
2223
json = "json",
2324
jsonWithComments = "jsonc",

Source/extension/debugger/configuration/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { CancellationToken, DebugConfiguration, WorkspaceFolder } from "vscode";
99
export const IDebugConfigurationResolver = Symbol(
1010
"IDebugConfigurationResolver",
1111
);
12+
1213
export interface IDebugConfigurationResolver<T extends DebugConfiguration> {
1314
resolveDebugConfiguration(
1415
folder: WorkspaceFolder | undefined,

0 commit comments

Comments
 (0)