Method and plug-in tool for rapidly making spec file based on VSCode integrated development environment
An integrated development environment and file technology, applied in the field of plug-in tools, can solve problems such as low editing efficiency, no support for RPM predefined macro associative input, and predefined macros cannot be expanded to view the definition content.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] For ease of understanding, see figure 1 with figure 2 , an embodiment of a method for quickly making a spec file based on the VSCode integrated development environment provided by the application includes the following steps:
[0057] Develop plug-ins in the VSCode integrated development environment;
[0058] When the spec file is entered into the text editor, the plugin activates and runs;
[0059]The plug-in receives the input content of the text editor and calls the RPM command, and the RPM command implements macro association input and macro definition expansion according to the input content.
[0060] It should be noted that, if image 3 As shown, a plug-in is developed in the VSCode integrated development environment. When the developer edits the spec file in the VSCode integrated development environment, the plug-in will automatically provide the association input of the macro. When the mouse hovers or selects the RPM predefined macro, it will automatically ...
Embodiment 2
[0062] For ease of understanding, see Figure 4 , as a further improvement of Embodiment 1, the plug-in receives the input content of the text editor and invokes the RPM command, and the RPM command implements macro association input according to the input content, including the following steps:
[0063] receive input;
[0064] Initialize an array to save the list of defined macros;
[0065] Call the rpm--showrc command through the exec system function;
[0066] Monitor the standard output of the rpm--showrc command, and parse out the macros defined in the system line by line, and add the macros to the macro list array;
[0067] Initialize a new array to save the matching results;
[0068] Loop the macro list array and perform regular matching with the input content one by one, and add the matched macros to the result array;
[0069] Send the matching results to a text editor and display the output.
[0070] It should be noted that, if Figure 4 As shown, 1. The user ope...
Embodiment 3
[0072] For ease of understanding, see Figure 5 , as a further improvement of Embodiment 1, the plug-in receives the input content of the text editor and calls the RPM command, and the RPM command implements macro definition expansion according to the input content, including the following steps:
[0073] Select the imported macro definition;
[0074] Receive the currently selected input content;
[0075] Call the rpm-E command through the exec system function;
[0076] Listen to the standard output of the rpm-E command and read the content of the standard output;
[0077] If the output content is not empty, it means that the macro has been defined, and the output result will be sent to the text editor for output display.
[0078] It should be noted that, if Figure 5 As shown, 1. The user opens the spec file in the VSCode integrated development environment, 2. Enters the text editor in the VSCode integrated development environment, 3. Activates and runs the plug-in, 4. Se...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com