Git Product home page Git Product logo

1thenikita / visual-studio Goto Github PK

View Code? Open in Web Editor NEW
94.0 5.0 33.0 391 KB

A Discord Rich Presence extension for both Visual Studio 2017 and 2019.

Home Page: https://marketplace.visualstudio.com/items?itemName=VisualDevelopment.drpcvs2019

License: GNU Affero General Public License v3.0

C# 100.00%
discord rpc rich-presence visual-studio extension csharp vs-extension vs visual-studio-extension

visual-studio's Introduction

DiscordRPCVS for Visual Studio

This extension enables on Discord Rich Presence for Visual Studio 2017 and 2019.

As you're developing, this extension will automatically update your status on Discord to tell the world what you're coding.

You can install the latest release here

Here's a demonstration of how it looks in Discord

Features

  • Displays what file you're editing in Visual Studio.
  • Displays what project you're working with.
  • Support for popular languages such as F#, C#, C++, VB, Javascript, Python, Go, PHP and more.
  • Shows how long you've been editing a particular file.
  • The ability to toggle the display of file names, solutions, and timestamps in your Discord Rich Presence.
  • The ability to toggle whether or not your timestamp resets on Discord when switching files.
  • The ability to toggle whether to use large or small images for your file type.
  • The ability to turn Rich Presence completely on or off.
  • The ability to toggle it starting up at startup.
  • The ability to use secret mode.
  • Ability to use different languages. Available languages: English, Russian, Hungarian and Polish

Toggling Display

A neat feature with this extension compared to others is you can completely customize your Rich Presence and display only what you want.

Here's a demonstration of the settings

Contributing

As I'm sure more languages and file types are wanted to be supported you can feel free to request a feature.

visual-studio's People

Contributors

1thenikita avatar czompi avatar sirdx avatar visualehrmanntraut avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

visual-studio's Issues

Extension settings are reset on every VS update

Describe the bug
When VS applies a new update, DiscrodRPC settings are reset to defaults.

To Reproduce
Steps to reproduce the behavior:

  1. Change settings
  2. Install VS update
  3. Randomly notice that your Secret Mode is disabled again

Expected behavior
Settings are preserved between updates, like for every other extension

Desktop (please complete the following information):

  • OS: Windows 10 2004, but it doesn't really matter
  • Browser: ???
  • Extension Version: 5.3

Additional context
I've yet to test if changing the components through vs installer affects the extension in the same way.

C files not supported

Bug description:

C files are not supported by the extension.

Reproduction steps:

Expected behavior:

C files should be supported.

Per project settings

If it's possible having settings per project would be great. There are some projects that I work on that I'm not allowed to discuss and then there are others that I can. For example, I might want project A to be secret and project B not to be secret.

Also, the ability to change the secret message would be cool also.

F# unrecognizable extension

Overview
Discord is showing the icon for an unrecognizable document when editing F# files.

Steps to reproduce the behavior

  1. Open any F# file.
  2. Start editing.
  3. Check your profile status in discord.

Expected behavior
Discord is showing the F# icon when editing *.fs, *.fsx, *.fsi, *.fsscript files.

Screenshots
Discord status

Desktop

  • OS: Windows 10 x64 v.1909 build 18363.778
  • Discord: Stable 60561 (0224963)
  • Visual Studio: Community 2019 v.16.6.0

how to change language

"Ability to use different languages. Available languages: English and Russian."

How can I change the language from Russian to English? Because my language is automatically set to Russian, although the visual studio is in English.

Time counter reseting.

Bug Description:
The timer is reseted after 24hours, once visual studio is open for 24hours the timer just goes back to 00:00 and starts all over again instead of continuing.

Reproduction steps:
Leave it open for 24h.

Expected behavior:
Either count days, or keep counting past 24h

  • OS: Windows 10 Enterprise Build 19043.1706
  • Visual Studio 2019
  • Extension Version: 5.5

Images in the README are broken and not showing up

Bug description:

When you visit the homepage of the repository or the Visual Studio Marketplace, the image links are dead!

Reproduction steps:

  1. Go to the homepage of the repository or the Visual Studio Marketplace,
  2. Notice the image links are dead.

Expected behavior:

The image links show up, but they are dead.

Screenshots:

image
image

Desktop (please complete the following information):

  • OS: Windows 10 2004 Build 19041.329
  • Browser: Firefox 78.0.1

Additional context:

The image CDN is dead

VB.NET files support

Is your feature request related to a problem? Please describe:
Discord is showing icon for an unrecognized extension when editing *.vb files.

Solution:
Add recognition of .vb files.

Additional context:
VB Icon
image

[Help] How to toggle the extension options

Hello,

Sorry if my question is really stupid but I couldn't figure out how to change the settings of the extension once it's installed. I want to disable the time reset when I switch files but have no idea where to access these settings in Visual Studio 2019. If I go to Manage Extensions from the top menu bar there are only options to Disable or Uninstall extensions but there is no options/settings button.

Greetings,
Simeon

editing folder cuts off file name

Bug description:

when working in a project without a .sln file (choosing open folder option in the launcher) text fallowing a decimal point will be trimmed

Reproduction steps:

Steps to reproduce the behavior:

  1. create a folder on your computer called something.something.io
  2. right click folder
  3. select open folder in visual studio
  4. look at your discord status, notice that only something.something is displayed in the current solution section

Expected behavior:

something.something.io would be displayed

Screenshots:
the solution is shown in VS as:
actual solution name
and rendered on discord as:
discord status

Desktop

  • OS: Windows 10 20h2
  • Visual Studio 2019 v16.6.9
  • Extension Version:5.5

Can't load the extension in VS2017 correctly

Clicking on Discord Rich Presence -> Settings... does nothing.

Log entry from ActivityLog.xml :

  <entry>
    <record>1868</record>
    <time>2019/06/20 03:17:16.572</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [DiscordRPCVSPackage]Source: &apos;mscorlib&apos; Description: Impossible de charger le fichier ou l&apos;assembly &apos;Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; ou une de ses d&#x00E9;pendances. Le fichier sp&#x00E9;cifi&#x00E9; est introuvable.&#x000D;&#x000A;System.IO.FileNotFoundException: Impossible de charger le fichier ou l&apos;assembly &apos;Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; ou une de ses d&#x00E9;pendances. Le fichier sp&#x00E9;cifi&#x00E9; est introuvable.&#x000D;&#x000A;Nom de fichier&#x00A0;: &apos;Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos;&#x000D;&#x000A;   &#x00E0; System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)&#x000D;&#x000A;   &#x00E0; System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)&#x000D;&#x000A;   &#x00E0; System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)&#x000D;&#x000A;   &#x00E0; System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)&#x000D;&#x000A;&#x000D;&#x000A;AVT&#x00A0;: la journalisation de liaison d&apos;assembly est d&#x00E9;sactiv&#x00E9;e.&#x000D;&#x000A;Pour activer la journalisation des &#x00E9;checs de liaison d&apos;assembly, attribuez la valeur 1 &#x00E0; la valeur de Registre [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD).&#x000D;&#x000A;Remarque&#x00A0;: une certaine perte de performance est associ&#x00E9;e &#x00E0; l&apos;enregistrement dans le journal des &#x00E9;checs de liaison d&apos;assembly.&#x000D;&#x000A;Pour d&#x00E9;sactiver cette fonctionnalit&#x00E9;, supprimez la valeur de Registre [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</description>
    <guid>{AB4ABBBF-2C58-4FB3-8D6F-651811A796AA}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo></errorinfo>
  </entry>

Idling Always being shown next to the Project/Solution Name

Bug description:

It's adding Idling next to my Project/ Solution name while i'm actively working on it.

Reproduction steps:

Steps to reproduce the behavior:

  1. Install The Extension
  2. Open a Project via a Solution (.sln file)
  3. Look on Discord
  4. Constantly See Idling next to the Solution/Project name

Expected behavior:

Idling Should only be shown, if i didn't edit anything in a while

Screenshots:

DiscordCanary_BacZ85BcqD

Desktop (please complete the following information):

  • Windows 10 Pro 20H2 19042.804
  • Microsoft Visual Studio Community 2019 Version 16.9.0
  • 5.5

Additional context

Discord Rich not showing in tools tab

The extension is working but I can't configure anymore because it isn't in my Tools tab.

Untitled

I tried to uninstall/install the extensiona , delete all extensions files and after repair VS but still the option isn't in the tools tab.

Error message "bad exception"

Bug description:

Visual Studio 2019 Preview will show an error message saying "bad exception" when trying to close the app when there's a unsaved file while using this extension.

Visual Studio won't quit afterwards without crashing it via task manager.

Reproduction steps:

Steps to reproduce the behavior:

  1. Edit any file on visual studio
  2. Close the app without saving
  3. See error message

Expected behavior:

A prompt to quit, shows unsaved file, then quit successfully.

Screenshots:

https://imgur.com/a/kvM4PwR

Desktop:

  • OS: Windows 10 Pro 20H2 Build 19042.928
  • Visual Studio Community 2019 Preview, Version 16.10.0 Preview 1.0
  • Extension Version 5.5

Additional context

Log: https://pastebin.com/7tAqpU3B

Fun fact, if you editing another file after the error show and going back to the unsaved file, it will freeze VS and crash it.

Thanks!

Support for F# files

Feature/BugFix

I have tested the program file with .fs extension and script file with .fsx extension in Visual Studio 2017 but it
displays unrecognized files when I am editing both type of files instead of showing the F# logo.

Discord RPC fails to load, possible fix

Bug description:

Discord RPC fails to connect.

Reproduction steps:
I've been trying to get it to work for a while now, but I noticed that it just won't work if another user is logged in to discord on the same computer.

** Solution **
After signing out that user everything works as expected.

I've seen so many issues that it just wouldn't connect so I thought this might be a possible fix ( if you're not already aware of it ), so just in-case <3

Empty timestamps after disabling "Reset timestamps on file change"

Bug description: Timestamps becomes missing from Discord Presence when "Reset timestamps on file change" is disabled after time starts counting.

Reproduction steps:

Steps to reproduce the behavior:

  1. Make sure "Reset timestamps on file change" is enabled first, edit some files and check that the time is running
  2. Uncheck "Reset timestamps on file change" and save the settings
  3. Bam! Timestamps is missing from the Discord Rich Presence

Expected behavior:

When disabled, shouldn't the current timestamps become the initial timestamps, keep the current timestamps, or reset the timestamps?

Screenshots:
image

Desktop (please complete the following information):

  • OS: Windows 10 1809 Build 17763.1637
  • Visual Studio 2019 Version 16.7.5
  • 5.3

Additional context

Idling status does not update

Bug description:
The idling status does not update when closing all files

Reproduction steps:
Open VS 2019 with all the files closed in your project, you will get idling status. However, if you open a file and then close all of them, you won't get that same stuff. You would rather get the status of the last file you closed.
image

Desktop (please complete the following information):

  • OS: Windows 10 1909
  • Visual Studio 2019
  • v5.3

Additional context
Well nothing more, if you need more info you can ask me.

Background/Border Changes and Enhancements

Is your feature request related to a problem? Please describe:

No it is not a problem but, I've been using this RPC for a while now, and I've always wondered why is that the background is white and not a black border like This one for Visual Studio Code.

Solution:

Add similarity from This one for Visual Studio Code at least to it's border and how it handles the Big Imagine of the lang etc....

Alternatives tried:

None, as I have not been able to find another RPC that does it like This one for Visual Studio Code.

Additional context:

None.

Translate for RU

Problem:

I'm upset that this plugin doesn't have a translation in my language.

Solution:

How can I help with translation in my language?

Extension fails to load

Bug description:

The extension fails to load on VS startup.

Here is the stacktrace from ActivityLog.xml:

  <entry>
    <record>717</record>
    <time>2021/03/06 12:46:21.918</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [DiscordRPforVSPackage]Source: &apos;mscorlib&apos; Description: Could not load file or assembly &apos;Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;System.IO.FileNotFoundException: Could not load file or assembly &apos;Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; ou une de ses d&#x00E9;pendances. Le fichier sp&#x00E9;cifi&#x00E9; est introuvable.&#x000D;&#x000A;Nom de fichier&#x00A0;: &apos;Microsoft.VisualStudio.Shell.15.0, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos;&#x000D;&#x000A;   &#x00E0; System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)&#x000D;&#x000A;   &#x00E0; System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)&#x000D;&#x000A;   &#x00E0; System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)&#x000D;&#x000A;   &#x00E0; System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)&#x000D;&#x000A;&#x000D;&#x000A;AVT&#x00A0;: la journalisation de liaison d&apos;assembly est d&#x00E9;sactiv&#x00E9;e.&#x000D;&#x000A;Pour activer la journalisation des &#x00E9;checs de liaison d&apos;assembly, attribuez la valeur 1 &#x00E0; la valeur de Registre [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD).&#x000D;&#x000A;Remarque&#x00A0;: une certaine perte de performance est associ&#x00E9;e &#x00E0; l&apos;enregistrement dans le journal des &#x00E9;checs de liaison d&apos;assembly.&#x000D;&#x000A;Pour d&#x00E9;sactiver cette fonctionnalit&#x00E9;, supprimez la valeur de Registre [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</description>
    <guid>{AB4ABBBF-2C58-4FB3-8D6F-651811A796AA}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo></errorinfo>
  </entry>

Reproduction steps:

Steps to reproduce the behavior:

  1. Have the extension installed
  2. Launch Visual Studio 2017

Expected behavior:

The rich presence is showing on Discord and no error on startup.

Screenshots:

https://i.imgur.com/jOGJzVB.png

Desktop (please complete the following information):

  • OS: Windows 10 Professional Build 19042]
  • Visual Studio Professional 2017 Version 15.9.33
  • Extension Version 5.5

Additional context

None.

Can't load the extension in VS2017 correctly

Clicking on Discord Rich Presence -> Settings... does nothing.

Log entry from ActivityLog.xml :

<record>1948</record>
<time>2020/10/11 06:12:29.543</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [DiscordRPCVSPackage]Source: &apos;DiscordRPCVS&apos; Description: &#x041D;&#x0435; &#x0443;&#x0434;&#x0430;&#x043B;&#x043E;&#x0441;&#x044C; &#x0437;&#x0430;&#x0433;&#x0440;&#x0443;&#x0437;&#x0438;&#x0442;&#x044C; &#x0444;&#x0430;&#x0439;&#x043B; &#x0438;&#x043B;&#x0438; &#x0441;&#x0431;&#x043E;&#x0440;&#x043A;&#x0443; &quot;Microsoft.VisualStudio.Threading, Version=15.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; &#x043B;&#x0438;&#x0431;&#x043E; &#x043E;&#x0434;&#x043D;&#x0443; &#x0438;&#x0437; &#x0438;&#x0445; &#x0437;&#x0430;&#x0432;&#x0438;&#x0441;&#x0438;&#x043C;&#x043E;&#x0441;&#x0442;&#x0435;&#x0439;. &#x041D;&#x0435; &#x0443;&#x0434;&#x0430;&#x0435;&#x0442;&#x0441;&#x044F; &#x043D;&#x0430;&#x0439;&#x0442;&#x0438; &#x0443;&#x043A;&#x0430;&#x0437;&#x0430;&#x043D;&#x043D;&#x044B;&#x0439; &#x0444;&#x0430;&#x0439;&#x043B;.&#x000D;&#x000A;System.IO.FileNotFoundException: &#x041D;&#x0435; &#x0443;&#x0434;&#x0430;&#x043B;&#x043E;&#x0441;&#x044C; &#x0437;&#x0430;&#x0433;&#x0440;&#x0443;&#x0437;&#x0438;&#x0442;&#x044C; &#x0444;&#x0430;&#x0439;&#x043B; &#x0438;&#x043B;&#x0438; &#x0441;&#x0431;&#x043E;&#x0440;&#x043A;&#x0443; &quot;Microsoft.VisualStudio.Threading, Version=15.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; &#x043B;&#x0438;&#x0431;&#x043E; &#x043E;&#x0434;&#x043D;&#x0443; &#x0438;&#x0437; &#x0438;&#x0445; &#x0437;&#x0430;&#x0432;&#x0438;&#x0441;&#x0438;&#x043C;&#x043E;&#x0441;&#x0442;&#x0435;&#x0439;. &#x041D;&#x0435; &#x0443;&#x0434;&#x0430;&#x0435;&#x0442;&#x0441;&#x044F; &#x043D;&#x0430;&#x0439;&#x0442;&#x0438; &#x0443;&#x043A;&#x0430;&#x0437;&#x0430;&#x043D;&#x043D;&#x044B;&#x0439; &#x0444;&#x0430;&#x0439;&#x043B;.&#x000D;&#x000A;&#x0418;&#x043C;&#x044F; &#x0444;&#x0430;&#x0439;&#x043B;&#x0430;: &apos;Microsoft.VisualStudio.Threading, Version=15.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos;&#x000D;&#x000A;   &#x0432; DiscordRPCVS.DiscordRPCVSPackage.InitializeAsync(CancellationToken cancellationToken, IProgress`1 progress)&#x000D;&#x000A;   &#x0432; Microsoft.VisualStudio.Shell.AsyncPackage.&lt;&gt;c__DisplayClass16_0.&lt;&lt;Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize&gt;b__1&gt;d.MoveNext()&#x000D;&#x000A;--- &#x041A;&#x043E;&#x043D;&#x0435;&#x0446; &#x0442;&#x0440;&#x0430;&#x0441;&#x0441;&#x0438;&#x0440;&#x043E;&#x0432;&#x043A;&#x0430; &#x0441;&#x0442;&#x0435;&#x043A;&#x0430; &#x0438;&#x0437; &#x043F;&#x0440;&#x0435;&#x0434;&#x044B;&#x0434;&#x0443;&#x0449;&#x0435;&#x0433;&#x043E; &#x0440;&#x0430;&#x0441;&#x043F;&#x043E;&#x043B;&#x043E;&#x0436;&#x0435;&#x043D;&#x0438;&#x044F;, &#x0433;&#x0434;&#x0435; &#x0432;&#x043E;&#x0437;&#x043D;&#x0438;&#x043A;&#x043B;&#x043E; &#x0438;&#x0441;&#x043A;&#x043B;&#x044E;&#x0447;&#x0435;&#x043D;&#x0438;&#x0435; ---&#x000D;&#x000A;   &#x0432; Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)&#x000D;&#x000A;   &#x0432; Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)&#x000D;&#x000A;   &#x0432; Microsoft.VisualStudio.Services.VsTask.GetResult()&#x000D;&#x000A;&#x000D;&#x000A;&#x041F;&#x0440;&#x0435;&#x0434;&#x0443;&#x043F;&#x0440;&#x0435;&#x0436;&#x0434;&#x0435;&#x043D;&#x0438;&#x0435;: &#x0440;&#x0435;&#x0433;&#x0438;&#x0441;&#x0442;&#x0440;&#x0430;&#x0446;&#x0438;&#x044F; &#x043F;&#x0440;&#x0438;&#x0432;&#x044F;&#x0437;&#x043A;&#x0438; &#x0441;&#x0431;&#x043E;&#x0440;&#x043E;&#x043A; &#x0432;&#x044B;&#x043A;&#x043B;&#x044E;&#x0447;&#x0435;&#x043D;&#x0430;.&#x000D;&#x000A;&#x0427;&#x0442;&#x043E;&#x0431;&#x044B; &#x0432;&#x043A;&#x043B;&#x044E;&#x0447;&#x0438;&#x0442;&#x044C; &#x0440;&#x0435;&#x0433;&#x0438;&#x0441;&#x0442;&#x0440;&#x0430;&#x0446;&#x0438;&#x044E; &#x043E;&#x0448;&#x0438;&#x0431;&#x043E;&#x043A; &#x043F;&#x0440;&#x0438;&#x0432;&#x044F;&#x0437;&#x043A;&#x0438; &#x0441;&#x0431;&#x043E;&#x0440;&#x043E;&#x043A;, &#x0443;&#x0441;&#x0442;&#x0430;&#x043D;&#x043E;&#x0432;&#x0438;&#x0442;&#x0435; &#x0437;&#x043D;&#x0430;&#x0447;&#x0435;&#x043D;&#x0438;&#x0435; &#x043F;&#x0430;&#x0440;&#x0430;&#x043C;&#x0435;&#x0442;&#x0440;&#x0430; &#x0440;&#x0435;&#x0435;&#x0441;&#x0442;&#x0440;&#x0430; [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) &#x0432; 1.&#x000D;&#x000A;&#x041F;&#x0440;&#x0438;&#x043C;&#x0435;&#x0447;&#x0430;&#x043D;&#x0438;&#x0435;. &#x0420;&#x0435;&#x0433;&#x0438;&#x0441;&#x0442;&#x0440;&#x0430;&#x0446;&#x0438;&#x044F; &#x043E;&#x0448;&#x0438;&#x0431;&#x043E;&#x043A; &#x043F;&#x0440;&#x0438;&#x0432;&#x044F;&#x0437;&#x043A;&#x0438; &#x0441;&#x0431;&#x043E;&#x0440;&#x043E;&#x043A; &#x043C;&#x043E;&#x0436;&#x0435;&#x0442; &#x043F;&#x0440;&#x0438;&#x0432;&#x0435;&#x0441;&#x0442;&#x0438; &#x043A; &#x043D;&#x0435;&#x043A;&#x043E;&#x0442;&#x043E;&#x0440;&#x043E;&#x043C;&#x0443; &#x0441;&#x043D;&#x0438;&#x0436;&#x0435;&#x043D;&#x0438;&#x044E; &#x043F;&#x0440;&#x043E;&#x0438;&#x0437;&#x0432;&#x043E;&#x0434;&#x0438;&#x0442;&#x0435;&#x043B;&#x044C;&#x043D;&#x043E;&#x0441;&#x0442;&#x0438;.&#x000D;&#x000A;&#x0427;&#x0442;&#x043E;&#x0431;&#x044B; &#x043E;&#x0442;&#x043A;&#x043B;&#x044E;&#x0447;&#x0438;&#x0442;&#x044C; &#x044D;&#x0442;&#x0443; &#x0444;&#x0443;&#x043D;&#x043A;&#x0446;&#x0438;&#x044E;, &#x0443;&#x0434;&#x0430;&#x043B;&#x0438;&#x0442;&#x0435; &#x043F;&#x0430;&#x0440;&#x0430;&#x043C;&#x0435;&#x0442;&#x0440; &#x0440;&#x0435;&#x0435;&#x0441;&#x0442;&#x0440;&#x0430; [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</description>
<guid>{AB4ABBBF-2C58-4FB3-8D6F-651811A796AA}</guid>
<hr>80070002</hr>
<errorinfo></errorinfo>

C files not supported part 2

Bug description:

I don't know why you close issues for no reason. C files are not supported. The source code is almost correct, but it seems that you should use another value for the key ".C". I used "c file" and "C file" and it works, but it doesn't display anything because it's not a valid image file name of course. So, maybe you should reupload the image for the C file.

EDIT:

Workaround: edit the "Constants.cs" source file and modify the value for the key ".C" to: "cpp" and "C file". This way it shows a c++ image but the tooltip text would be "C file"

Visual Studio 2019 fails to load

Bug description:
Here's the error report from ActivityLog.xml:

<record>408</record>
<time>2022/01/31 14:02:03.198</time>
<type>Error</type>
<source>VisualStudio</source>
<description>CreateInstance failed for package [DiscordRPforVSPackage]Source: &apos;mscorlib&apos; Description: Exception has been thrown by the target of an invocation.&#x000D;&#x000A;System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; System.IO.FileNotFoundException: Could not load file or assembly &apos;Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;   at DiscordRPC.DiscordRpcClient..ctor(String applicationID, Int32 pipe, ILogger logger, Boolean autoEvents, INamedPipeClient client)&#x000D;&#x000A;   at DiscordRPforVS.DiscordRPforVSPackage..ctor()&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean&amp; canBeCached, RuntimeMethodHandleInternal&amp; ctor, Boolean&amp; bNeedSecurityCheck)&#x000D;&#x000A;   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(Type type, Boolean nonPublic)&#x000D;&#x000A;   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark&amp; stackMark)&#x000D;&#x000A;   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)&#x000D;&#x000A;   at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)&#x000D;&#x000A;   at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)System.IO.FileNotFoundException: Could not load file or assembly &apos;Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;File name: &apos;Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed&apos;&#x000D;&#x000A;   at DiscordRPC.DiscordRpcClient..ctor(String applicationID, Int32 pipe, ILogger logger, Boolean autoEvents, INamedPipeClient client)&#x000D;&#x000A;   at DiscordRPforVS.DiscordRPforVSPackage..ctor()&#x000D;&#x000A;&#x000D;&#x000A;WRN: Assembly binding logging is turned OFF.&#x000D;&#x000A;To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.&#x000D;&#x000A;Note: There is some performance penalty associated with assembly bind failure logging.&#x000D;&#x000A;To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</description>
<guid>{AB4ABBBF-2C58-4FB3-8D6F-651811A796AA}</guid>
<hr>80004005 - E_FAIL</hr>
<errorinfo></errorinfo>

Reproduction steps:

Steps to reproduce the behavior:

Install from here https://github.com/1thenikita/Visual-Studio/releases/tag/5.5.4
Load Visual Studio 2019.
Enable Discord Rich Presence.

Expected behavior:

No error on startup.

Screenshots:

The Error.

Desktop (please complete the following information):

OS: Windows 11
Visual Studio 2019
Extension Version: 5.5.4

Additional context

None

VB.NET unrecognized extension

Bug description:

Discord is showing icon for an unrecognized extension when editing *.vb files.

Reproduction steps:

  1. Open any *.vb file.
  2. Start editing.
  3. Check profile status in discord.

Expected behavior:

Show VB icon when editing *.vb file.

Screenshots:

image

Desktop:

  • OS: Windows 10 1909 Build 18363.1016
  • Visual Studio: Community 2019 Version 16.7.1
  • Extension Version: 5.3

Add AngelScript to the list of supported languages

As I can see from the way the languages/extensions are handled, this would be as easy to add another entry to the Dictionary in Constants.cs. I'd have done this myself and submitted a pull request but I couldn't understand how the language images are sent to discord. (Or where they are stored)

If you could provide me some background information on the language images, I can do the necessary changes and create a PR. Thank you.

Visual Studio 2017 fails to load like in #23

Bug description:

Here's the error report from ActivityLog.xml:

  <entry>
    <record>1549</record>
    <time>2021/02/17 21:52:54.580</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [DiscordRPCVSPackage]Source: &apos;discord-rpc-vs&apos; Description: Could not load file or assembly &apos;Microsoft.VisualStudio.Threading, Version=15.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;System.IO.FileNotFoundException: Could not load file or assembly &apos;Microsoft.VisualStudio.Threading, Version=15.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.&#x000D;&#x000A;File name: &apos;Microsoft.VisualStudio.Threading, Version=15.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos;&#x000D;&#x000A;   at discord_rpc_vs.DiscordRPCVSPackage.InitializeAsync(CancellationToken cancellationToken, IProgress`1 progress)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.AsyncPackage.&lt;&gt;c__DisplayClass17_0.&lt;&lt;Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize&gt;b__1&gt;d.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.GetResult()&#x000D;&#x000A;&#x000D;&#x000A;WRN: Assembly binding logging is turned OFF.&#x000D;&#x000A;To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.&#x000D;&#x000A;Note: There is some performance penalty associated with assembly bind failure logging.&#x000D;&#x000A;To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].&#x000D;&#x000A;</description>
    <guid>{EA99CD90-97EA-40A5-BE3C-2F3377242800}</guid>
    <hr>80070002</hr>
    <errorinfo></errorinfo>
  </entry>

Reproduction steps:

Steps to reproduce the behavior:

  1. Install from here https://marketplace.visualstudio.com/items?itemName=1TheNikita.drpcvs2019
  2. Load Visual Studio 2017.
  3. Enable Discord Rich Presence.

Expected behavior:

No error on startup.

Screenshots:

![https://i.imgur.com/jOGJzVB.png](Visual Studio Error)

Desktop (please complete the following information):

  • OS: Windows 10
  • Visual Studio 2017
  • Extension Version: 5.3

Additional context

None.

Feature Request: Make secret mode solution-dependent

Is your feature request related to a problem? Please describe:

It's annoying when I'm switching between solutions that should have secret mode enabled and those that shouldn't.

Solution:

For each solution, the secret mode toggle should be separate from other solutions. This means that I don't need to toggle secret mode manually.

Alternatives tried:

Additional context:

Add support for recognizing i'm coding in C

Installed extension. It works perfectly if i code in C++ or C# etc but when i am writing a console app in C not C++ it displays nothing. If you could add support for C language in Visual Studio 2019 it would be a nice feature to have.

I should mention if i open a .c file or a project with just .c file open it will not be recognized by discord and show nothing under my name in discord.

VS 2022

Is your feature request related to a problem? Please describe:

I got VS 2022, so this extension doesn't work in it. I know it's in preview, but afaik it shouldn't be hard to add support for it.

Solution:

Add VS 2022 support.

Discord not detecting Visual Studio

Describe the bug
I've been using the extension regularly, however I noticed today that discord is no longer picking up the rich presence information any more. Notable things that have changed today is that I updated to the latest copy of Visual Studio 2019 and also installed 2019 Preview. Only the stable version of VS has the extension installed. I have tried running other games and Rich Presence is appearing. I tried installing this extension as an alternative which does seem to work. Also I use a Rich Presence extension in Rider which is still working too.

I have also tried disabling and re-enabling, re installing the extension and of course restarting each application and the computer itself.

I tried debugging your solution and its not running into any noticeable errors.

To Reproduce
Steps to reproduce the behavior:

  1. Update to latest VS 2019 and install latest 2019 preview
  2. Install extension on the stable 2019 version
  3. Start up VS and open a solution
  4. Discord not picking up on activity

Desktop (please complete the following information):

  • OS: WIndows 10 1909

Config Save Issues

Bug description:
Everytime relaunch VS will reset my config/save

Reproduction steps:

Steps to reproduce the behavior:

  1. Launch any project
  2. Go Extensions>Discord Rich Presence>Settings make some changes
  3. Close Settings Windows (checked its saved on AppData\Local\Microsoft_Corporation\DefaultDomain_Url_uh00koav5tblexqdl2zw2aksj2ly544j\16.11.31911.196)
  4. Close VS and relaunch same project or others
  5. Boom, reseted

Expected behavior:
Since this is global settings, it should not reset to default settings

Screenshots:
https://youtu.be/E3moCrPCgng

Desktop (please complete the following information):

  • OS: Windows 10 21H1 (19043.1348)
  • Visual Studio 2019 (16.11.7)
  • Latest Version (v5.5.4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.