-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmicro-kernel.code-workspace
148 lines (124 loc) · 4.09 KB
/
micro-kernel.code-workspace
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
// This is a checked-in VSCode workspace configuration file that can be used
// instead of directly opening project dir in VSCode.
//
// It's an opt-in workspace configuration that contains settings for:
// - vscode itself
// - LSP settings for working correctly with the fuchsia.git checkout
// - etc.
//
// In terms of precedence, VSCode uses the following order in which settings
// are applied (merged together).
//
// 0) default settings
// 1) user's settings
// 2) remote machine settings
// 3) workspace settings (this file)
// 4) workspace folder settings
//
//
// For details, see:
// https://code.visualstudio.com/docs/getstarted/settings#_settings-precedence
////////
// VSCode Workspace Contents
//
// These are the workspace folders, and general VSCode workspace
// configuration itself.
//
// See https://code.visualstudio.com/docs/editor/workspaces for more
// information on this section of the file.
"folders": [
{
// The whole project directory.
"path": "."
}
],
////////
// Recommended Extensions for VSCode and Fuchsia
//
"extensions": {
"recommendations": [
// The Python extensions
"ms-python.python",
"ms-python.mypy-type-checker",
"ms-python.black-formatter",
"ms-python.vscode-pylance",
// The GN language server from Microsoft
"msedge-dev.gnls",
// The official Clang LSP for C/C++.
"llvm-vs-code-extensions.vscode-clangd",
// Supports inserting and formatting C/C++ include guards as required
// in Fuchsia.
"akiramiyakoda.cppincludeguard",
// Adds JSON5 syntax highlighting (including *.cml files).
"mrmlnc.vscode-json5",
// Adds coverage gutters.
"ryanluker.vscode-coverage-gutters",
"mkornelsen.vscode-arm64",
"sunshaoce.risc-v"
],
"unwantedRecommendations": [
// Conflicts with vscode-clangd intellisense, and vscode-clangd is the
// preferred C++ extension.
"ms-vscode.cpptools",
// Redundant and conflicts with gnls, which is preferred.
"npclaudiu.vscode-gn",
]
},
"settings": {
////////
// C/C++
"clangd.arguments": [
"--clang-tidy",
"--background-index",
"--header-insertion=never"
],
"clangd.path": "${workspaceFolder}/prebuilt/downloads/clang/bin/clangd",
// Formats C/C++ include guards to match Fuchsia style.
"C/C++ Include Guard.Comment Style": "Line",
"C/C++ Include Guard.Macro Type": "Filepath",
"C/C++ Include Guard.Suffix": "_H_",
"C/C++ Include Guard.Spaces After Endif": 2,
////////
// VSCode file exclusions
//
// Files that are marked as hidden in the Workspace Explorer.
"files.exclude": {
"**/.DS_Store": true,
"**/.cipd": true,
"**/.git": true,
"**/__pycache__": true,
},
// sub repos managed by jiri are listed in .gitignore, so make sure that
// they are not hidden.
"explorer.excludeGitIgnore": false,
// Files that are excluded from file-watching notifications.
"files.watcherExclude": {
"**/.DS_Store": true,
"**/.cipd": true,
"**/.git": true,
".jiri_root/goma_cache/**": true,
".jiri_root/update_history*/**": true,
"out/**": true,
".cache/**": true,
},
// Files that are excluded from search and quick open (^P).
// This significantly speeds up search and avoids polluting results with
// build output, third party code, and prebuilt binaries.
"search.exclude": {
// Don't exclude local files used for overrides
"local/**": false,
},
"search.useIgnoreFiles": true,
// Don't follow symlinks (into other parts of the tree)
"search.followSymlinks": false,
////////
// Code coverage
"coverage-gutters.coverageBaseDir": ".",
"coverage-gutters.showLineCoverage": true,
"coverage-gutters.coverageFileNames": [ "lcov.info" ],
// Disable task auto-detection for supported project configuration files
// (e.g. NPM's project.json). This significantly speeds up task running.
"task.autoDetect": "off",
},
}