|
17 | 17 | import { DebugAdapter } from '../../debug/debug-adapters-yaml-file'; |
18 | 18 | import { ActiveTargetSet, SolutionData } from './view/state/manage-solution-state'; |
19 | 19 |
|
| 20 | +export type PathType = 'absolute' | 'relative'; |
| 21 | + |
20 | 22 | export type FileSelectorOptionsType = { |
21 | | - canSelectMany?: boolean, |
22 | | - defaultUri?: string, |
23 | | - openLabel?: string, |
24 | | - title?: string, |
25 | | - filters?: { [key: string]: string[] } |
| 23 | + canSelectMany?: boolean, |
| 24 | + defaultUri?: string, |
| 25 | + openLabel?: string, |
| 26 | + title?: string, |
| 27 | + pathType?: PathType, |
| 28 | + filters?: { [key: string]: string[] } |
26 | 29 | }; |
27 | 30 |
|
28 | 31 | /** |
29 | 32 | * Messages that the context selection view can pass to the extension. |
30 | 33 | */ |
31 | 34 | export type OutgoingMessage |
32 | | - = { type: 'GET_CONTEXT_SELECTION_DATA' } |
33 | | - | { type: 'SET_SELECTED_TARGET', target: string, set: string | undefined } |
34 | | - | { type: 'OPEN_FILE', path: string } |
35 | | - | { type: 'SET_SELECTED_CONTEXTS', data: SolutionData } |
36 | | - | { type: 'GET_DEBUG_ADAPTERS' } |
37 | | - | { type: 'SET_DEBUGGER', name: string } |
38 | | - | { type: 'ADD_NEW_CONTEXT' } |
39 | | - | { type: 'ADD_NEW_PROJECT' } |
40 | | - | { type: 'ADD_NEW_IMAGE' } |
41 | | - | { type: 'UNLINK_IMAGE', image: string } |
42 | | - | { type: 'SET_START_PROCESSOR', value: string } |
43 | | - | { type: 'SAVE_CONTEXT_SELECTION' } |
44 | | - | { type: 'OPEN_HELP' } |
45 | | - | { type: 'SET_DEBUG_ADAPTER_PROPERTY', service: string | undefined, key: string, value: string | number, pname?: string } |
46 | | - | { type: 'SELECT_FILE', targetElementId: string, options?: FileSelectorOptionsType } |
47 | | - | { type: 'SET_AUTO_UPDATE', value: boolean } |
48 | | - | { type: 'TOGGLE_DEBUGGER', value: boolean } |
49 | | - | { type: 'TOGGLE_DEBUG_ADAPTER_SECTION', section: string } |
50 | | - ; |
| 35 | + = { type: 'GET_CONTEXT_SELECTION_DATA' } |
| 36 | + | { type: 'SET_SELECTED_TARGET', target: string, set: string | undefined } |
| 37 | + | { type: 'OPEN_FILE', path: string } |
| 38 | + | { type: 'SET_SELECTED_CONTEXTS', data: SolutionData } |
| 39 | + | { type: 'GET_DEBUG_ADAPTERS' } |
| 40 | + | { type: 'SET_DEBUGGER', name: string } |
| 41 | + | { type: 'ADD_NEW_CONTEXT' } |
| 42 | + | { type: 'ADD_NEW_PROJECT' } |
| 43 | + | { type: 'ADD_NEW_IMAGE' } |
| 44 | + | { type: 'UNLINK_IMAGE', image: string } |
| 45 | + | { type: 'SET_START_PROCESSOR', value: string } |
| 46 | + | { type: 'SAVE_CONTEXT_SELECTION' } |
| 47 | + | { type: 'OPEN_HELP' } |
| 48 | + | { type: 'SET_DEBUG_ADAPTER_PROPERTY', service: string | undefined, key: string, value: string | number, pname?: string } |
| 49 | + | { type: 'SELECT_FILE', targetElementId: string, options?: FileSelectorOptionsType } |
| 50 | + | { type: 'SET_AUTO_UPDATE', value: boolean } |
| 51 | + | { type: 'TOGGLE_DEBUGGER', value: boolean } |
| 52 | + | { type: 'TOGGLE_DEBUG_ADAPTER_SECTION', section: string } |
| 53 | + ; |
51 | 54 |
|
52 | 55 | /** |
53 | 56 | * Messages that the extension can pass to the context selection view. |
54 | 57 | */ |
55 | 58 | export type IncomingMessage |
56 | | - = { type: 'DATA_CONTEXT_SELECTION', data: SolutionData } |
57 | | - | { type: 'DEBUG_ADAPTERS', data: DebugAdapter[], sectionsInUse: string[] } |
58 | | - | { type: 'DEBUGGER', data: string } |
59 | | - | { type: 'ACTIVE_TARGET_SET', data: ActiveTargetSet } |
60 | | - | { type: 'IS_DIRTY', data: boolean } |
61 | | - | { type: 'IS_BUSY', data: boolean } |
62 | | - | { type: 'FILE_SELECTED', data: string[], for: string } |
63 | | - | { type: 'AUTO_UPDATE', data: boolean } |
64 | | - ; |
| 59 | + = { type: 'DATA_CONTEXT_SELECTION', data: SolutionData } |
| 60 | + | { type: 'DEBUG_ADAPTERS', data: DebugAdapter[], sectionsInUse: string[] } |
| 61 | + | { type: 'DEBUGGER', data: string } |
| 62 | + | { type: 'ACTIVE_TARGET_SET', data: ActiveTargetSet } |
| 63 | + | { type: 'IS_DIRTY', data: boolean } |
| 64 | + | { type: 'IS_BUSY', data: boolean } |
| 65 | + | { type: 'FILE_SELECTED', data: string[], for: string } |
| 66 | + | { type: 'AUTO_UPDATE', data: boolean } |
| 67 | + ; |
0 commit comments