forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
20 lines (15 loc) · 726 Bytes
/
types.ts
File metadata and controls
20 lines (15 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { Uri } from 'vscode';
import { ExecutionInfo, IFormattingSettings, Product } from '../common/types';
export const IFormatterHelper = Symbol('IFormatterHelper');
export type FormatterId = 'autopep8' | 'black' | 'yapf';
export type FormatterSettingsPropertyNames = {
argsName: keyof IFormattingSettings;
pathName: keyof IFormattingSettings;
};
export interface IFormatterHelper {
translateToId(formatter: Product): FormatterId;
getSettingsPropertyNames(formatter: Product): FormatterSettingsPropertyNames;
getExecutionInfo(formatter: Product, customArgs: string[], resource?: Uri): ExecutionInfo;
}