visual-studio-code

How to get VScode recognize d.ts files without referencing them directly

孤街浪徒 提交于 2020-12-29 03:50:18
问题 I have a project created with create-react-app-ts I also have a set of d.ts files that are generated interfaces from JSON-schema. They define some interfaces for a remote API. I would like these d.ts file to be "globally" available throughout the project, without the need to directly reference them by file name. Somewhat similar to how Promise<T> definition is available globally. I've tried modifying tsconfig , added path/to/**/*.dts to include , as well as in files . I also tried adding path

VScode remote connection error: The process tried to write to a nonexistent pipe

荒凉一梦 提交于 2020-12-28 06:56:36
问题 I use vscode with remote-ssh to connect my server, after configuring, I want to connect my host, but it failed, the dialog box display:"could not establish connection to XX, The process tried to write to a nonexistent pipe." output: [16:45:20.916] Log Level: 3 [16:45:20.936] remote-ssh@0.49.0 [16:45:20.936] win32 x64 [16:45:20.944] SSH Resolver called for "ssh-remote+aliyun", attempt 1 [16:45:20.945] SSH Resolver called for host: aliyun [16:45:20.945] Setting up SSH remote "aliyun" [16:45:21

VScode remote connection error: The process tried to write to a nonexistent pipe

心不动则不痛 提交于 2020-12-28 06:52:17
问题 I use vscode with remote-ssh to connect my server, after configuring, I want to connect my host, but it failed, the dialog box display:"could not establish connection to XX, The process tried to write to a nonexistent pipe." output: [16:45:20.916] Log Level: 3 [16:45:20.936] remote-ssh@0.49.0 [16:45:20.936] win32 x64 [16:45:20.944] SSH Resolver called for "ssh-remote+aliyun", attempt 1 [16:45:20.945] SSH Resolver called for host: aliyun [16:45:20.945] Setting up SSH remote "aliyun" [16:45:21

Insufficient permissions in vscode

故事扮演 提交于 2020-12-27 08:54:47
问题 How do I resolve the vs code Insufficient permission issue when saving a file I've given appropriate permissions to code directory: chown -R me:staff my-app/ But when I open vscode and try to save a file it says "Insufficient permissions, Retry as admin" If I launch vscode with sudo from cmd line sudo code . then I dont get that error but then the autocompletion extensions dont seem to work 回答1: You should add your User or the User who is currently logged in to the folder and grant Read and

vscode keyboard shortcut to navigate in the peek windows

冷暖自知 提交于 2020-12-26 11:08:37
问题 VSCode has a number of peek functions (peek definition, implementation) so on. This opens a new peek window and a small file view on the right Is there any keyboard shortcut which I can use to navigate to the editor peek window (the one that pops up) and the file navigation on the right. 回答1: Ctrl + K F2 ( togglePeekWidgetFocus ) can be used to focus the left panel of the peek view or to go from the left panel to the right panel (the file list view). Whenever I open the peek view focus is

vscode keyboard shortcut to navigate in the peek windows

僤鯓⒐⒋嵵緔 提交于 2020-12-26 11:07:19
问题 VSCode has a number of peek functions (peek definition, implementation) so on. This opens a new peek window and a small file view on the right Is there any keyboard shortcut which I can use to navigate to the editor peek window (the one that pops up) and the file navigation on the right. 回答1: Ctrl + K F2 ( togglePeekWidgetFocus ) can be used to focus the left panel of the peek view or to go from the left panel to the right panel (the file list view). Whenever I open the peek view focus is

Flutter failed for task app:mergeDebugNativeLibs and app:mergeDebugJavaResource

試著忘記壹切 提交于 2020-12-26 08:29:18
问题 FAILURE: Build completed with 2 failures. 1: Task failed with an exception. What went wrong: Execution failed for task ':app:mergeDebugNativeLibs'. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade File 'com.android.builder.files.ZipCentralDirectory@6f58452a' was deleted, but previous version not found in cache Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get

Match the beginning of a file in a VSCode regex search

回眸只為那壹抹淺笑 提交于 2020-12-26 08:12:51
问题 I'm trying to match the beginning of a file in a VSCode regex search to find and remove the following pattern: // Anything else to leave in place etc. I'd like to remove the first line in all files that contain //\n as the first characters. However when I perform a regex search for //\n it matches all occurences in all files obviously, regardless of their position in the file. The regex language mentions the existence of \A to match the beginning of a line, or file in some editors, but VSCode

Failed to open /qemu.conf, err: 2

[亡魂溺海] 提交于 2020-12-26 07:55:29
问题 I got this error while using windows command prompt to connect a android virtual device to visual studio code. However opens the android virtual device but still says no connected devices when run the flutter doctor command. please help to use a android virtual device for visual studio code. 回答1: This error occur because there is a query for file in C:\qemu.conf path. If you create a blank file the warning Failed to open /qemu.conf, err: 2 will desapear. But in my tests, I needed to run as an

Autocomplete not working well in visual studio code

扶醉桌前 提交于 2020-12-26 07:43:48
问题 I'm getting started with Visual Studio Code and have been a user of Atom. One thing I've noticed, particularly with autocomplete for PHP, I have to scroll through a list of options in order to find the option to automatically fill in code. I want to get the autocomplete just by hitting tab. Say, for example, I want to make an if statement. In Atom, I just type "if" then hit tab and it will fill in the code with everything I need. In VS Code, if I type "if" followed by tab, nothing will happen