Skip to content

Commit

Permalink
Merge pull request #28 from Myzel394/add-vboxsf
Browse files Browse the repository at this point in the history
  • Loading branch information
Myzel394 authored Nov 3, 2024
2 parents 132efb0 + fd5749f commit a32900c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
22 changes: 22 additions & 0 deletions server/common-documentation/mnt-vboxsf.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package commondocumentation

import docvalues "config-lsp/doc-values"

var VboxsfDocumentationAssignable = docvalues.MergeKeyEnumAssignmentMaps(FatDocumentationAssignable, map[docvalues.EnumString]docvalues.DeprecatedValue{
docvalues.CreateEnumStringWithDoc(
"iocharset",
"This option sets the character set used for I/O operations. Note that on Linux guests, if the iocharset option is not specified, then the Guest Additions driver will attempt to use the character set specified by the CONFIG_NLS_DEFAULT kernel option. If this option is not set either, then UTF-8 is used.",
): docvalues.EnumValue{
EnforceValues: true,
Values: AvailableCharsets,
},
docvalues.CreateEnumStringWithDoc(
"convertcp",
"This option specifies the character set used for the shared folder name. This is UTF-8 by default.",
): docvalues.EnumValue{
EnforceValues: true,
Values: AvailableCharsets,
},
})

var VboxsfDocumentationEnums = []docvalues.EnumString{}
4 changes: 4 additions & 0 deletions server/handlers/fstab/fields/mountoptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,10 @@ var MountOptionsMapField = map[string]optionField{
Enums: commondocumentation.UmsdosDocumentationEnums,
Assignable: commondocumentation.UmsdosDocumentationAssignable,
},
"vboxsf": {
Enums: commondocumentation.VboxsfDocumentationEnums,
Assignable: commondocumentation.VboxsfDocumentationAssignable,
},
"vfat": {
Enums: commondocumentation.VfatDocumentationEnums,
Assignable: commondocumentation.VfatDocumentationAssignable,
Expand Down
2 changes: 1 addition & 1 deletion server/root-handler/shared/indexes.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type LanguageOverwrite struct {
Language SupportedLanguage

// The start of the overwrite
Raw string
Raw string
Line uint32
Character uint32
}
Expand Down

0 comments on commit a32900c

Please sign in to comment.