|
92 | 92 | { |
93 | 93 | "view": "debug", |
94 | 94 | "contents": "To learn more about launch.json, see [Configuring C/C++ debugging](https://code.visualstudio.com/docs/cpp/launch-json-reference).", |
95 | | - "when": "debugStartLanguage == cpp || debugStartLanguage == c" |
| 95 | + "when": "debugStartLanguage == cpp || debugStartLanguage == c || debugStartLanguage == cuda-cpp" |
96 | 96 | } |
97 | 97 | ], |
98 | 98 | "problemMatchers": [ |
|
1269 | 1269 | "light": "assets/ref-ungroup-by-type-light.svg", |
1270 | 1270 | "dark": "assets/ref-ungroup-by-type-dark.svg" |
1271 | 1271 | } |
| 1272 | + }, |
| 1273 | + { |
| 1274 | + "command": "C_Cpp.GoToNextDirectiveInGroup", |
| 1275 | + "title": "%c_cpp.command.GoToNextDirectiveInGroup.title%", |
| 1276 | + "category": "C/C++" |
| 1277 | + }, |
| 1278 | + { |
| 1279 | + "command": "C_Cpp.GoToPrevDirectiveInGroup", |
| 1280 | + "title": "%c_cpp.command.GoToPrevDirectiveInGroup.title%", |
| 1281 | + "category": "C/C++" |
1272 | 1282 | } |
1273 | 1283 | ], |
1274 | 1284 | "keybindings": [ |
1275 | 1285 | { |
1276 | 1286 | "command": "C_Cpp.SwitchHeaderSource", |
1277 | 1287 | "key": "Alt+O", |
1278 | | - "when": "editorTextFocus && editorLangId == 'cpp'" |
1279 | | - }, |
1280 | | - { |
1281 | | - "command": "C_Cpp.SwitchHeaderSource", |
1282 | | - "key": "Alt+O", |
1283 | | - "when": "editorTextFocus && editorLangId == 'c'" |
| 1288 | + "when": "editorLangId == 'c' && editorTextFocus || editorLangId == 'cpp' && editorTextFocus || editorLangId == 'cuda-cpp' && editorTextFocus" |
1284 | 1289 | } |
1285 | 1290 | ], |
1286 | 1291 | "debuggers": [ |
|
1289 | 1294 | "label": "C++ (GDB/LLDB)", |
1290 | 1295 | "languages": [ |
1291 | 1296 | "c", |
1292 | | - "cpp" |
| 1297 | + "cpp", |
| 1298 | + "cuda-cpp" |
1293 | 1299 | ], |
1294 | 1300 | "variables": { |
1295 | 1301 | "pickProcess": "extension.pickNativeProcess", |
|
1911 | 1917 | "label": "C++ (Windows)", |
1912 | 1918 | "languages": [ |
1913 | 1919 | "c", |
1914 | | - "cpp" |
| 1920 | + "cpp", |
| 1921 | + "cuda-cpp" |
1915 | 1922 | ], |
1916 | 1923 | "variables": { |
1917 | 1924 | "pickProcess": "extension.pickNativeProcess" |
|
2155 | 2162 | { |
2156 | 2163 | "language": "cpp" |
2157 | 2164 | }, |
| 2165 | + { |
| 2166 | + "language": "cuda-cpp" |
| 2167 | + }, |
2158 | 2168 | { |
2159 | 2169 | "language": "cuda" |
2160 | 2170 | } |
|
2180 | 2190 | ], |
2181 | 2191 | "editor/context": [ |
2182 | 2192 | { |
2183 | | - "when": "editorLangId == c", |
2184 | | - "command": "C_Cpp.SwitchHeaderSource", |
2185 | | - "group": "other1_navigation@1" |
2186 | | - }, |
2187 | | - { |
2188 | | - "when": "editorLangId == cpp", |
| 2193 | + "when": "editorLangId == 'c' || editorLangId == 'cpp' || editorLangId == 'cuda-cpp'", |
2189 | 2194 | "command": "C_Cpp.SwitchHeaderSource", |
2190 | 2195 | "group": "other1_navigation@1" |
2191 | 2196 | }, |
2192 | 2197 | { |
2193 | | - "when": "editorLangId == c", |
| 2198 | + "when": "editorLangId == 'c' || editorLangId == 'cpp' || editorLangId == 'cuda-cpp'", |
2194 | 2199 | "command": "workbench.action.gotoSymbol", |
2195 | 2200 | "group": "other1_navigation@3" |
2196 | 2201 | }, |
2197 | 2202 | { |
2198 | | - "when": "editorLangId == cpp", |
2199 | | - "command": "workbench.action.gotoSymbol", |
2200 | | - "group": "other1_navigation@3" |
2201 | | - }, |
2202 | | - { |
2203 | | - "when": "editorLangId == c", |
2204 | | - "command": "workbench.action.showAllSymbols", |
2205 | | - "group": "other1_navigation@4" |
2206 | | - }, |
2207 | | - { |
2208 | | - "when": "editorLangId == cpp", |
| 2203 | + "when": "editorLangId == 'c' || editorLangId == 'cpp' || editorLangId == 'cuda-cpp'", |
2209 | 2204 | "command": "workbench.action.showAllSymbols", |
2210 | 2205 | "group": "other1_navigation@4" |
2211 | 2206 | }, |
2212 | 2207 | { |
2213 | | - "when": "editorLangId == cpp", |
2214 | | - "command": "C_Cpp.BuildAndDebugActiveFile", |
2215 | | - "group": "other2_debug@1" |
2216 | | - }, |
2217 | | - { |
2218 | | - "when": "editorLangId == c", |
| 2208 | + "when": "editorLangId == 'c' || editorLangId == 'cpp' || editorLangId == 'cuda-cpp'", |
2219 | 2209 | "command": "C_Cpp.BuildAndDebugActiveFile", |
2220 | 2210 | "group": "other2_debug@1" |
2221 | 2211 | } |
|
2237 | 2227 | "editor.suggest.insertMode": "replace", |
2238 | 2228 | "editor.semanticHighlighting.enabled": true |
2239 | 2229 | }, |
| 2230 | + "[cuda-cpp]": { |
| 2231 | + "editor.wordBasedSuggestions": false, |
| 2232 | + "editor.suggest.insertMode": "replace", |
| 2233 | + "editor.semanticHighlighting.enabled": true |
| 2234 | + }, |
2240 | 2235 | "[c]": { |
2241 | 2236 | "editor.wordBasedSuggestions": false, |
2242 | 2237 | "editor.suggest.insertMode": "replace", |
|
2381 | 2376 | }, |
2382 | 2377 | "scripts": { |
2383 | 2378 | "vscode:prepublish": "yarn run compile", |
2384 | | - "compile": "node ./tools/prepublish.js && gulp generate-native-strings && gulp translations-generate && webpack --mode production --vscode-nls", |
| 2379 | + "compile": "node ./tools/prepublish.js && gulp generate-native-strings && gulp translations-generate && webpack --mode production --env vscode_nls", |
2385 | 2380 | "compile-dev": "node ./tools/prepublish.js && gulp generate-native-strings && webpack --mode development", |
2386 | | - "compile-watch": "node ./tools/prepublish.js && gulp generate-native-strings && gulp translations-generate && webpack --mode production --vscode-nls --watch --info-verbosity verbose", |
2387 | | - "compile-dev-watch": "node ./tools/prepublish.js && gulp generate-native-strings && webpack --mode development --watch --info-verbosity verbose", |
| 2381 | + "compile-watch": "node ./tools/prepublish.js && gulp generate-native-strings && gulp translations-generate && webpack --mode production --env vscode_nls --watch --progress", |
| 2382 | + "compile-dev-watch": "node ./tools/prepublish.js && gulp generate-native-strings && webpack --mode development --watch --progress", |
2388 | 2383 | "generateOptionsSchema": "node ./tools/prepublish.js && node ./out/tools/generateOptionsSchema.js", |
2389 | 2384 | "generate-native-strings": "node ./tools/prepublish.js && gulp generate-native-strings", |
2390 | 2385 | "translations-export": "node ./tools/prepublish.js && gulp generate-native-strings && gulp translations-export", |
|
2404 | 2399 | "@octokit/rest": "^16.28.9", |
2405 | 2400 | "@types/minimatch": "^3.0.3", |
2406 | 2401 | "@types/mkdirp": "^0.5.2", |
2407 | | - "@types/mocha": "^5.2.7", |
| 2402 | + "@types/mocha": "^8.2.2", |
2408 | 2403 | "@types/node": "^14.14.0", |
2409 | 2404 | "@types/plist": "^3.0.2", |
2410 | 2405 | "@types/semver": "^7.1.0", |
2411 | 2406 | "@types/tmp": "^0.1.0", |
2412 | 2407 | "@types/vscode": "1.53.0", |
2413 | | - "@types/webpack": "^4.39.0", |
2414 | 2408 | "@types/which": "^1.3.2", |
2415 | 2409 | "@types/yauzl": "^2.9.1", |
2416 | 2410 | "@typescript-eslint/eslint-plugin": "^2.19.2", |
|
2428 | 2422 | "gulp-env": "^0.4.0", |
2429 | 2423 | "gulp-eslint": "^6.0.0", |
2430 | 2424 | "gulp-filter": "^6.0.0", |
2431 | | - "gulp-mocha": "^7.0.1", |
| 2425 | + "gulp-mocha": "^8.0.0", |
2432 | 2426 | "gulp-sourcemaps": "^2.6.5", |
2433 | 2427 | "gulp-typescript": "^5.0.1", |
2434 | 2428 | "http-proxy-agent": "^2.1.0", |
2435 | 2429 | "minimist": "^1.2.5", |
2436 | | - "mocha": "^5.2.0", |
| 2430 | + "mocha": "^8.3.2", |
2437 | 2431 | "parse5": "^5.1.0", |
2438 | 2432 | "parse5-traverse": "^1.0.3", |
2439 | | - "ts-loader": "^6.0.4", |
| 2433 | + "ts-loader": "^8.1.0", |
2440 | 2434 | "tslint": "^5.19.0", |
2441 | 2435 | "typescript": "^3.5.3", |
2442 | 2436 | "vscode-debugadapter": "^1.35.0", |
2443 | 2437 | "vscode-debugprotocol": "^1.35.0", |
2444 | 2438 | "vscode-nls-dev": "^3.2.6", |
2445 | 2439 | "vscode-test": "^1.3.0", |
2446 | | - "webpack": "^4.42.0", |
2447 | | - "webpack-cli": "^3.3.7", |
| 2440 | + "webpack": "^5.28.0", |
| 2441 | + "webpack-cli": "^4.5.0", |
2448 | 2442 | "xml2js": "^0.4.19" |
2449 | 2443 | }, |
2450 | 2444 | "dependencies": { |
|
2454 | 2448 | "https-proxy-agent": "^2.2.4", |
2455 | 2449 | "minimatch": "^3.0.4", |
2456 | 2450 | "mkdirp": "^0.5.1", |
2457 | | - "plist": "^3.0.1", |
| 2451 | + "plist": "^3.0.2", |
2458 | 2452 | "tmp": "^0.1.0", |
2459 | 2453 | "vscode-cpptools": "^5.0.0", |
2460 | 2454 | "vscode-extension-telemetry": "^0.1.2", |
|
2464 | 2458 | "yauzl": "^2.10.0" |
2465 | 2459 | }, |
2466 | 2460 | "resolutions": { |
2467 | | - "elliptic": "^6.5.4", |
2468 | | - "eslint/acorn": "^7.1.1", |
2469 | | - "gulp-eslint/acorn": "^7.1.1", |
2470 | | - "gulp-sourcemaps/acorn": "^5.7.4", |
2471 | | - "https-proxy-agent": "^2.2.4", |
2472 | | - "lodash": "^4.17.21", |
2473 | 2461 | "**/mkdirp/minimist": "^0.2.1", |
2474 | | - "node-fetch": "^2.6.1", |
2475 | | - "plist/xmldom": "^0.5.0", |
2476 | | - "webpack/acorn": "^6.4.1", |
2477 | | - "webpack/terser-webpack-plugin": "^1.4.5", |
2478 | 2462 | "yargs-parser": "^15.0.1", |
2479 | 2463 | "y18n": "^5.0.5" |
2480 | 2464 | }, |
|
0 commit comments