Code Monkey home page Code Monkey logo

Comments (7)

Frederisk avatar Frederisk commented on July 23, 2024

Wrong location, this is a problem belonging to Wikitext Extension.

from wikitext-vscode-extension.

Frederisk avatar Frederisk commented on July 23, 2024

In addition, I need more information, such as VSCode version, and Extension version.

At the same time, you can try to update/reinstall this Extension, or disable any other Extension as well.

from wikitext-vscode-extension.

rinrab avatar rinrab commented on July 23, 2024

I'm currently using VS Code version 1.83.1. After updating VS Code to version 1.84.0 and reinstalling the extension, I'm still facing issues with it not working. Interestingly, the extension does work in a sandbox environment.

from wikitext-vscode-extension.

Frederisk avatar Frederisk commented on July 23, 2024

Well, based on your statement and my testing, I'm more inclined to think this is due to a problem with your other environment settings.

I also noticed that nothing happened after pressing the button. If there are no problems with other functions of this extension, it means that some of the following assertions may have failed.

const config: vscode.WorkspaceConfiguration = vscode.workspace.getConfiguration("wikitext");
const host: string | undefined = await getHost();
if (!host) { return undefined; }
/** document text */
const sourceText: string | undefined = vscode.window.activeTextEditor?.document.getText();
if (!sourceText) { return undefined; }
const { content } = getContentInfo(sourceText);

I needed to go into debug mode and set breakpoints to find the problem, but unfortunately I couldn't reproduce the issue.

from wikitext-vscode-extension.

Frederisk avatar Frederisk commented on July 23, 2024

Therefore, the advice I can give is limited.

Maybe you can make any edits in the editor to try to activate vscode.window.activeTextEditor, or delete and reset the host in settings. Or uninstall and clean all configurations and quickly reinstall VSCode and this extension.

from wikitext-vscode-extension.

rinrab avatar rinrab commented on July 23, 2024

I entered the hostname in the settings, and it's working! Please make the setup process easier, and in that code config may be null or undefined.

from wikitext-vscode-extension.

Frederisk avatar Frederisk commented on July 23, 2024

Please make the setup process easier, and in that code config may be null or undefined.

This may sound a little strange, but in the code, I have set up a warning to the user when the host is empty. Maybe you accidentally typed a space or similar character at that time?

Anyway, I will consider doing more additional checks on this in the future.

from wikitext-vscode-extension.

Related Issues (20)

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.