-
Notifications
You must be signed in to change notification settings - Fork 0
/
extension.js
70 lines (68 loc) · 5.08 KB
/
extension.js
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
const vscode = require("vscode");
const keys = {
version: "[Data version](https://minecraft.wiki/w/Data_version) of the client version this file was last saved in; used for upgrading default settings. (numeric)",
autoJump: "Whether auto-jump is enabled",
autoSuggestions: "True if brigadier's command suggestion UI should always be shown, instead of just when pressing tab",
chatColors: "Whether colored chat is allowed",
chatLinks: "Whether links show as links or just text in the chat",
chatLinksPrompt: "Whether clicking on links in chat needs confirmation before opening them",
enableVsync: "Whether [v-sync](https://en.wikipedia.org/wiki/Screen_tearing#V-sync) (vertical synchronization) is enabled",
entityShadows: "Whether to display entity shadows",
forceUnicodeFont: "Whether Unicode font should be used",
discrete_mouse_scroll: "Ignores scrolling set by operating system",
invertYMouse: "Whether mouse is inverted or not",
realmsNotifications: "Whether Realms invites are alerted on the main menu",
reducedDebugInfo: "Whether to show reduced information on the [Debug screen](https://minecraft.wiki/w/Debug_screen)",
showSubtitles: "If [subtitles](https://minecraft.wiki/w/Subtitles) are shown",
directionalAudio: " If [Directional Audio](https://en.wikipedia.org/wiki/Directional_sound) is enabled",
touchscreen: "Whether touchscreen controls are used",
fullscreen: "Whether the game attempts to go fullscreen at startup",
bobView: "Whether or not the camera bobs up and down as the player walks",
toggleCrouch: "Whether the sneak key must be pressed or held to activate sneaking",
toggleSprint: "Whether the sprint key must be pressed or held to activate sprinting",
darkMojangStudiosBackground: "Whether the Mojang Studios loading screen will appear monochrome",
hideLightningFlashes: " Hide lightning flashes (visual effect)",
mouseSensitivity: "How much a mouse movement changes the position of the camera",
fov: "How large the field of view is (floating-point). The in-game value is counted in degrees, however, the *options.txt* isn't. The value is converted into degrees with the following formula: `degrees = 40 * value + 70`",
screenEffectScale: "Distortion Effects (how intense the effects of [Nausea](https://minecraft.wiki/w/Nausea) and [nether portals](https://minecraft.wiki/w/Nether_portal) are)",
fovEffectScale: "FOV Effects (how much the field of view changes when sprinting, having [Speed](https://minecraft.wiki/w/Speed) or [Slowness](https://minecraft.wiki/w/Slowness) etc.)",
darknessEffectScale: "Darkness Pulsing (how much the [Darkness](https://minecraft.wiki/w/Darkness) effect pulses)",
gamma: "Brightness",
renderDistance: "The render distance in the chunk radius from the player",
simulationDistance: "The simulation distance in the chunk radius from the player",
entityDistanceScaling: "The maximum distance from the player that entities render",
guiScale: "Size of interfaces",
particles: "Amount of particles (such as rain, potion effects, etc.)",
maxFps: "The maximum framerate",
graphicsMode: "Whether Fast (less detailed), Fancy (more detailed), or Fabulous! (most detailed) graphics are turned on",
ao: "Smooth lighting",
prioritizeChunkUpdates: "Chunk section update strategy",
biomeBlendRadius: "Radius for which biome blending should happen",
renderClouds: "Whether to display [clouds](https://minecraft.wiki/w/Clouds",
resourcePacks: "A list of active resource packs, with pack names in quotes, separated with commas",
incompatibleResourcePacks: "A list of active resource packs that are marked as incompatible with the current _Minecraft_ version, with pack names in quotes, separated with commas",
lastServer: "Address of last server used with Direct Connection",
lang: "Language to be used",
soundDevice: "Sound device to be used",
chatVisibility: "What is seen in chat",
chatOpacity: "Opacity of the chat",
chatLineSpacing: "Spacing between text in chat",
textBackgroundOpacity: "Opacity of text background",
backgroundForChatOnly: "Toggles if the background is only in chat or if it's everywhere",
hideServerAddress: "Has no effect in modern versions",
advancedItemTooltips:
"Whether hovering over items in the [inventory](https://minecraft.wiki/w/Inventory) shows its [ID](https://minecraft.wiki/w/Java_Edition_data_values) and [durability](https://minecraft.wiki/w/Item_durability); toggled by pressing `F3` + `H`",
pauseOnLostFocus: "Whether switching out of _Minecraft_ without pressing `Esc` or opening an in-game interface automatically pauses the game; toggled by pressing `F3` + `P`",
overrideWidth: "Width to open _Minecraft_ with in pixels (0 means default to the _Minecraft_ settings); no in-game control",
};
vscode.languages.registerHoverProvider("options-txt", {
provideHover(document, position, _token) {
const line = document.lineAt(position);
for (var k in keys) {
if (line.text.startsWith(k)) {
return new vscode.Hover(`**${k}**\n\n${keys[k]}`);
}
}
return new vscode.Hover("*Unknown option key*");
},
});