[feat] Directory whiteList Settings
CoffeeChaton opened this issue · comments
In addition to the current workspace, automatically scan the Folder,
For people who are not used to Multi-root Workspaces
-
warn! this option is allow this extension try to the get file information by
#include
without workspaces. (privacy-statement) -
still respect
"AhkNekoHelp.files.exclude"
(blackList)
path | Description |
---|---|
D:/myAutoHotkey/Lib |
any path |
{ // settings.json
"AhkNekoHelp.files.alwaysIncludeFolder": [
"D:\\Q2", // folder path
"D:/Q3", // use Linux-style separator Char is OK
] // string[] as path[]
}
I want to be precise, will autocomplete from files in these directories always or only if they are connected through #include
?
I want to be precise, will autocomplete from files in these directories always or only if they are connected through
#include
?
- This option does not require the use of
#include
. It is inspired by AutoHotkey, where certain elements are automatically obtained without the need for#Include
. (Refer to the AutoHotkey documentation.) - To enable the parser's
#include
option, useAhkNekoHelp.files.tryParserIncludeOpt
. (See Issue #16.)
@CoffeeChaton, what do I have to do to make this 100% work? Right now it doesn't work for all #include. What information should I provide?
You should ask at [#16], since this option has nothing to do with #include
.
#21
"AhkNekoHelp.files.alwaysIncludeFolder"
This option is used to specify the starting folder for recursive scanning, excluding the current workspace. The following pseudocode illustrates this:
code at https://github.com/CoffeeChaton/vscode-autohotkey-NekoHelp/blob/main/src/tools/fsTools/getUriList.ts
#16
"AhkNekoHelp.file.tryParserIncludeOpt"
Absolute path
like#Include C:\My Documents\Scripts\Utility Subroutines.ahk
%A_LineFile% style
like#Include %A_LineFile%\..\ahk_test.ahk
- (beta) try to parser
relative path
, like#Include b.ahk
vscode-autohotkey-NekoHelp/src/AhkSymbol/CAhkInclude.ts
Lines 67 to 92 in f360f71
vscode-autohotkey-NekoHelp/src/command/UpdateCache.ts
Lines 53 to 65 in f360f71